Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-272-modular-cubes-part-2.md
2022-01-23 00:08:20 +09:00

43 lines
875 B
Markdown

---
id: 5900f47d1000cf542c50ff8f
title: '問題 272: モジュラー立方数 (2)'
challengeType: 5
forumTopicId: 301922
dashedName: 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` を返す必要があります
```js
assert.strictEqual(modularCubesTwo(), 8495585919506151000);
```
# --seed--
## --seed-contents--
```js
function modularCubesTwo() {
return true;
}
modularCubesTwo();
```
# --solutions--
```js
// solution required
```