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

894 B

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

--description--

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

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

S(13\\,082\\,761\\,331\\,670\\,030) を求めなさい。

--hints--

modularCubesOne()4617456485273130000 を返す必要があります。

assert.strictEqual(modularCubesOne(), 4617456485273130000);

--seed--

--seed-contents--

function modularCubesOne() {

  return true;
}

modularCubesOne();

--solutions--

// solution required