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

A109554
pi(n)[prime(n+1)-prime(n)], where pi(n) is the number of prime numbers less than or equal to n and prime(k) is the k-th prime.
0
0, 2, 4, 8, 6, 12, 8, 16, 24, 8, 30, 20, 12, 24, 36, 36, 14, 42, 32, 16, 48, 32, 54, 72, 36, 18, 36, 18, 40, 140, 44, 66, 22, 110, 22, 66, 72, 48, 72, 72, 26, 130, 28, 56, 28, 168, 180, 60, 30, 60, 90, 30, 160, 96, 96, 96, 32, 96, 68, 34, 180, 252, 72, 36, 72, 252, 114, 190, 38
OFFSET
1,2
EXAMPLE
a(2)=pi(2)[prime(3)-prime(2)]=1*(5-3)=2.
MAPLE
with(numtheory): a:=n->pi(n)*(ithprime(n+1)-ithprime(n)): seq(a(n), n=1..70);
MATHEMATICA
a = Table[(Prime[n + 1] - Prime[n])*PrimePi[n], {n, 1, 200}]
CROSSREFS
Sequence in context: A125597 A366170 A151732 * A339821 A269382 A253886
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Jun 27 2005
STATUS
approved