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 begin:
3: {2}
7: {4}
9: {2,2}
12: {1,1,2}
13: {6}
19: {8}
21: {2,4}
27: {2,2,2}
28: {1,1,4}
29: {10}
30: {1,2,3}
36: {1,1,2,2}
37: {12}
39: {2,6}
43: {14}
48: {1,1,1,1,2}
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[100], EvenQ[Total[prix[#]]]&&Or@@EvenQ/@prix[#]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 16 2023
STATUS
approved
