freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-235-an-arithmetic-g...

56 lines
1.2 KiB
Markdown
Raw Normal View History

---
id: 5900f4571000cf542c50ff6a
challengeType: 5
title: 'Problem 235: An Arithmetic Geometric sequence'
videoUrl: ''
localeTitle: 'Задача 235: Арифметическая геометрическая последовательность'
---
## Description
<section id="description"> Дана арифметико-геометрическая последовательность u (k) = (900-3k) rk-1. Пусть s (n) = Σk = 1 ... nu (k). <p> Найдите значение r, для которого s (5000) = -600 000 000 000. </p><p> Дайте ваш ответ округленным до 12 мест за десятичной точкой. </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler235()</code> должен вернуть 1.002322108633.
testString: 'assert.strictEqual(euler235(), 1.002322108633, "<code>euler235()</code> should return 1.002322108633.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler235() {
// Good luck!
return true;
}
euler235();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>