Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-417-reciprocal-cycles-ii.russian.md

56 lines
1.9 KiB
Markdown
Raw 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: 5900f50d1000cf542c51001f
challengeType: 5
title: 'Problem 417: Reciprocal cycles II'
videoUrl: ''
localeTitle: 'Задача 417: Взаимные циклы II'
---
## Description
<section id="description"> Единичная доля содержит 1 в числителе. Дано десятичное представление единичных дробей с знаменателями от 2 до 10: <p> 1/2 = 0,5 1/3 = 0. (3) 1/4 = 0,25 1/5 = 0,2 1/6 = 0,1 (6) 1/7 = 0. (142857) 1/8 = 0,125 1/9 = 0. (1) 1/10 = 0,1 </p><p> Где 0,1 (6) означает 0.166666 ... и имеет повторяющийся цикл из 1 цифры. Можно видеть, что 1/7 имеет 6-значный повторяющийся цикл. </p><p> Единичные доли, знаменатель которых не имеет других простых факторов, чем 2 и / или 5, не считаются повторяющимися. Мы определяем длину повторяющегося цикла этих единичных дробей как 0. </p><p> Пусть L (n) обозначает длину повторяющегося цикла 1 / n. Вам дается, что ΣL (n) для 3 ≤ n ≤ 1 000 000 равно 55535191115. </p><p> Найти ΣL (n) для 3 ≤ n ≤ 100 000 000 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler417()</code> должен вернуть 446572970925740.
testString: 'assert.strictEqual(euler417(), 446572970925740, "<code>euler417()</code> should return 446572970925740.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler417() {
// Good luck!
return true;
}
euler417();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>