Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-454-diophantine-reciprocals-iii.md
2022-01-23 00:08:20 +09:00

47 lines
866 B
Markdown

---
id: 5900f5331000cf542c510045
title: '問題 454: ディオファントス逆数 (3)'
challengeType: 5
forumTopicId: 302127
dashedName: problem-454-diophantine-reciprocals-iii
---
# --description--
次の式の $x$, $y$, $n$ は正の整数です。
$$\frac{1}{x} + \frac{1}{y} = \frac{1}{n}$$
上限が $L$ のとき、$x < y ≤ L$ を満たす解の個数を $F(L)$ とします。
$F(15) = 4$, $F(1000) = 1069$ であることを確認できます。
$F({10}^{12})$ を求めなさい。
# --hints--
`diophantineReciprocalsThree()``5435004633092` を返す必要があります。
```js
assert.strictEqual(diophantineReciprocalsThree(), 5435004633092);
```
# --seed--
## --seed-contents--
```js
function diophantineReciprocalsThree() {
return true;
}
diophantineReciprocalsThree();
```
# --solutions--
```js
// solution required
```