Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-207-integer-partition-equations.russian.md

58 lines
1.7 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: 5900f43c1000cf542c50ff4e
challengeType: 5
title: 'Problem 207: Integer partition equations'
forumTopicId: 301848
localeTitle: 'Задача 207: Целочисленные уравнения разбиения'
---
## Description
<section id='description'>
Для некоторых натуральных чисел k существует целочисленное разбиение вида 4t = 2t + k, где 4t, 2t и k - все положительные целые числа, а t - действительное число. <p> Первые два таких раздела: 41 = 21 + 2 и 41.5849625 ... = 21.5849625 ... + 6. </p><p> Разделы, где t также целое число, называются совершенными. Для любого m ≥ 1 пусть P (m) - доля таких разбиений, которые являются совершенными с k ≤ m. Таким образом, P (6) = 1/2. </p><p> В следующей таблице перечислены некоторые значения P (m) P (5) = 1/1 P (10) = 1/2 P (15) = 2/3 P (20) = 1/2 P (25) = 1/2 P (30) = 2/5 ... P (180) = 1/4 P (185) = 3/13 </p><p> Найдите наименьшее m, для которого P (m) &lt;1/12345 </p>
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler207()</code> should return 44043947822.
testString: assert.strictEqual(euler207(), 44043947822);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler207() {
// Good luck!
return true;
}
euler207();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>