OFFSET
1,1
COMMENTS
The first sums of a nonempty sequence (a, b, c, d, ...) are (a+b, b+c, c+d, ...).
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 first sums of (1,1,1,2) are (2,2,3), which is the prime indices of 45, so 45 is not in the sequence.
The first sums of (3,3,3) are (6,6), which is the prime indices of 169, so 169 is not in the sequence.The terms together with their prime indices begin:
25: {3,3}
75: {2,3,3}
121: {5,5}
125: {3,3,3}
147: {2,4,4}
175: {3,3,4}
225: {2,2,3,3}
231: {2,4,5}
275: {3,3,5}
289: {7,7}
325: {3,3,6}
363: {2,5,5}
375: {2,3,3,3}
425: {3,3,7}
429: {2,5,6}
441: {2,2,4,4}
475: {3,3,8}
507: {2,6,6}
525: {2,3,3,4}
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
uncha[tar_, ini_]:=(cur={ini}; Do[AppendTo[cur, tar[[k]]-If[k==1, ini, cur[[k]]]], {k, 1, Length[tar]}]; cur);
Select[Range[1, 1000, 2], With[{m=prix[#]}, Select[Table[uncha[m, i], {i, 1, Max[m]}], LessEqual@@#&]=={}]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 19 2025
STATUS
approved
