OFFSET
1,2
COMMENTS
First differs from A353744 in lacking 37, corresponding to the composition (3,2,1).
The k-th composition in standard order (graded reverse-lexicographic, A066099) is obtained by taking the set of positions of 1's in the reversed binary expansion of k, prepending 0, taking first differences, and reversing again. This gives a bijective correspondence between nonnegative integers and integer compositions.
The first sums of a nonempty sequence (a, b, c, d, ...) are (a+b, b+c, c+d, ...).
LINKS
EXAMPLE
The terms together with standard compositions begin:
1: (1)
2: (2)
3: (1,1)
4: (3)
5: (2,1)
6: (1,2)
7: (1,1,1)
8: (4)
9: (3,1)
10: (2,2)
12: (1,3)
13: (1,2,1)
15: (1,1,1,1)
MATHEMATICA
stc[n_]:=Differences[Prepend[Join @@ Position[Reverse[IntegerDigits[n, 2]], 1], 0]]//Reverse;
firsums[c_]:=Table[c[[i]]+c[[i+1]], {i, Length[c]-1}];
Select[Range[100], SameQ@@firsums[stc[#]]&]
CROSSREFS
These compositions are counted by A342527.
These are the positions of constant rows in A390432.
A011782 counts compositions.
A066099 lists all compositions in standard order.
A351014 counts distinct runs in standard compositions.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 17 2025
STATUS
approved
