Files
freeCodeCamp/curriculum/challenges/ukrainian/10-coding-interview-prep/project-euler/problem-235-an-arithmetic-geometric-sequence.md

945 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4571000cf542c50ff6a Завдання 235: Арифметично-геометрична прогресія 5 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