OFFSET
3,1
COMMENTS
The first 3 rows are empty, so offset is 3.
The first sums of a nonempty sequence (a, b, c, d, ...) are (a+b, b+c, c+d, ...).
A binary index of n is any position of a 1 in its reversed binary expansion. The binary indices of n are row n of A048793.
EXAMPLE
The binary indices of 300 are (3,4,6,9), with first sums (7,10,15), which is row 300.
Triangle begins:
0:
1:
2:
3: 3
4:
5: 4
6: 5
7: 3 5
8:
9: 5
10: 6
11: 3 6
12: 7
13: 4 7
14: 5 7
15: 3 5 7
MATHEMATICA
bpe[n_]:=Join@@Position[Reverse[IntegerDigits[n, 2]], 1];
firsums[c_]:=Table[c[[i]]+c[[i+1]], {i, Length[c]-1}];
Table[firsums[bpe[n]], {n, 0, 100}]
CROSSREFS
First sums of A048793 (binary indices).
Row lengths are A048881.
Empty rows are indicated by A094373.
For first differences instead of first sums we have A390090.
For standard compositions instead of binary indices we have A390432.
Row sums are A390992.
A011782 counts compositions.
A342527 counts compositions with all equal first sums.
A390567 counts compositions with distinct first sums.
KEYWORD
nonn,tabf
AUTHOR
Gus Wiseman, Nov 25 2025
STATUS
approved
