Alternating sum of the number of distinct prime factors of the numbers up to n.
0, 1, 0, 1, 0, 2, 1, 2, 1, 3, 2, 4, 3, 5, 3, 4, 3, 5, 4, 6, 4, 6, 5, 7, 6, 8, 7, 9, 8, 11, 10, 11, 9, 11, 9, 11, 10, 12, 10, 12, 11, 14, 13, 15, 13, 15, 14, 16, 15, 17, 15, 17, 16, 18, 16, 18, 16, 18, 17, 20, 19, 21, 19, 20, 18, 21, 20, 22, 20, 23, 22, 24, 23
1
This sequence appears to be nonnegative. Is there a proof? See S000470 for sums at 2^n.
T. D. Noe, Plot of 1000 terms
T. D. Noe, Table of 1000 terms
Eric W. Weinstein, MathWorld: Distinct Prime Factors
(Mma) Accumulate[Join[{0}, Table[Length[FactorInteger[n]] (-1)^n, {n, 2, 100}]]]
Cf. A013939, S000469, S000470.
nonn
T. D. Noe, Feb 06 2015