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

45 lines
952 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: 5900f45d1000cf542c50ff70
title: 'Problema 241: Perfezione dei quozienti'
challengeType: 5
forumTopicId: 301888
dashedName: problem-241-perfection-quotients
---
# --description--
Per un numero intero positivo $n$, sia $σ(n)$ la somma di tutti i divisori di $n$, per esempio $σ(6) = 1 + 2 + 3 + 6 = 12$.
Un numero perfetto, come forse già sai, è un numero per cui $σ(n) = 2n$.
Definiamo il quoziente perfetto di iun numero intero positivo come $p(n) = \frac{σ(n)}{n}$.
Trova la somma di tutti i numeri interi positivi $n ≤ {10}^{18}$ per cui $p(n)$ ha la forma $k + \frac{1}{2}$, dove $k$ è un numero intero.
# --hints--
`perfectionQuotients()` dovrebbe restituire `482316491800641150`.
```js
assert.strictEqual(perfectionQuotients(), 482316491800641150);
```
# --seed--
## --seed-contents--
```js
function perfectionQuotients() {
return true;
}
perfectionQuotients();
```
# --solutions--
```js
// solution required
```