OFFSET
1,72
COMMENTS
LINKS
FORMULA
a(1) = 1; for n>= 2, a(n) = sum, over ways to factor n into any number of distinct composites, of (-1)^(number of composites in a factorization). (See example.)
EXAMPLE
24 can be factored into distinct composites as 24 and as 4*6.
So a(24) = (-1)^1 + (-1)^2 = 0, where the 1 exponent is due to the 1 factor of the 24 = 24 factorization and the 2 exponent is due to the 2 factors of the 24 = 4*6 factorization.
MATHEMATICA
a[n_] := Total[((-1)^Length[#]& ) /@ Select[Subsets[Select[Rest[Divisors[n]], !PrimeQ[#]& ]], Times @@ # == n & ]]; Table[a[n], {n, 1, 80}]
PROG
CROSSREFS
KEYWORD
sign
AUTHOR
Leroy Quet, Dec 11 2005
EXTENSIONS
More terms from Jean-François Alcover, Sep 26 2013
STATUS
approved