freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-272-modular-cubes-p...

875 B

id title challengeType forumTopicId dashedName
5900f47d1000cf542c50ff8f 問題 272: モジュラー立方数 (2) 1 301922 problem-272-modular-cubes-part-2

--description--

正の整数 n について、1 < x < n かつ x^3 \equiv 1\bmod n であるような整数 x の個数を C(n) とします。

n = 91 のとき、考えられる x の値は 9, 16, 22, 29, 53, 74, 79, 81 の 8 つです。 したがって、C(91) = 8 です。

C(n)=242 となる正の整数 n ≤ {10}^{11} の和を求めなさい。

--hints--

modularCubesTwo()8495585919506151000 を返す必要があります。

assert.strictEqual(modularCubesTwo(), 8495585919506151000);

--seed--

--seed-contents--

function modularCubesTwo() {

  return true;
}

modularCubesTwo();

--solutions--

// solution required