login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A064661
a(n) = n - floor( prime(n)/log(prime(n)) ).
1
-1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 4, 5, 5, 6, 6, 7, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 7, 8, 8, 9, 8, 7, 8, 8, 9, 9, 10, 9, 9, 9, 9, 10, 10, 11, 11, 11, 10, 10, 11, 11, 10, 11, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 12, 12
OFFSET
1,8
LINKS
MATHEMATICA
Table[n-Floor[Prime[n]/Log[Prime[n]]], {n, 90}] (* Harvey P. Dale, Sep 27 2017 *)
PROG
(PARI) { for (n=1, 1000, write("b064661.txt", n, " ", n - prime(n)\log(prime(n))) ) } \\ Harry J. Smith, Sep 21 2009
CROSSREFS
KEYWORD
sign
AUTHOR
N. J. A. Sloane, Oct 10 2001
STATUS
approved