OFFSET
1,4
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 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 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), with Heinz number 35, so a(18) = 35.
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[Times@@Prime/@firsums[prix[n]], {n, 100}]
CROSSREFS
Positions of squarefree numbers are A004709.
For first differences plus 1 instead of first sums we have A325352.
Positions of prime powers are A354144.
The union is A390448.
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
