Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-70-totient-permutation.russian.md

55 lines
1.6 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: 5900f3b21000cf542c50fec5
challengeType: 5
title: 'Problem 70: Totient permutation'
videoUrl: ''
localeTitle: Задача 70 Totient перестановки
---
## Description
<section id="description"> Функция Толера Эйлера, φ (n) [иногда называемая фи-функцией], используется для определения числа положительных чисел, меньших или равных n, которые взаимно просты по отношению к n. Например, как 1, 2, 4, 5, 7 и 8, все меньше девяти и относительно простые с девятью, φ (9) = 6. Число 1 считается относительно простым с каждым положительным числом, поэтому φ (1) = 1. Интересно, что φ (87109) = 79180, и можно видеть, что 87109 является перестановкой 79180. Найдите значение n, 1 &lt;n &lt;107, для которого φ (n) является перестановкой n и отношением n / φ (n) дает минимум. </section>
## Instructions
undefined
## Tests
<section id='tests'>
```yml
tests:
- text: ''
testString: 'assert.strictEqual(euler70(), 8319823, "<code>euler70()</code> should return 8319823.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler70() {
// Good luck!
return true;
}
euler70();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>