OFFSET
1,6
COMMENTS
The Heinz number of an integer partition (y_1, ..., y_k) is prime(y_1) * ... * prime(y_k).
LINKS
EXAMPLE
The sum of coefficients of m(2211) = 9e(6) + e(42) - 4e(51) is a(36) = 6.
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Table[(-1)^(Total[primeMS[n]]-PrimeOmega[n])*Length[Permutations[primeMS[n]]], {n, 50}]
CROSSREFS
KEYWORD
sign
AUTHOR
Gus Wiseman, Nov 19 2018
STATUS
approved