1.4 KiB
1.4 KiB
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f3f51000cf542c50ff08 | 5 | Problem 137: Fibonacci golden nuggets | 问题137:斐波那契金块 |
Description
= 1/2 + 1/4 + 2/8 + 3/16 + 5/32 + ......
= 2前五个自然数的x的相应值如下所示。
xAF(x)√2-111/ 22(√13-2)/ 33(√89-5)/ 84(√34-3)/ 55
如果x是理性的,我们将AF(x)称为金块,因为它们变得越来越稀少;例如,第10个金块是74049690.找到第15个金块。
Instructions
Tests
tests:
- text: <code>euler137()</code>应该返回1120149658760。
testString: 'assert.strictEqual(euler137(), 1120149658760, "<code>euler137()</code> should return 1120149658760.");'
Challenge Seed
function euler137() {
// Good luck!
return true;
}
euler137();
Solution
// solution required