Files
freeCodeCamp/curriculum/challenges/italian/10-coding-interview-prep/project-euler/problem-235-an-arithmetic-geometric-sequence.md
2022-02-28 20:22:39 +01:00

803 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4571000cf542c50ff6a Problema 235: Sequenza geometrica aritmetica 5 301879 problem-235-an-arithmetic-geometric-sequence

--description--

Data la sequenza aritmetico-geometrica u(k) = (900 - 3k)r^{k - 1}.

Sia s(n) = \sum_{k=1 \ldots n} u(k).

Trova il valore di r per il quale s(5000) = -600\\,000\\,000\\,000.

Dai la tua risposta arrotondata a 12 cifre dopo il punto decimale.

--hints--

arithmeticGeometricSequence() dovrebbe restituire 1.002322108633.

assert.strictEqual(arithmeticGeometricSequence(), 1.002322108633);

--seed--

--seed-contents--

function arithmeticGeometricSequence() {

  return true;
}

arithmeticGeometricSequence();

--solutions--

// solution required