OFFSET
1,2
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:
1: {}
2: {1}
3: {2}
6: {1,2}
5: {3}
10: {1,3}
7: {4}
30: {1,2,3}
21: {2,4}
14: {1,4}
11: {5}
42: {1,2,4}
13: {6}
22: {1,5}
33: {2,5}
210: {1,2,3,4}
17: {7}
110: {1,3,5}
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Table[Times@@Prime/@Accumulate[primeMS[n]], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 31 2022
STATUS
approved
