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.

A050499 Nearest integer to n/log(n).

Original entry on oeis.org

3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17
Offset: 2

Views

Author

N. J. A. Sloane, Dec 27 1999

Keywords

Comments

The prime number theorem states that the number of primes <= x is asymptotic to x/log(x).
n/log(n) = n*A002285/log_10(n). [Eric Desbiaux, Jun 27 2009]
Similar to floor(1/(1-x)) where x^n=1/n. - Jon Perry, Oct 29 2013

References

  • Cf. G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 5th ed., Oxford Univ. Press, 1979, Theorem 6.

Crossrefs

Programs

  • JavaScript
    for (i=1;i<100;i++) {
    x=Math.pow(1/i,1/i);
    document.write(Math.floor(1/(1-x))+", ");
    }
    
  • Mathematica
    Table[Round[n/Log[n]],{n,2,80}] (* Harvey P. Dale, Nov 03 2013 *)
  • PARI
    a(n) = round(n/log(n)); \\ Michel Marcus, Jan 24 2025