Files
freeCodeCamp/curriculum/challenges/spanish/08-coding-interview-prep/project-euler/problem-108-diophantine-reciprocals-i.spanish.md
2018-10-08 13:51:51 -04:00

1.1 KiB

id, localeTitle, challengeType, title
id localeTitle challengeType title
5 5900f3d91000cf542c50feeb 5 Problem 108: Diophantine Reciprocals I

Description

En la siguiente ecuación x, y yn son enteros positivos. 1 / x + 1 / y = 1 / n Para n = 4 hay exactamente tres soluciones distintas: 1/5 + 1/20 = 1/4
1/6 + 1/12 = 1/4
1/8 + 1/8 = 1/4 ¿Cuál es el valor mínimo de n para el cual el número de soluciones distintas excede mil?

Instructions

Tests

tests:
  - text: <code>diophantineOne()</code> debe devolver 180180.
    testString: 'assert.strictEqual(diophantineOne(), 180180, "<code>diophantineOne()</code> should return 180180.");'

Challenge Seed

function diophantineOne() {
  // Good luck!
  return true;
}

diophantineOne();

Solution

// solution required