freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-342-the-totient-of-...

972 B
Raw Blame History

id title challengeType forumTopicId dashedName
5900f4c31000cf542c50ffd5 問題 342: 平方数のトーティエントが立方数であるような数 1 302001 problem-342-the-totient-of-a-square-is-a-cube

--description--

50 という数について考えます。

{50}^2 = 2500 = 2^2 × 5^4 なので、φ(2500) = 2 × 4 × 5^3 = 8 × 5^3 = 2^3 × 5^3 です。 φ はオイラーのトーティエント関数を表します。

したがって、2500 は平方数であり、φ(2500) は立方数です。

1 < n < ^ {10}^{10} のとき、φ(n^2) が立方数であるような数 n の総和を求めなさい。

--hints--

totientOfSquare()5943040885644 を返す必要があります。

assert.strictEqual(totientOfSquare(), 5943040885644);

--seed--

--seed-contents--

function totientOfSquare() {

  return true;
}

totientOfSquare();

--solutions--

// solution required