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.

Showing 1-2 of 2 results.

A079490 Exp(n) is closer to an integer than any previous exp(k) for 1 <= k < n.

Original entry on oeis.org

1, 3, 8, 19, 45, 75, 135, 178, 209, 732, 1351, 1907, 5469, 28414, 37373, 404055, 902497
Offset: 1

Views

Author

Donald S. McDonald, Jan 20 2003

Keywords

Examples

			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...
		

References

  • J.-M. De Koninck, Ces nombres qui nous fascinent, Entry 178, p. 56, Ellipses, Paris 2008.

Crossrefs

Programs

  • 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}]
  • 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))
    				
  • 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(tCharles R Greathouse IV, Oct 31 2022

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

A004791 Numbers k >= 2 such that if 1 <= j < k then fractional part of log k > fractional part of log j.

Original entry on oeis.org

2, 6, 7, 20, 148, 403, 1096, 2980, 8101, 8102, 8103, 59874, 442413, 1202604, 3269017, 8886110, 24154952, 65659968, 65659969, 485165195, 1318815734, 3584912845, 3584912846, 9744803446, 72004899336, 72004899337, 195729609428, 532048240600
Offset: 1

Views

Author

Keywords

Crossrefs

Cf. A004790.

Programs

  • PARI
    lista(n) = {last = frac(log(1)); for (k=1, n, new = frac(log(k)); if (new > last, print1 (k, ", "); last = new;););}  \\ Michel Marcus, Mar 21 2013

Extensions

More terms from David W. Wilson
Showing 1-2 of 2 results.