Files
2022-02-28 08:59:21 +01:00

45 lines
857 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: 5900f4151000cf542c50ff27
title: 'Problema 168: Rotazioni di numeri'
challengeType: 5
forumTopicId: 301802
dashedName: problem-168-number-rotations
---
# --description--
Considera il numero 142857. Possiamo ruotare a destra questo numero spostando l'ultima cifra (7) nella parte anteriore, ottenendo 714285.
Si può verificare che $714285 = 5 × 142857$.
Ciò dimostra una proprietà insolita del 142857: è un divisore della sua rotazione a destra.
Trova le ultime 5 cifre della somma di tutti gli interi $n$, $10 < n < 10100$, che hanno questa proprietà.
# --hints--
`numberRotations()` dovrebbe restituire `59206`.
```js
assert.strictEqual(numberRotations(), 59206);
```
# --seed--
## --seed-contents--
```js
function numberRotations() {
return true;
}
numberRotations();
```
# --solutions--
```js
// solution required
```