OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
prime(5)/prime(4) = 11/7, the continued fraction of 11/7 is [1, 1, 1, 3], hence a(4) = 3.
MATHEMATICA
Table[Max[ContinuedFraction[Prime[n+1]/Prime[n]]], {n, 80}] (* Harvey P. Dale, Dec 24 2015 *)
PROG
(PARI) for(n=1, 200, print1(vecmax(contfrac(prime(n+1)/prime(n))), ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Jun 09 2002
STATUS
approved