OFFSET
1,2
COMMENTS
After a(32), a(n) always exceeds 0. See A243906(32).
EXAMPLE
a(6) = 0, because (4+6) - (2+3+5) = 0.
MATHEMATICA
a[n_] := Plus @@ Select[ Range@ n, PrimeOmega@ # == 2 &] - Plus @@ Select[ Range@ n, PrimeOmega@ # == 1 &]; Array[a, 70]
PROG
(PARI) a(n) = my(vf=apply(factor, [1..n])); vecsum(Vec(select(x->(bigomega(x)==2), vf, 1))) - vecsum(Vec(select(x->(bigomega(x)==1), vf, 1))); \\ Michel Marcus, Dec 28 2024
CROSSREFS
KEYWORD
sign,new
AUTHOR
Robert G. Wilson v and Luca Bencini-Tibo, Dec 20 2024
STATUS
approved