Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-271-modular-cubes-part-1.md

43 lines
894 B
Markdown
Raw Permalink Normal View History

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