Files

45 lines
1.1 KiB
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: 5900f3f51000cf542c50ff07
title: 'Завдання 136: Рівняння з одним варіантом вирішення'
challengeType: 5
forumTopicId: 301764
dashedName: problem-136-singleton-difference
---
# --description--
Цілі додатні числа, $x$, $y$ і $z$, є послідовними членами арифметичної прогресії. Дано: $n$ — ціле додатнє число, рівняння $x^2 - y^2 - z^2 = n$ має одне рішення, якщо $n = 20$:
$$13^2 10^2 7^2 = 20$$
Існує двадцять п’ять значень $n$ нижче ста, для яких рівняння має одне рішення.
Скільки значень $n$, які менші за п’ятдесят мільйонів, мають рівно одне рішення?
# --hints--
`singletonDifference()` повинен повертати число `2544559`.
```js
assert.strictEqual(singletonDifference(), 2544559);
```
# --seed--
## --seed-contents--
```js
function singletonDifference() {
return true;
}
singletonDifference();
```
# --solutions--
```js
// solution required
```