OFFSET
0,3
EXAMPLE
+---+-------------+--------------------+-------------------+
| n | a(n)/a(n+1) | Continued fraction | Comment |
+---+-------------+--------------------+-------------------+
| 1 | 1/2 | [0; 2] | 2 = prime(a(1)) |
+---+-------------+--------------------+-------------------+
| 2 | 2/7 | [0; 3, 2] | 3 = prime(a(2)) |
+---+-------------+--------------------+-------------------+
| 3 | 7/121 | [0; 17, 3, 2] | 17 = prime(a(3)) |
+---+-------------+--------------------+-------------------+
| 4 | 121/79988 | [0; 661, 17, 3, 2] | 661 = prime(a(4)) |
+---+-------------+--------------------+-------------------+
MATHEMATICA
RecurrenceTable[{a[0] == 0, a[1] == 1, a[n] == Prime[a[n - 1]] a[n - 1] + a[n - 2]}, a[n], {n, 7}]
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Ilya Gutkovskiy, Dec 08 2017
STATUS
approved