2018-10-10 22:03:03 +00:00
|
|
|
|
---
|
|
|
|
|
id: 5900f3d91000cf542c50feeb
|
2020-12-16 07:37:30 +00:00
|
|
|
|
title: 问题108:丢番图互惠I
|
2018-10-10 22:03:03 +00:00
|
|
|
|
challengeType: 5
|
|
|
|
|
videoUrl: ''
|
|
|
|
|
---
|
|
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
|
# --description--
|
2018-10-10 22:03:03 +00:00
|
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
|
在下面的等式中,x,y和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的`最小值是多少?
|
2018-10-10 22:03:03 +00:00
|
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
|
# --hints--
|
2018-10-10 22:03:03 +00:00
|
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
|
diophantineOne `diophantineOne()`应返回180180。
|
2018-10-10 22:03:03 +00:00
|
|
|
|
|
|
|
|
|
```js
|
2020-12-16 07:37:30 +00:00
|
|
|
|
assert.strictEqual(diophantineOne(), 180180);
|
2018-10-10 22:03:03 +00:00
|
|
|
|
```
|
|
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
|
# --solutions--
|
2020-08-13 15:24:35 +00:00
|
|
|
|
|