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.

A094007 Numbers k such that the denominator of the k-th convergent of the continued fraction expansion of e is prime.

Original entry on oeis.org

3, 5, 8, 14, 20, 35, 41, 65, 239, 269
Offset: 1

Views

Author

Jonathan Sondow, Apr 20 2004; corrected Apr 21 2004

Keywords

Comments

a(n) is the position of A094008(n) in A007677 (denominators of convergents to e), so A007677(a(n)) = A094008(n). Also, A102049(n) is the position of A007677(a(n)) in A000040 (the prime numbers), so A000040(A102049(n)) = A007677(a(n)).
a(11) > 50000. - Lucas A. Brown, Apr 21 2021

Examples

			The convergents for e are 2, 3, 8/3, 11/4, 19/7, ... and so the 3rd convergent is the first one with prime denominator: a(1) = 3 and the 5th convergent is the 2nd one with prime denominator: a(2) = 5.
		

Crossrefs

Programs

  • Mathematica
    L = {}; cf = ContinuedFraction[E, 5000]; Do[ If[ PrimeQ[ Denominator[ FromContinuedFraction[ Take[ cf, n]] ]], AppendTo[L, n]], {n, Length[cf]}]; L (* Robert G. Wilson v, May 14 2004 *)

Extensions

More terms from Robert G. Wilson v, May 14 2004