The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A079490 Exp(n) is closer to an integer than any previous exp(k) for 1 <= k < n. 12
1, 3, 8, 19, 45, 75, 135, 178, 209, 732, 1351, 1907, 5469, 28414, 37373, 404055, 902497 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
REFERENCES
J.-M. De Koninck, Ces nombres qui nous fascinent, Entry 178, p. 56, Ellipses, Paris 2008.
LINKS
EXAMPLE
a(2) = 3: exp(3) = 20.08... is closer to an integer than exp(1) = 2.718...
At 37373 the difference from an integer is 0.0000010493779591646530966...
MATHEMATICA
a = 1; Do[ d = Abs[ Round[E^n] - N[E^n, Ceiling[ Log[10, E^n] + 10]]]; If[d < a, Print[n]; a = d], {n, 1, 50000}]
PROG
(PARI) {default(realprecision, 1000); d(x)=abs(x-round(x))}; a(n)=local(m); if(n<2, n>0, n=a(n-1); m=d(exp(n)); until(d(exp(n))<m, n++); n)
(PARI) d(x)=x=frac(x); min(x, 1-x)
D(n)=localbitprec(n/log(2)+99); d(exp(n))
r=1; for(n=1, 4e4, t=D(n); if(t<r, r=t; print1(n", "))) \\ Charles R Greathouse IV, Oct 31 2022
CROSSREFS
Sequence in context: A281812 A077850 A097550 * A361506 A026789 A308372
KEYWORD
nonn,more
AUTHOR
Donald S. McDonald, Jan 20 2003
EXTENSIONS
Corrected and extended to 1351 by several correspondents, Jan 20 2003
a(12)-a(15) from Robert G. Wilson v, Jan 20 2003
a(16)-a(17) from Charles R Greathouse IV, Nov 01 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 15 16:29 EDT 2024. Contains 372548 sequences. (Running on oeis4.)