login
A110021
Final term of the simple continued fraction for prime(n+1)/prime(n).
5
2, 2, 2, 3, 2, 4, 2, 3, 5, 2, 6, 4, 2, 3, 5, 5, 2, 6, 3, 2, 6, 3, 5, 8, 4, 2, 3, 2, 4, 14, 3, 5, 2, 9, 2, 6, 6, 3, 5, 5, 2, 10, 2, 4, 2, 2, 2, 3, 2, 4, 5, 2, 10, 5, 5, 5, 2, 6, 4, 2, 3, 13, 3, 2, 4, 4, 6, 3, 2, 4, 5, 7, 6, 6, 3, 5, 2, 4, 8, 9, 2, 10, 2, 6, 3, 5, 8, 4, 2, 3, 11, 7, 3, 2, 3, 5, 2, 2, 18, 6
OFFSET
1,1
EXAMPLE
Prime(6)/prime(5) = 13/11 = 1 + 1/(5 + 1/2). So a(5) = 2.
MATHEMATICA
Table[Last[ContinuedFraction[Prime[n + 1]/Prime[n]]], {n, 100}] (* Ray Chandler, Sep 18 2005 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Sep 03 2005
EXTENSIONS
Extended by Ray Chandler, Sep 18 2005
STATUS
approved