56 lines
1.3 KiB
Markdown
56 lines
1.3 KiB
Markdown
---
|
||
id: 5900f4491000cf542c50ff5c
|
||
challengeType: 5
|
||
title: 'Problem 221: Alexandrian Integers'
|
||
videoUrl: ''
|
||
localeTitle: 'Problema 221: enteros alejandrinos'
|
||
---
|
||
|
||
## Description
|
||
<section id="description"> Llamaremos a un entero positivo A un "entero alejandrino", si existen enteros p, q, r tales que: <pre> <code> A = p · q · r and 1A</code> </pre><p> = </p><pre> <code> 1p</code> </pre><p> + </p><pre> <code> 1q</code> </pre><p> + </p><pre> <code> 1r</code> </pre><p> 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. </p><p> Encuentra el 150000 ° entero alejandrino. </p></section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler221()</code> debe devolver 1884161251122450.
|
||
testString: 'assert.strictEqual(euler221(), 1884161251122450, "<code>euler221()</code> should return 1884161251122450.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler221() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler221();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|