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.

Previous Showing 11-13 of 13 results.

A345328 a(n) is the smallest integer k>1 such that |log(k)-round(log(k))| is smaller than 10^(-n).

Original entry on oeis.org

3, 20, 1096, 2981, 59874, 442413, 8886110, 65659969, 178482301, 3584912846, 26489122130, 195729609429, 3931334297144, 78962960182680, 214643579785916, 4311231547115195, 31855931757113756, 86593400423993747, 12851600114359308275, 34934271057485095348
Offset: 1

Views

Author

Andrzej Kukla, Jun 14 2021

Keywords

Comments

In other words, a(n) is the smallest integer k>1 such that the distance between log(k) and nearest integer to log(k) is smaller than 10^(-n).

Examples

			For n=4 a(n)=2981, because 2981 is the smallest integer greater than 1 such that |log(2981)-round(2981)| = 0.00001409... < 10^(-4).
		

Crossrefs

Programs

  • Maple
    n := 1: for i from 2 to 10^10 do if abs(evalf(log(i)) - floor(log(i) + 1/2)) < 10^(-n) then print(i); n := n + 1 fi end do;
  • PARI
    \\ suitable precision needed.
    a(n)={my(epsilon=1.0/10^n); for(k=1, oo, my(t=floor(exp(k))); if(k-log(t)Andrew Howroyd, Jun 14 2021

Extensions

Terms a(10) and beyond from Andrew Howroyd, Jun 14 2021

A092756 Partial sums of round(exp(n)).

Original entry on oeis.org

3, 10, 30, 85, 233, 636, 1733, 4714, 12817, 34843, 94717, 257472, 699885, 1902489, 5171506, 14057617, 38212570, 103872539, 282354840, 767520035, 2086335769, 5671248615, 15416052061, 41905174191, 113910073528, 309639682957
Offset: 1

Views

Author

Jorge Coveiro, Apr 13 2004

Keywords

Examples

			a(1) = round(exp(1))
a(2) = a(1) + round(exp(2))
a(3) = a(2) + round(exp(3))
a(4) = a(3) + round(exp(4))
...
		

Crossrefs

Cf. A000227.

Extensions

More terms from Pab Ter (pabrlos(AT)yahoo.com), May 24 2004

A305289 Powers of 2*Pi, rounded to the nearest integer.

Original entry on oeis.org

1, 6, 39, 248, 1559, 9793, 61529, 386598, 2429064, 15262259, 95895601, 602529829, 3785806568, 23786924201, 149457652642, 939070127125, 5900351625162, 37073002638414, 232936545470713, 1463583480006755, 9195966217409213, 57779959822545404, 363042194606444109, 2281061383037441740
Offset: 0

Views

Author

M. F. Hasler, May 29 2018

Keywords

Crossrefs

Cf. A001674 (floor(sqrt(2 Pi)^n)), A001675 (round sqrt(2 Pi)^n), A001698 (ceiling sqrt(2 Pi)^n), A017911 (round sqrt(2)^n), A000227 (round e^n), A002160 (round Pi^n).

Programs

  • Mathematica
    Round[(2Pi)^Range[0,30]] (* Harvey P. Dale, Aug 12 2021 *)
  • PARI
    apply( a(n)=(2*Pi)^n\/1, [0..40])

Formula

a(n) = round((2 Pi)^n) = A001675(2*n) >= A001674(2n).
Previous Showing 11-13 of 13 results.