2021-06-15 00:49:18 -07:00
|
|
|
---
|
|
|
|
id: 5900f4551000cf542c50ff68
|
2022-03-01 00:52:39 +05:30
|
|
|
title: 'Problema 233: I punti di reticolo su un cerchio'
|
2021-06-15 00:49:18 -07:00
|
|
|
challengeType: 5
|
|
|
|
forumTopicId: 301877
|
|
|
|
dashedName: problem-233-lattice-points-on-a-circle
|
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
2022-03-01 00:52:39 +05:30
|
|
|
Sia $f(N)$ il numero di punti con coordinate intere che sono su un cerchio che passa attraverso $(0,0)$, $(N,0)$,$(0,N)$, e $(N,N)$.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
2022-03-01 00:52:39 +05:30
|
|
|
Si può dimostrare che $f(10000) = 36$.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
2022-03-01 00:52:39 +05:30
|
|
|
Qual è la somma di tutti gli interi positivi $N ≤ {10}^{11}$ tali che che $f(N) = 420$?
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
2022-03-01 00:52:39 +05:30
|
|
|
`latticePointsOnACircle()` dovrebbe restituire `271204031455541300`.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
```js
|
2022-03-01 00:52:39 +05:30
|
|
|
assert.strictEqual(latticePointsOnACircle(), 271204031455541300);
|
2021-06-15 00:49:18 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
# --seed--
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
```js
|
2022-03-01 00:52:39 +05:30
|
|
|
function latticePointsOnACircle() {
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2022-03-01 00:52:39 +05:30
|
|
|
latticePointsOnACircle();
|
2021-06-15 00:49:18 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
# --solutions--
|
|
|
|
|
|
|
|
```js
|
|
|
|
// solution required
|
|
|
|
```
|