Files
2022-02-28 20:22:39 +01:00

50 lines
947 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4491000cf542c50ff5c
title: 'Problema 221: Interi Alessandrini'
challengeType: 5
forumTopicId: 301864
dashedName: 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`.
```js
assert.strictEqual(alexandrianIntegers(), 1884161251122450);
```
# --seed--
## --seed-contents--
```js
function alexandrianIntegers() {
return true;
}
alexandrianIntegers();
```
# --solutions--
```js
// solution required
```