mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-07 13:01:03 -04:00
945 B
945 B
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5900f4571000cf542c50ff6a | Завдання 235: Арифметично-геометрична прогресія | 1 | 301879 | problem-235-an-arithmetic-geometric-sequence |
--description--
Дано арифметично-геометричну прогресію u(k) = (900 - 3k)r^{k - 1}.
Нехай s(n) = \sum_{k=1 \ldots n} u(k).
Знайдіть значення r, при якому s(5000) = -600\\,000\\,000\\,000\\,000.
Дайте відповідь, округлену до 12 знаків після коми.
--hints--
arithmeticGeometricSequence() має повернути 1.002322108633.
assert.strictEqual(arithmeticGeometricSequence(), 1.002322108633);
--seed--
--seed-contents--
function arithmeticGeometricSequence() {
return true;
}
arithmeticGeometricSequence();
--solutions--
// solution required