OFFSET
1,2
COMMENTS
LINKS
Donovan Johnson, Table of n, a(n) for n = 1..9056
EXAMPLE
MATHEMATICA
PrimeOmega[n_] := Plus @@ FactorInteger[n][[All, 2]]; PrimeNu[n_] := Length[FactorInteger[n]]; Reap[For[s1 = 0; s2 = 0; n = 1, n < 15000, n++, s1 = s1 + (-1)^PrimeOmega[n]; s2 = s2 + (-1)^PrimeNu[n]; If[s1 == s2, Print[n]; Sow[n]]]][[2, 1]] (* Jean-François Alcover, May 03 2013, after Pari *)
PROG
(PARI) s1=0; s2=0; c=0; for(n=1, 16959554, s1=s1+(-1)^bigomega(n); s2=s2+(-1)^omega(n); if(s1==s2, c++; write("b224987.txt", c " " n)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Donovan Johnson, Apr 22 2013
STATUS
approved