freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-108-diophantine-rec...

41 lines
691 B
Markdown
Raw Normal View History

---
id: 5900f3d91000cf542c50feeb
title: 问题108丢番图互惠I
challengeType: 5
videoUrl: ''
dashedName: problem-108-diophantine-reciprocals-i
---
# --description--
在下面的等式中xy和n是正整数。 1 / `x` + 1 / `y` = 1 / `n`对于`n` = 4恰好有三种不同的解1/5 + 1/20 = 1/4
1/6 + 1/12 = 1/4
1/8 + 1/8 = 1/4不同解的数量超过一千的`n的`最小值是多少?
# --hints--
diophantineOne `diophantineOne()`应返回180180。
```js
assert.strictEqual(diophantineOne(), 180180);
```
# --seed--
## --seed-contents--
```js
function diophantineOne() {
return true;
}
diophantineOne();
```
# --solutions--
```js
// solution required
```