|
|
A333769
|
|
Irregular triangle read by rows where row k is the sequence of run-lengths of the k-th composition in standard order.
|
|
16
|
|
|
1, 1, 2, 1, 1, 1, 1, 1, 3, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 4, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 2, 1, 1, 3, 1, 5, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 2, 2, 1, 1, 1, 1, 1, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
A composition of n is a finite sequence of positive integers summing to n. 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.
|
|
LINKS
|
|
|
EXAMPLE
|
The standard compositions and their run-lengths:
0: () -> ()
1: (1) -> (1)
2: (2) -> (1)
3: (1,1) -> (2)
4: (3) -> (1)
5: (2,1) -> (1,1)
6: (1,2) -> (1,1)
7: (1,1,1) -> (3)
8: (4) -> (1)
9: (3,1) -> (1,1)
10: (2,2) -> (2)
11: (2,1,1) -> (1,2)
12: (1,3) -> (1,1)
13: (1,2,1) -> (1,1,1)
14: (1,1,2) -> (2,1)
15: (1,1,1,1) -> (4)
16: (5) -> (1)
17: (4,1) -> (1,1)
18: (3,2) -> (1,1)
19: (3,1,1) -> (1,2)
For example, the 119th composition is (1,1,2,1,1,1), so row 119 is (2,1,3).
|
|
MATHEMATICA
|
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n, 2]], 1], 0]]//Reverse;
Table[Length/@Split[stc[n]], {n, 0, 30}]
|
|
CROSSREFS
|
Row k is the A333627(k)-th standard composition.
A triangle counting compositions by runs-resistance is A329744.
All of the following pertain to compositions in standard order (A066099):
- Partial sums from the right are A048793.
- Adjacent equal pairs are counted by A124762.
- Partial sums from the left are A272020.
- Constant compositions are A272919.
- First appearances of run-resistances are A333629.
- Combinatory separations are A334030.
Cf. A029931, A098504, A114994, A181819, A182850, A225620, A228351, A238279, A242882, A318928, A329747, A333489, A333630.
|
|
KEYWORD
|
nonn,tabf
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|