Files

45 lines
1.0 KiB
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: 5900f4151000cf542c50ff27
title: 'Задача 168: Обертання чисел'
challengeType: 5
forumTopicId: 301802
dashedName: problem-168-number-rotations
---
# --description--
Розглянемо число 142857. Ми можемо повернути це число праворуч, перемістивши останню цифру (7) перед ним, що дасть нам 714285.
Можна перевірити, що $714285 = 5 × 142857$.
Це показує незвичайну властивість 142857: це дільник її обертання вправо.
Знайдіть останні 5 цифр суми всіх цілих чисел $n$, $ 10 <; n <; 10100$, які мають цю властивість.
# --hints--
`numberRotations()` має повертати `59206`.
```js
assert.strictEqual(numberRotations(), 59206);
```
# --seed--
## --seed-contents--
```js
function numberRotations() {
return true;
}
numberRotations();
```
# --solutions--
```js
// solution required
```