OFFSET
0,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = n + 1 - 2*primepi(n), n = 0, 1, 2, ..., where primepi(n) = A000720(n).
From Antti Karttunen, Aug 21 2016: (Start)
a(0) = 1, for n >= 1, a(n) = a(n-1) + (-1)^A010051(n). (from the definition).
(End)
MATHEMATICA
Table[n + 1 - 2*PrimePi[n], {n, 0, 100}]
PROG
CROSSREFS
For no apparent reason, the terms a(3)..a(24) are equal to the terms a(0)..a(21) of A276090.
KEYWORD
nonn
AUTHOR
Zak Seidov, May 22 2006
EXTENSIONS
Offset and the name corrected by Antti Karttunen, Aug 19 2016
STATUS
approved