2018-09-30 22:01:58 +00:00
---
id: 5900f3f51000cf542c50ff08
title: 'Problem 137: Fibonacci golden nuggets'
2020-11-27 18:02:05 +00:00
challengeType: 5
2019-08-05 16:17:33 +00:00
forumTopicId: 301765
2021-01-13 02:31:00 +00:00
dashedName: problem-137-fibonacci-golden-nuggets
2018-09-30 22:01:58 +00:00
---
2020-11-27 18:02:05 +00:00
# --description--
2018-09-30 22:01:58 +00:00
Consider the infinite polynomial series AF(x) = xF1 + x2F2 + x3F3 + ..., where Fk is the kth term in the Fibonacci sequence: 1, 1, 2, 3, 5, 8, ... ; that is, Fk = Fk− 1 + Fk− 2, F1 = 1 and F2 = 1.
2020-11-27 18:02:05 +00:00
2018-09-30 22:01:58 +00:00
For this problem we shall be interested in values of x for which AF(x) is a positive integer.
2020-11-27 18:02:05 +00:00
2018-09-30 22:01:58 +00:00
Surprisingly AF(1/2)
2020-11-27 18:02:05 +00:00
=
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
(1/2).1 + (1/2)2.1 + (1/2)3.2 + (1/2)4.3 + (1/2)5.5 + ...
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
= 1/2 + 1/4 + 2/8 + 3/16 + 5/32 + ...
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
= 2 The corresponding values of x for the first five natural numbers are shown below.
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
xAF(x) √2− 11 1/22 (√13− 2)/33 (√89− 5)/84 (√34− 3)/55
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
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.
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
# --hints--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
`euler137()` should return 1120149658760.
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
```js
assert.strictEqual(euler137(), 1120149658760);
2018-09-30 22:01:58 +00:00
```
2020-11-27 18:02:05 +00:00
# --seed--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
## --seed-contents--
2018-09-30 22:01:58 +00:00
```js
function euler137() {
2020-09-15 16:57:40 +00:00
2018-09-30 22:01:58 +00:00
return true;
}
euler137();
```
2020-11-27 18:02:05 +00:00
# --solutions--
2018-09-30 22:01:58 +00:00
```js
// solution required
```