OFFSET
0,3
COMMENTS
The first sums of a nonempty sequence (a, b, c, d, ...) are (a+b, b+c, c+d, ...).
EXAMPLE
The composition (2,2,1,1) has first sums (4,3,2) so is counted under a(6).
The a(1) = 1 through a(6) = 16 compositions:
(1) (2) (3) (4) (5) (6)
(1,1) (1,2) (1,3) (1,4) (1,5)
(2,1) (2,2) (2,3) (2,4)
(3,1) (3,2) (3,3)
(1,1,2) (4,1) (4,2)
(2,1,1) (1,1,3) (5,1)
(1,2,2) (1,1,4)
(2,2,1) (1,2,3)
(3,1,1) (1,3,2)
(2,1,3)
(2,3,1)
(3,1,2)
(3,2,1)
(4,1,1)
(1,1,2,2)
(2,2,1,1)
MATHEMATICA
firsums[c_]:=Table[c[[i]]+c[[i+1]], {i, Length[c]-1}];
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], UnsameQ@@firsums[#]&]], {n, 0, 15}]
CROSSREFS
For multiplicities instead of first sums we have A242882.
For equal instead of distinct first sums we have A342527.
These compositions are ranked by A390673.
A011782 counts compositions.
A390432 lists first sums of standard compositions.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 15 2025
EXTENSIONS
a(26)-a(40) from Christian Sievers, Jan 15 2026
STATUS
approved
