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:
6: {1,2}
21: {2,4}
30: {1,2,3}
36: {1,1,2,2}
42: {1,2,4}
60: {1,1,2,3}
66: {1,2,5}
70: {1,3,4}
78: {1,2,6}
84: {1,1,2,4}
90: {1,2,2,3}
102: {1,2,7}
105: {2,3,4}
110: {1,3,5}
114: {1,2,8}
120: {1,1,1,2,3}
MATHEMATICA
disjointFamilies[y_]:=Select[Tuples[IntegerPartitions/@Length/@Split[y]], UnsameQ@@Join@@#&];
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
conj[y_]:=If[Length[y]==0, y, Table[Length[Select[y, #>=k&]], {k, 1, Max[y]}]];
Select[Range[100], disjointFamilies[prix[#]]=={}&&disjointFamilies[conj[prix[#]]]=={}&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 18 2025
STATUS
approved
