58 lines
1.4 KiB
Markdown
58 lines
1.4 KiB
Markdown
---
|
||
id: 5900f3db1000cf542c50feed
|
||
challengeType: 5
|
||
title: 'Problem 110: Diophantine Reciprocals II'
|
||
forumTopicId: 301735
|
||
localeTitle: 'Задача 110: диофантийские реципрокты II'
|
||
---
|
||
|
||
## Description
|
||
<section id='description'>
|
||
В следующем уравнении x, y и n - целые положительные числа. 1 / <var>x</var> + 1 / <var>y</var> = 1 / <var>n.</var> Можно проверить, что при <var>n</var> = 1260 существует 113 различных решений, и это наименьшее значение <var>n,</var> для которого общее число различных решений превышает сто. Каково наименьшее значение <var>n,</var> для которого количество различных решений превышает четыре миллиона?
|
||
</section>
|
||
|
||
## Instructions
|
||
<section id='instructions'>
|
||
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>diophantineTwo()</code> should return 9350130049860600.
|
||
testString: assert.strictEqual(diophantineTwo(), 9350130049860600);
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function diophantineTwo() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
diophantineTwo();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
|
||
</section>
|