|
|
A094007
|
|
Numbers k such that the denominator of the k-th convergent of the continued fraction expansion of e is prime.
|
|
5
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
J. Sondow and K. Schalm, Which partial sums of the Taylor series for e are convergents to e? (and a link to the primes 2, 5, 13, 37, 463), II, Gems in Experimental Mathematics (T. Amdeberhan, L. A. Medina, and V. H. Moll, eds.), Contemporary Mathematics, vol. 517, Amer. Math. Soc., Providence, RI, 2010; arXiv:0709.0671 [math.NT], 2007-2009.
Eric Weisstein's World of Mathematics, e
|
|
EXAMPLE
|
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.
|
|
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 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|