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”).

A076882
pi(n) - ceiling(n / log(n)), where pi(n) = the number of primes <= n.
0
-2, -1, -1, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 1, 1, 2, 2, 3, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 3, 3, 3, 3, 4, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3
OFFSET
2,1
MATHEMATICA
Table[PrimePi[i] - Ceiling[i/Log[i]], {i, 2, 100}]
CROSSREFS
Sequence in context: A096493 A269242 A321759 * A229745 A339366 A016397
KEYWORD
sign
AUTHOR
Joseph L. Pe, Nov 25 2002
STATUS
approved