Files
freeCodeCamp/curriculum/challenges/german/18-project-euler/project-euler-problems-101-to-200/problem-135-same-differences.md
2024-04-02 08:19:23 +02:00

45 lines
931 B
Markdown
Raw 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: 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
```