OFFSET
4,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 prime indices of 18 are (1,2,2), with first sums (3,4), so row 18 is (3,4).
Triangle begins (showing empty rows):
2:
3:
4: 2
5:
6: 3
7:
8: 2 2
9: 4
10: 4
11:
12: 2 3
13:
14: 5
15: 5
16: 2 2 2
17:
18: 3 4
19:
20: 2 4
21: 6
22: 6
23:
24: 2 2 3
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
firsums[c_]:=Table[c[[i]]+c[[i+1]], {i, Length[c]-1}];
Table[firsums[prix[n]], {n, 2, 100}]
CROSSREFS
Positions of strict rows are A004709.
Positions of constant rows are A354144.
For first differences instead of first sums we have A355536.
Reversing rows gives A390362.
For binary indices instead of prime indices we have A390431.
For standard compositions we have A390432.
A342527 counts compositions with all equal first sums.
A390567 counts compositions with all distinct first sums.
KEYWORD
nonn,tabf
AUTHOR
Gus Wiseman, Nov 10 2025
STATUS
approved
