Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com> Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
1.3 KiB
1.3 KiB
id, challengeType, isHidden, title, forumTopicId
id | challengeType | isHidden | title | forumTopicId |
---|---|---|---|---|
5900f3fa1000cf542c50ff0c | 5 | false | Problem 140: Modified Fibonacci golden nuggets | 301769 |
Description
xAG(x) (√5−1)/41 2/52 (√22−2)/63 (√137−5)/144 1/25
We shall call AG(x) a golden nugget if x is rational, because they become increasingly rarer; for example, the 20th golden nugget is 211345365. Find the sum of the first thirty golden nuggets.
Instructions
Tests
tests:
- text: <code>euler140()</code> should return 5673835352990.
testString: assert.strictEqual(euler140(), 5673835352990);
Challenge Seed
function euler140() {
// Good luck!
return true;
}
euler140();
Solution
// solution required