freeCodeCamp/curriculum/challenges/italian/10-coding-interview-prep/project-euler/problem-454-diophantine-rec...

47 lines
823 B
Markdown
Raw Normal View History

---
id: 5900f5331000cf542c510045
title: 'Problema 454: Reciproci diofantini III'
challengeType: 5
forumTopicId: 302127
dashedName: problem-454-diophantine-reciprocals-iii
---
# --description--
Nella seguente equazione $x$, $y$e $n$ sono interi positivi.
$$\frac{1}{x} + \frac{1}{y} = \frac{1}{n}$$
Per un limite $L$ definiamo $F(L)$ come il numero di soluzioni che soddisfano $x < y ≤ L$.
Possiamo verificare che $F(15) = 4$ e $F(1000) = 1069$.
Trova $F({10}^{12})$.
# --hints--
`diophantineReciprocalsThree()` dovrebbe restituire `5435004633092`.
```js
assert.strictEqual(diophantineReciprocalsThree(), 5435004633092);
```
# --seed--
## --seed-contents--
```js
function diophantineReciprocalsThree() {
return true;
}
diophantineReciprocalsThree();
```
# --solutions--
```js
// solution required
```