947 B
947 B
id | title | challengeType | forumTopicId | dashedName |
---|---|---|---|---|
5900f4491000cf542c50ff5c | Problema 221: Interi Alessandrini | 5 | 301864 | problem-221-alexandrian-integers |
--description--
Chiameremo un intero positivo A
un "intero Alessandrino", se esistono degli interi p
, q
, r
tali che:
A = p \times q \times r
e
$\frac{1}{A} = \frac{1}{p} + \frac{1}{q} + \frac{1}{r}
Ad esempio, 630 è un numero intero Alessandrino (p = 5
, q = −7
, r = −18
). Infatti 630 è il 6° numero intero Alessandrino, i primi 6 interi Alessandrini sono: 6, 42, 120, 156, 420 e 630.
Trova il 150000esimo intero Alessandrino.
--hints--
alexandrianIntegers()
dovrebbe restituire 1884161251122450
.
assert.strictEqual(alexandrianIntegers(), 1884161251122450);
--seed--
--seed-contents--
function alexandrianIntegers() {
return true;
}
alexandrianIntegers();
--solutions--
// solution required