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.

A064663 a(n) = n - ceiling( prime(n)/log(prime(n)) ).

Original entry on oeis.org

-2, -1, -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 3, 4, 4, 5, 5, 6, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 6, 7, 7, 8, 7, 6, 7, 7, 8, 8, 9, 8, 8, 8, 8, 9, 9, 10, 10, 10, 9, 9, 10, 10, 9, 10, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 11, 11, 12, 11
Offset: 1

Views

Author

N. J. A. Sloane, Oct 10 2001

Keywords

Crossrefs

Programs

  • Mathematica
    Table[n-Ceiling[Prime[n]/Log[Prime[n]]],{n,90}] (* Harvey P. Dale, Dec 05 2012 *)
  • PARI
    { for (n=1, 1000, write("b064663.txt", n, " ", n - ceil( prime(n)/log(prime(n)) )) ) } \\ Harry J. Smith, Sep 21 2009