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}
65: {3,6}
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
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], !UnsameQ@@Length/@Split[prix[#]] && !UnsameQ@@Length/@Split[conj[prix[#]]]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 15 2025
STATUS
approved
