OFFSET
1,4
COMMENTS
The first sums of a nonempty sequence (a, b, c, d, ...) are (a+b, b+c, c+d, ...).
LINKS
Christian Sievers, Table of n, a(n) for n = 1..1000
FORMULA
G.f.: (x^2+x^3-x^4-x^5)/(1-3*x^2-x^3+2*x^4+2*x^5). - Christian Sievers, Jan 11 2026
EXAMPLE
The composition (2,4,3) is not the first sums of any composition, so (2,4,3) is not counted under a(9).
The composition (3,4,3) is the first sums of (1,2,2,1), so (3,4,3) is counted under a(10).
The a(2) = 1 through a(9) = 16 compositions:
(2) (3) (4) (5) (6) (7) (8) (9)
(2,2) (2,3) (2,4) (2,5) (2,6) (2,7)
(3,2) (3,3) (3,4) (3,5) (3,6)
(4,2) (4,3) (4,4) (4,5)
(2,2,2) (5,2) (5,3) (5,4)
(2,2,3) (6,2) (6,3)
(3,2,2) (2,2,4) (7,2)
(2,3,3) (2,2,5)
(3,2,3) (2,3,4)
(3,3,2) (3,2,4)
(4,2,2) (3,3,3)
(2,2,2,2) (4,2,3)
(4,3,2)
(5,2,2)
(2,2,2,3)
(3,2,2,2)
MATHEMATICA
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], Length[Select[Table[pas[#, b], {b, 0, Max[#]}], Min@@#>0&]]>=1&]], {n, 1, 10}]
PROG
(PARI) a(n)=polcoef((x^2+x^3-x^4-x^5)/(1-3*x^2-x^3+2*x^4+2*x^5)+O(x*x^n), n) \\ Christian Sievers, Jan 11 2026
CROSSREFS
This is the union of A390568.
Ranks indicate positive terms in the pre-bisected A390675.
These compositions have ranks A390676.
Ranks for nonnegative sequences are:
A011782 counts compositions.
A066099 lists all compositions in standard order.
A357213 counts compositions by sum of first sums.
A390432 lists first sums of standard compositions.
KEYWORD
nonn,easy
AUTHOR
Gus Wiseman, Jan 08 2026
EXTENSIONS
a(21)-a(44) from Christian Sievers, Jan 10 2026
STATUS
approved
