freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-180-rational-zeros-...

56 lines
1.5 KiB
Markdown
Raw Normal View History

---
id: 5900f4201000cf542c50ff33
challengeType: 5
title: 'Problem 180: Rational zeros of a function of three variables'
videoUrl: ''
localeTitle: 问题180三个变量函数的有理零点
---
## Description
<section id="description">对于任何整数n考虑三个函数f1nxyz= xn + 1 + yn + 1 - zn + 1f2nxyz=xy + yz + zx* xn-1 + yn-1-zn-1f3nxyz= xyz *xn-2 + yn-2-zn-2及其组合fnxyz= f1nxyz+ f2nxyz - f3nxyz如果是x我们将xyz称为k阶的黄金三元组 y和z都是形式为a / b的有理数0 &lt;a &lt;b≤k且存在至少一个整数n因此fnxyz= 0.设sx yz= x + y + z。设t = u / v是所有不同sxyz的所有黄金三元组xyz的总和。所有sxyz和t必须在减少形式。找到你+ v。 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler180()</code>应该返回285196020571078980。
testString: 'assert.strictEqual(euler180(), 285196020571078980, "<code>euler180()</code> should return 285196020571078980.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler180() {
// Good luck!
return true;
}
euler180();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>