56 lines
1.1 KiB
Markdown
56 lines
1.1 KiB
Markdown
![]() |
---
|
|||
|
id: 5900f5331000cf542c510045
|
|||
|
challengeType: 5
|
|||
|
title: 'Problem 454: Diophantine reciprocals III'
|
|||
|
videoUrl: ''
|
|||
|
localeTitle: 'Задача 454: диофантовы обратные III'
|
|||
|
---
|
|||
|
|
|||
|
## Description
|
|||
|
<section id="description"> В следующем уравнении x, y и n - целые положительные числа. <p> 1x + 1y = 1n </p><p> Для предела L определим F (L) как число решений, удовлетворяющих x <y ≤ L. </p><p> Мы можем проверить, что F (15) = 4 и F (1000) = 1069. Найти F (1012). </p></section>
|
|||
|
|
|||
|
## Instructions
|
|||
|
<section id="instructions">
|
|||
|
</section>
|
|||
|
|
|||
|
## Tests
|
|||
|
<section id='tests'>
|
|||
|
|
|||
|
```yml
|
|||
|
tests:
|
|||
|
- text: ''
|
|||
|
testString: 'assert.strictEqual(euler454(), 5435004633092, "<code>euler454()</code> should return 5435004633092.");'
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Challenge Seed
|
|||
|
<section id='challengeSeed'>
|
|||
|
|
|||
|
<div id='js-seed'>
|
|||
|
|
|||
|
```js
|
|||
|
function euler454() {
|
|||
|
// Good luck!
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
euler454();
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Solution
|
|||
|
<section id='solution'>
|
|||
|
|
|||
|
```js
|
|||
|
// solution required
|
|||
|
```
|
|||
|
</section>
|