freeCodeCamp/curriculum/challenges/spanish/08-coding-interview-prep/project-euler/problem-108-diophantine-rec...

56 lines
1.1 KiB
Markdown
Raw Normal View History

---
2018-10-10 20:20:40 +00:00
id: 5900f3d91000cf542c50feeb
challengeType: 5
title: 'Problem 108: Diophantine Reciprocals I'
2018-10-10 20:20:40 +00:00
videoUrl: ''
localeTitle: 'Problema 108: Reciprocos diofánticos I'
---
## Description
2018-10-10 20:20:40 +00:00
<section id="description"> En la siguiente ecuación, x, y y n son enteros positivos. 1 / <var>x</var> + 1 / <var>y</var> = 1 / <var>n</var> Para <var>n</var> = 4 hay exactamente tres soluciones distintas: 1/5 + 1/20 = 1/4 <br> 1/6 + 1/12 = 1/4 <br> 1/8 + 1/8 = 1/4 ¿Cuál es el valor mínimo de <var>n</var> para el cual el número de soluciones distintas excede mil? </section>
## Instructions
2018-10-10 20:20:40 +00:00
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>diophantineOne()</code> debe devolver 180180.
testString: 'assert.strictEqual(diophantineOne(), 180180, "<code>diophantineOne()</code> should return 180180.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function diophantineOne() {
// Good luck!
return true;
}
diophantineOne();
2018-10-10 20:20:40 +00:00
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>