Files
freeCodeCamp/curriculum/challenges/ukrainian/10-coding-interview-prep/project-euler/problem-233-lattice-points-on-a-circle.md

43 lines
950 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4551000cf542c50ff68
title: 'Завдання 233: Точки сітки на колі'
challengeType: 5
forumTopicId: 301877
dashedName: problem-233-lattice-points-on-a-circle
---
# --description--
Нехай $f(N)$ — це кількість точок з цілочисельними координатами, які знаходяться на колі, що проходить через $(0,0)$, $(N,0)$, $(0,N)$ і $(N,N)$.
Можна зобразити, що $f(10000) = 36$.
Яка сума всіх натуральних чисел $N ≤ {10}^{11}$ таких, що $f(N) = 420$?
# --hints--
`latticePointsOnACircle()` має повернути `271204031455541300`.
```js
assert.strictEqual(latticePointsOnACircle(), 271204031455541300);
```
# --seed--
## --seed-contents--
```js
function latticePointsOnACircle() {
return true;
}
latticePointsOnACircle();
```
# --solutions--
```js
// solution required
```