Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-243-resilience.russian.md

56 lines
1.8 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: 5900f4601000cf542c50ff73
challengeType: 5
title: 'Problem 243: Resilience'
videoUrl: ''
localeTitle: 'Проблема 243: Устойчивость'
---
## Description
<section id="description"> Положительная дробь, числитель которой меньше ее знаменателя, называется собственной дробью. Для любого знаменателя d найдутся d-1 собственных дробей; например, с d = 12: 1/12, 2/12, 3/12, 4/12, 5/12, 6/12, 7/12, 8/12, 9/12, 10/12, 11 / 12. <p> Мы будем называть фракцию, которая не может быть отменена с помощью упругой дроби. Кроме того, мы будем определять устойчивость знаменателя R (d) как отношение его собственных дробей, которые являются упругими; например, R (12) = 4/11. Фактически, d = 12 является наименьшим знаменателем, обладающим устойчивостью R (d) &lt;4/10. </p><p> Найдите наименьший знаменатель d, обладающий устойчивостью R (d) &lt;15499/94744. </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler243()</code> должен вернуть 892371480.
testString: 'assert.strictEqual(euler243(), 892371480, "<code>euler243()</code> should return 892371480.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler243() {
// Good luck!
return true;
}
euler243();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>