mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-14 07:00:51 -04:00
939 B
939 B
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5900f3f51000cf542c50ff07 | Problem 136: Singleton Unterschied | 1 | 301764 | problem-136-singleton-difference |
--description--
Die positiven Integer x, y und z sind aufeinanderfolgende Terme einer arithmetischen Progression. Given that n is a positive integer, the equation, x^2 − y^2 − z^2 = n, has exactly one solution when n = 20:
13^2 − 10^2 − 7^2 = 20
In der Tat gibt es fünfundzwanzig Werte von n unter hundert, für die die Gleichung eine eindeutige Lösung hat.
Wie viele Werte von n kleiner als fünfzig Millionen haben genau eine Lösung?
--hints--
singletonDifference() sollte 2544559 zurückgeben.
assert.strictEqual(singletonDifference(), 2544559);
--seed--
--seed-contents--
function singletonDifference() {
return true;
}
singletonDifference();
--solutions--
// solution required