A233208 A measure of quality (the higher the better) for the approximation to e by rationals A022852(n)/n.
3, 2, 6, 7, 2, 3, 35, 3, 2, 5, 10, 2, 2, 17, 4, 2, 4, 14, 2, 2, 11, 5, 2, 4, 23, 3, 2, 8, 5, 2, 3, 66, 3, 2, 7, 7, 2, 3, 76, 3, 2, 5, 8, 2, 3, 24, 4, 2, 5, 11, 2, 2, 14, 4, 2, 4, 17, 2, 2, 10, 5, 2, 3, 33, 3, 2, 8, 6, 2, 3, 502, 3, 2, 6, 7, 2, 3, 38, 3, 2, 5, 9, 2, 2, 18, 4, 2, 4, 13, 2, 2, 12, 5, 2, 4, 22
Offset: 1
Keywords
Examples
a(7) = 35 because floor(1/abs(7*e-19)) = floor(1/0.0279727...) = floor(35.749...) = 35.
Programs
-
PARI
a(n)=floor(1/abs(n*exp(1)-round(n*exp(1)))) \\ Ralf Stephan, Dec 13 2013
Formula
a(n) = floor( 1 / abs( n*e-A022852(n) ) ).
Extensions
More terms from Ralf Stephan, Dec 13 2013
Comments