2021-06-15 07:49:18 +00:00
|
|
|
---
|
|
|
|
id: 5900f4d01000cf542c50ffe3
|
2022-03-02 15:26:06 +00:00
|
|
|
title: 'Problema 356: Le più grandi radici dei polinomi cubici'
|
2022-07-12 11:56:02 +00:00
|
|
|
challengeType: 1
|
2021-06-15 07:49:18 +00:00
|
|
|
forumTopicId: 302016
|
|
|
|
dashedName: problem-356-largest-roots-of-cubic-polynomials
|
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
2022-03-02 15:26:06 +00:00
|
|
|
Sia $a_n$ la più grande radice reale di un polinomio $g(x) = x^3 - 2^n \times x^2 + n$.
|
2021-06-15 07:49:18 +00:00
|
|
|
|
2022-03-02 15:26:06 +00:00
|
|
|
Per esempio, $a_2 = 3.86619826\ldots$
|
2021-06-15 07:49:18 +00:00
|
|
|
|
2022-03-02 15:26:06 +00:00
|
|
|
Trova le ultime otto cifre di $\displaystyle\sum_{i = 1}^{30} \lfloor {a_i}^{987654321}\rfloor$.
|
2021-06-15 07:49:18 +00:00
|
|
|
|
2022-03-02 15:26:06 +00:00
|
|
|
**Nota:** $\lfloor a\rfloor$ rappresenta la funzione floor.
|
2021-06-15 07:49:18 +00:00
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
2022-03-02 15:26:06 +00:00
|
|
|
`rootsOfCubicPolynomials()` dovrebbe restituire `28010159`.
|
2021-06-15 07:49:18 +00:00
|
|
|
|
|
|
|
```js
|
2022-03-02 15:26:06 +00:00
|
|
|
assert.strictEqual(rootsOfCubicPolynomials(), 28010159);
|
2021-06-15 07:49:18 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
# --seed--
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
```js
|
2022-03-02 15:26:06 +00:00
|
|
|
function rootsOfCubicPolynomials() {
|
2021-06-15 07:49:18 +00:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2022-03-02 15:26:06 +00:00
|
|
|
rootsOfCubicPolynomials();
|
2021-06-15 07:49:18 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
# --solutions--
|
|
|
|
|
|
|
|
```js
|
|
|
|
// solution required
|
|
|
|
```
|