OFFSET
1,1
COMMENTS
The Heinz number of a partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k). This gives a bijective correspondence between positive integers and integer partitions.
EXAMPLE
The terms together with their prime indices are the following. Each multiset has even sum and at least one odd part.
4: {1,1}
10: {1,3}
12: {1,1,2}
16: {1,1,1,1}
22: {1,5}
25: {3,3}
28: {1,1,4}
30: {1,2,3}
34: {1,7}
36: {1,1,2,2}
40: {1,1,1,3}
46: {1,9}
48: {1,1,1,1,2}
52: {1,1,6}
55: {3,5}
62: {1,11}
64: {1,1,1,1,1,1}
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[100], EvenQ[Total[prix[#]]]&&Or@@OddQ/@prix[#]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 16 2023
STATUS
approved