OFFSET
1,1
COMMENTS
A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798.
The first sums of a nonempty sequence (a, b, c, d, ...) are (a+b, b+c, c+d, ...).
EXAMPLE
The first sums of (1,1,1,2) are (2,2,3), which is the prime indices of 45, so 45 is in the sequence.
The first sums of (3,3,3) are (6,6), which is the prime indices of 169, so 169 is in the sequence.
The terms together with their prime indices begin:
3: {2}
5: {3}
7: {4}
9: {2,2}
11: {5}
13: {6}
15: {2,3}
17: {7}
19: {8}
21: {2,4}
23: {9}
27: {2,2,2}
29: {10}
31: {11}
33: {2,5}
35: {3,4}
37: {12}
39: {2,6}
41: {13}
43: {14}
45: {2,2,3}
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);
gre[n_]:=n==1||With[{m=prix[n]}, Select[Table[uncha[m, i], {i, 1, Max[m]}], LessEqual@@#&]!={}];
Select[Range[2, 100], gre]
CROSSREFS
These are numbers whose prime indices are a row of A390307.
Positions of positive terms in A390444 with alternating zeros.
Partitions of this type are counted by A390446.
Union of A390449.
A342527 counts compositions with all equal first sums.
A390567 counts compositions with all distinct first sums.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 11 2025
STATUS
approved
