1.4 KiB
1.4 KiB
id | challengeType | title |
---|---|---|
5900f3f51000cf542c50ff08 | 5 | Problem 137: Fibonacci golden nuggets |
Description
= 1/2 + 1/4 + 2/8 + 3/16 + 5/32 + ...
= 2 The corresponding values of x for the first five natural numbers are shown below.
xAF(x) √2−11 1/22 (√13−2)/33 (√89−5)/84 (√34−3)/55
We shall call AF(x) a golden nugget if x is rational, because they become increasingly rarer; for example, the 10th golden nugget is 74049690. Find the 15th golden nugget.
Instructions
Tests
tests:
- text: <code>euler137()</code> should return 1120149658760.
testString: assert.strictEqual(euler137(), 1120149658760, '<code>euler137()</code> should return 1120149658760.');
Challenge Seed
function euler137() {
// Good luck!
return true;
}
euler137();
Solution
// solution required