Files

43 lines
967 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f47b1000cf542c50ff8d
title: 'Проблема 271: Модульні Кубики, частина 1'
challengeType: 5
forumTopicId: 301921
dashedName: problem-271-modular-cubes-part-1
---
# --description--
Для додатнього числа $n$, визначити $S(n)$ як суму цілих чисел $x$, для яких $1 < x < n$ and $x^3 \equiv 1\bmod n$.
Коли $n = 91$, існує 8 можливих значень для $x$, а саме: 9, 16, 22, 29, 53, 74, 79, 81. Таким чином, $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
```