Files
freeCodeCamp/curriculum/challenges/portuguese/10-coding-interview-prep/project-euler/problem-356-largest-roots-of-cubic-polynomials.md
2022-03-21 17:55:58 +01:00

840 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4d01000cf542c50ffe3 Problema 356: Maiores raízes de polinômios cúbicos 5 302016 problem-356-largest-roots-of-cubic-polynomials

--description--

Considere a_n como sendo a maior raiz real de um polinômio g(x) = x^3 - 2^n \times x^2 + n.

Por exemplo, a_2 = 3.86619826\ldots

Encontre os oito últimos algarismos de \displaystyle\sum_{i = 1}^{30} \lfloor {a_i}^{987654321}\rfloor.

Observação: \lfloor a\rfloor representa a função piso.

--hints--

rootsOfCubicPolynomials() deve retornar 28010159.

assert.strictEqual(rootsOfCubicPolynomials(), 28010159);

--seed--

--seed-contents--

function rootsOfCubicPolynomials() {

  return true;
}

rootsOfCubicPolynomials();

--solutions--

// solution required