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.
The (one-based) weighted sum of a sequence (y_1,...,y_k) is Sum_{i=1..k} i*y_i. For example, the weighted sum of (4,2,2,1) is 1*4 + 2*2 + 3*2 + 4*1 = 18.
EXAMPLE
The terms together with their prime indices begin:
1: {}
32: {1,1,1,1,1}
40: {1,1,1,3}
60: {1,1,2,3}
100: {1,1,3,3}
126: {1,2,2,4}
210: {1,2,3,4}
243: {2,2,2,2,2}
294: {1,2,4,4}
351: {2,2,2,6}
550: {1,3,3,5}
585: {2,2,3,6}
770: {1,3,4,5}
819: {2,2,4,6}
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[1000], 3*Total[prix[#]]==Total[Accumulate[Reverse[prix[#]]]]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jun 12 2023
STATUS
approved