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.

A059111 a(n) = floor(prime(n) - n*log(n)).

Original entry on oeis.org

2, 1, 1, 1, 2, 2, 3, 2, 3, 5, 4, 7, 7, 6, 6, 8, 10, 8, 11, 11, 9, 10, 10, 12, 16, 16, 14, 13, 11, 10, 20, 20, 21, 19, 24, 21, 23, 24, 24, 25, 26, 24, 29, 26, 25, 22, 30, 37, 36, 33, 32, 33, 30, 35, 36, 37, 38, 35, 36, 35, 32, 37, 45, 44, 41, 40, 49, 50, 54, 51, 50, 51, 53, 54, 55
Offset: 1

Views

Author

Henry Bottomley, Jan 04 2001

Keywords

Crossrefs

Programs

  • Magma
    [ Floor(NthPrime(n)-n*Log(n)): n in [1..75] ];  // Bruno Berselli, May 02 2011
  • Mathematica
    Table[Floor[Prime[n]-n Log[n]],{n,100}] (* Harvey P. Dale, May 02 2011 *)
  • PARI
    { default(realprecision, 100); for (n = 1, 1000, write("b059111.txt", n, " ", floor(prime(n) - n*log(n))); ) } \\ Harry J. Smith, Jun 25 2009
    

Extensions

Definition corrected by Harry J. Smith, Jun 24 2009