2021-06-15 00:49:18 -07:00
---
id: 5900f4521000cf542c50ff64
2022-03-01 00:52:39 +05:30
title: 'Problema 229: quattro rappresentazioni usando quadrati'
2021-06-15 00:49:18 -07:00
challengeType: 5
forumTopicId: 301872
dashedName: problem-229-four-representations-using-squares
---
# --description--
2022-03-01 00:52:39 +05:30
Considera il numero 3600. È molto speciale, perché
2021-06-15 00:49:18 -07:00
2022-03-31 22:31:59 +05:30
$$\begin{align} & 3600 = {48}^2 + {36}^2 \\\\
& 3600 = {20}^2 + {2× 40}^2 \\\\ & 3600 = {30}^2 + {3× 30}^2 \\\\
& 3600 = {45}^2 + {7× 15}^2 \\\\ \end{align}$$
2021-06-15 00:49:18 -07:00
2022-03-01 00:52:39 +05:30
In maniera simile troviamo che $88201 = {99}^2 + {280}^2 = {287}^2 + 2 × {54}^2 = {283}^2 + 3 × {52}^2 = {197}^2 + 7 × {84}^2$.
2021-06-15 00:49:18 -07:00
2022-03-01 00:52:39 +05:30
Nel 1747, Eulero ha provato quali numeri sono rappresentabili come somma di due quadrati. Siamo interessati nel numero $n$ che ammette le rappresentazioni di tutti i seguenti quattro tipi:
2021-06-15 00:49:18 -07:00
2022-03-31 22:31:59 +05:30
$$\begin{align} & n = {a_1}^2 + {b_1}^2 \\\\
& n = {a_2}^2 + 2{b_2}^2 \\\\ & n = {a_3}^2 + 3{b_3}^2 \\\\
& n = {a_7}^2 + 7{b_7}^2 \\\\ \end{align}$$
2021-06-15 00:49:18 -07:00
2022-03-01 00:52:39 +05:30
dove i numeri $a_k$ e $b_k$ sono numeri interi positivi.
2021-06-15 00:49:18 -07:00
2022-03-01 00:52:39 +05:30
Ci sono 75373 di questi numeri che non eccedono ${10}^7$.
2021-06-15 00:49:18 -07:00
2022-03-01 00:52:39 +05:30
Quanti di questi numeri ci sono che non eccedono $2 × {10}^9$?
2021-06-15 00:49:18 -07:00
# --hints--
2022-03-01 00:52:39 +05:30
`representationsUsingSquares()` dovrebbe restituire `11325263` .
2021-06-15 00:49:18 -07:00
```js
2022-03-01 00:52:39 +05:30
assert.strictEqual(representationsUsingSquares(), 11325263);
2021-06-15 00:49:18 -07:00
```
# --seed--
## --seed-contents--
```js
2022-03-01 00:52:39 +05:30
function representationsUsingSquares() {
2021-06-15 00:49:18 -07:00
return true;
}
2022-03-01 00:52:39 +05:30
representationsUsingSquares();
2021-06-15 00:49:18 -07:00
```
# --solutions--
```js
// solution required
```