--- id: 5900f3f31000cf542c50ff06 title: 'Problem 135: Gleiche Unterschiede' challengeType: 1 forumTopicId: 301763 dashedName: problem-135-same-differences --- # --description-- Given the positive integers, $x$, $y$, and $z$, are consecutive terms of an arithmetic progression, the least value of the positive integer, $n$, for which the equation, $x^2 − y^2 − z^2 = n$, has exactly two solutions is $n = 27$: $$34^2 − 27^2 − 20^2 = 12^2 − 9^2 − 6^2 = 27$$ Es stellt sich heraus, dass $n = 1155$ der kleinste Wert ist, der genau zehn Lösungen hat. Wie viele Werte von $n$, unter einer Million, haben genau zehn verschiedene Lösungen? # --hints-- `sameDifferences()` sollte `4989` zurückgeben. ```js assert.strictEqual(sameDifferences(), 4989); ``` # --seed-- ## --seed-contents-- ```js function sameDifferences() { return true; } sameDifferences(); ``` # --solutions-- ```js // solution required ```