freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-140-modified-fibonacci-golden-nuggets.md
Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

43 lines
987 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f3fa1000cf542c50ff0c
title: 问题140改进的斐波那契金块
challengeType: 5
videoUrl: ''
dashedName: problem-140-modified-fibonacci-golden-nuggets
---
# --description--
考虑无穷多项式系列AGx= xG1 + x2G2 + x3G3 + ...其中Gk是二阶递归关系的第k项Gk = Gk-1 + Gk-2G1 = 1G2 = 4;也就是说1,4,5,9,14,23 ......对于这个问题我们将关注x的值其中AGx是正整数。前五个自然数的x的相应值如下所示。
xAGx√5-1/ 41 2/52√22-2/ 63√137-5/ 144 1/25
如果x是理性的我们将称AGx为金块因为它们变得越来越稀少;例如第20个金块是211345365.找到前30个金块的总和。
# --hints--
`euler140()`应该返回5673835352990。
```js
assert.strictEqual(euler140(), 5673835352990);
```
# --seed--
## --seed-contents--
```js
function euler140() {
return true;
}
euler140();
```
# --solutions--
```js
// solution required
```