Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-136-singleton-difference.md
2022-01-20 20:30:18 +01:00

952 B
Raw Permalink Blame History

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f3f51000cf542c50ff07 問題 136: 単体の差違 5 301764 problem-136-singleton-difference

--description--

正の整数 x, y, z は等差数列の連続項です。 n を正の整数とすると、式 x^2 y^2 z^2 = n は、n = 20 のときちょうど 1 つの解を持ちます。

13^2 10^2 7^2 = 20

実は、この式の解が 1 つのみになるような n の値は 100 未満で 25 個あります。

この等式の解がちょうど 1 つになるような、5000 万未満 の n の値はいくつありますか。

--hints--

singletonDifference()2544559 を返す必要があります。

assert.strictEqual(singletonDifference(), 2544559);

--seed--

--seed-contents--

function singletonDifference() {

  return true;
}

singletonDifference();

--solutions--

// solution required