OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
FORMULA
MAPLE
with(numtheory): a:=n->(pi(n+1)-pi(n))*(ithprime(n+1)-ithprime(n)): seq(a(n), n=1..160);
MATHEMATICA
an = Table[(PrimePi[n + 1] - PrimePi[n])*(Prime[n + 1] - Prime[n]), {n, 1, 200}]
PROG
(PARI) A109578(n) = ((primepi(n+1)-primepi(n)) * (prime(n+1)-prime(n))); \\ Antti Karttunen, Jan 03 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Jun 29 2005
STATUS
approved