A166712 Number of primes in (n*log(n)..(n+1)*log(n+1)] semi-open intervals, n >= 1.
0, 2, 1, 1, 0, 2, 0, 2, 1, 0, 1, 1, 0, 1, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 2, 1, 0, 0, 1, 1, 1, 1, 0, 2, 0, 1, 1, 1, 1, 1, 1, 0, 2, 2, 0, 0, 1, 0, 1, 2, 1, 1, 1, 0, 1, 1, 1, 2, 0, 2, 1, 0, 1, 0, 1, 2, 1, 0, 0, 1, 1, 0, 2, 1, 1, 0, 1, 1, 2, 0, 1
Offset: 1
Keywords
Links
- Daniel Forgues, Table of n, a(n) for n=1..10769
Programs
-
Mathematica
Table[PrimePi[(n+1)*Log[n+1]] - PrimePi[n*Log[n]], {n, 100}] (* T. D. Noe, Oct 15 2012 *)
Formula
a(n) = pi((n+1)*log(n+1)) - pi(n*log(n)) since the intervals are semi-open properly.
Comments