56 lines
1.4 KiB
Markdown
56 lines
1.4 KiB
Markdown
---
|
||
id: 5900f4151000cf542c50ff27
|
||
challengeType: 5
|
||
title: 'Problem 168: Number Rotations'
|
||
videoUrl: ''
|
||
localeTitle: 'Проблема 168: Число оборотов'
|
||
---
|
||
|
||
## Description
|
||
<section id="description"> Рассмотрим число 142857. Мы можем повернуть это число с помощью правого поворота, переместив последнюю цифру (7) в начало, давая нам 714285. Можно проверить, что 714285 = 5 × 142857. Это демонстрирует необычное свойство 142857: оно является делителем его правого вращения. Найдите последние 5 цифр суммы всех целых чисел n, 10 <n <10100, которые имеют это свойство. </section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler168()</code> должен возвращать 59206.
|
||
testString: 'assert.strictEqual(euler168(), 59206, "<code>euler168()</code> should return 59206.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler168() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler168();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|