A353932 Irregular triangle read by rows where row k lists the run-sums of the k-th composition in standard order.
1, 2, 2, 3, 2, 1, 1, 2, 3, 4, 3, 1, 4, 2, 2, 1, 3, 1, 2, 1, 2, 2, 4, 5, 4, 1, 3, 2, 3, 2, 2, 3, 4, 1, 2, 1, 2, 2, 3, 1, 4, 1, 3, 1, 1, 4, 1, 2, 2, 2, 3, 2, 2, 1, 3, 2, 5, 6, 5, 1, 4, 2, 4, 2, 6, 3, 2, 1, 3, 1, 2, 3, 3, 2, 4, 2, 3, 1, 6, 4, 2, 2, 1, 3
Offset: 1
Examples
Triangle begins: 1 2 2 3 2 1 1 2 3 4 3 1 4 2 2 1 3 1 2 1 For example, composition 350 in standard order is (2,2,1,1,1,2), so row 350 is (4,3,2).
Crossrefs
Programs
-
Mathematica
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse; Table[Total/@Split[stc[n]],{n,0,30}]
Comments