1.3 KiB
1.3 KiB
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f4491000cf542c50ff5c | 5 | Problem 221: Alexandrian Integers | Problema 221: enteros alejandrinos |
Description
A = p · q · r and 1A
=
1p
+
1q
+
1r
Por ejemplo, 630 es un entero alejandrino (p = 5, q = −7, r = −18). De hecho, 630 es el sexto entero de Alejandría, siendo los primeros 6 enteros de Alejandría: 6, 42, 120, 156, 420 y 630.
Encuentra el 150000 ° entero alejandrino.
Instructions
Tests
tests:
- text: <code>euler221()</code> debe devolver 1884161251122450.
testString: 'assert.strictEqual(euler221(), 1884161251122450, "<code>euler221()</code> should return 1884161251122450.");'
Challenge Seed
function euler221() {
// Good luck!
return true;
}
euler221();
Solution
// solution required