cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A110021 Final term of the simple continued fraction for prime(n+1)/prime(n).

Original entry on oeis.org

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

Views

Author

Leroy Quet, Sep 03 2005

Keywords

Examples

			Prime(6)/prime(5) = 13/11 = 1 + 1/(5 + 1/2). So a(5) = 2.
		

Crossrefs

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