A110021 Final term of the simple continued fraction for prime(n+1)/prime(n).
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
Keywords
Examples
Prime(6)/prime(5) = 13/11 = 1 + 1/(5 + 1/2). So a(5) = 2.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Table[Last[ContinuedFraction[Prime[n + 1]/Prime[n]]], {n, 100}] (* Ray Chandler, Sep 18 2005 *)
Extensions
Extended by Ray Chandler, Sep 18 2005