OFFSET
1
COMMENTS
Omega(n) = A001222(n) is the number of prime factors of n counted with multiplicity.
EXAMPLE
Agrees with Moebius function A008683 except for numbers like 12, 18, .... Moebius(12) = 0, a(12) = (-1)^3 = -1. - N. J. A. Sloane, May 26 2018
MATHEMATICA
Table[If[GCD @@ FactorInteger[n][[All, 2]] == 1, (-1)^PrimeOmega[n], 0], {n, 100}]
CROSSREFS
KEYWORD
sign
AUTHOR
Gus Wiseman, May 18 2018
STATUS
approved