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

931 B
Raw Blame History

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f3f31000cf542c50ff06 Problem 135: Gleiche Unterschiede 1 301763 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.

assert.strictEqual(sameDifferences(), 4989);

--seed--

--seed-contents--

function sameDifferences() {

  return true;
}

sameDifferences();

--solutions--

// solution required