OFFSET
1,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
EXAMPLE
a(1)=0+(-1)^0=1. a(2)=1+(-1)^1=0. a(3)=4+(-1)^4=5.
MAPLE
MATHEMATICA
Join[{1}, With[{nn=100}, #+(-1)^#&/@Complement[Range[nn], Prime[ Range[ PrimePi[nn]]]]]] (* Harvey P. Dale, Jul 24 2011 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Juri-Stepan Gerasimov, Aug 08 2009
EXTENSIONS
a(58) corrected by R. J. Mathar, Aug 11 2009
STATUS
approved