0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 1, 1, 0, 0, 1, 3, 0, 0, 0, 1, 0, 1, 0, 2, 0, 0, 1, 1, 1, 1, 2, 4, 0, 0, 0, 1, 1, 0, 0, 2, 0, 0, 2, 2, 0, 0, 1, 3, 0, 0, 0, 1, 0, 1, 0, 2, 1, 1, 2, 2, 2, 2, 3, 5, 0, 0, 0, 1, 0, 0, 0, 2, 0, 1, 1, 1, 0, 0, 1, 3, 0, 0, 0, 1, 1, 2, 1, 3, 0, 0, 1, 1, 1, 1, 2, 4, 0, 0, 0, 1, 1, 0, 0, 2, 0
Offset: 0
A124766
Number of monotonically increasing runs for compositions in standard order.
Original entry on oeis.org
0, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 2, 2, 1, 3, 2, 2, 1, 2, 1, 2, 2, 3, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 2, 2, 2, 3, 2, 2, 1, 2, 2, 3, 2, 3, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 3, 2, 3, 2, 3, 2, 2, 1, 2, 2, 2, 1, 3, 2, 2, 1
Offset: 0
Composition number 11 is 2,1,1; the increasing runs are 2; 1,1; so a(11) = 2.
The table starts:
0
1
1 1
1 2 1 1
1 2 1 2 1 2 1 1
1 2 2 2 1 2 2 2 1 2 1 2 1 2 1 1
1 2 2 2 1 3 2 2 1 2 1 2 2 3 2 2 1 2 2 2 1 2 2 2 1 2 1 2 1 2 1 1
Compositions of n with k strict descents are
A238343.
All of the following pertain to compositions in standard order (
A066099):
- Weakly decreasing compositions are
A114994.
- Adjacent equal pairs are counted by
A124762.
- Weakly decreasing runs are counted by
A124765.
- Weakly increasing runs are counted by
A124766 (this sequence).
- Equal runs are counted by
A124767.
- Strictly increasing runs are counted by
A124768.
- Strictly decreasing runs are counted by
A124769.
- Weakly increasing compositions are
A225620.
- Constant compositions are
A272919.
- Strictly decreasing compositions are
A333255.
- Strictly increasing compositions are
A333256.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Length[Split[stc[n],#1<=#2&]],{n,0,100}] (* Gus Wiseman, Apr 08 2020 *)
A333382
Number of adjacent unequal parts in the n-th composition in standard-order.
Original entry on oeis.org
0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 2, 1, 0, 0, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 0, 0, 1, 1, 1, 0, 2, 2, 1, 1, 2, 0, 1, 2, 3, 2, 1, 1, 2, 2, 2, 2, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 0, 0, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 3, 2, 1, 1, 2, 2, 2, 1, 1, 2
Offset: 0
The 46th composition in standard order is (2,1,1,2), with maximal runs ((2),(1,1),(2)), so a(46) = 3 - 1 = 2.
Indices of first appearances (not counting 0) are
A113835.
Partitions whose 0-appended first differences are a run are
A007862.
Partitions whose first differences are a run are
A049988.
A triangle counting maximal anti-runs of compositions is
A106356.
A triangle counting maximal runs of compositions is
A238279.
All of the following pertain to compositions in standard order (
A066099):
- Adjacent equal pairs are counted by
A124762.
- Weakly decreasing runs are counted by
A124765.
- Weakly increasing runs are counted by
A124766.
- Equal runs are counted by
A124767.
- Strictly increasing runs are counted by
A124768.
- Strictly decreasing runs are counted by
A124769.
- Strict compositions are ranked by
A233564.
- Constant compositions are ranked by
A272919.
- Normal compositions are ranked by
A333217.
- Anti-runs are counted by
A333381.
Cf.
A000005,
A000120,
A003242,
A029931,
A048793,
A059893,
A070939,
A114994,
A225620,
A228351,
A238424.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Length[Select[Partition[stc[n],2,1],UnsameQ@@#&]],{n,0,100}]
A124765
Number of monotonically decreasing runs for compositions in standard order.
Original entry on oeis.org
0, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 3, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 3, 2, 3
Offset: 0
Composition number 11 is 2,1,1; the decreasing runs are 2,1,1; so a(11) = 1.
The table starts:
0
1
1 1
1 1 2 1
1 1 1 1 2 2 2 1
1 1 1 1 2 1 2 1 2 2 2 2 2 2 2 1
1 1 1 1 1 1 2 1 2 2 1 1 2 2 2 1 2 2 2 2 3 2 3 2 2 2 2 2 2 2 2 1
Compositions of n with k strict ascents are
A238343.
All of the following pertain to compositions in standard order (
A066099):
- Weakly decreasing compositions are
A114994.
- Weakly decreasing runs are counted by
A124765.
- Weakly increasing runs are counted by
A124766.
- Equal runs are counted by
A124767.
- Strictly increasing runs are counted by
A124768.
- Strictly decreasing runs are counted by
A124769.
- Weakly increasing compositions are
A225620.
- Constant compositions are
A272919.
- Strictly decreasing compositions are
A333255.
- Strictly increasing compositions are
A333256.
- Anti-runs are counted by
A333381.
- Adjacent unequal pairs are counted by
A333382.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Length[Split[stc[n],GreaterEqual]],{n,0,100}] (* Gus Wiseman, Apr 08 2020 *)
A124769
Number of strictly decreasing runs for compositions in standard order.
Original entry on oeis.org
0, 1, 1, 2, 1, 1, 2, 3, 1, 1, 2, 2, 2, 2, 3, 4, 1, 1, 1, 2, 2, 2, 2, 3, 2, 2, 3, 3, 3, 3, 4, 5, 1, 1, 1, 2, 2, 1, 2, 3, 2, 2, 3, 3, 2, 2, 3, 4, 2, 2, 2, 3, 3, 3, 3, 4, 3, 3, 4, 4, 4, 4, 5, 6, 1, 1, 1, 2, 1, 1, 2, 3, 2, 2, 2, 2, 2, 2, 3, 4, 2, 2, 2, 3, 3, 3, 3, 4, 2, 2, 3, 3, 3, 3, 4, 5, 2, 2, 2, 3, 3, 2, 3, 4, 3
Offset: 0
Composition number 11 is 2,1,1; the strictly increasing runs are 2,1; 1; so a(11) = 2.
The table starts:
0
1
1 2
1 1 2 3
1 1 2 2 2 2 3 4
1 1 1 2 2 2 2 3 2 2 3 3 3 3 4 5
1 1 1 2 2 1 2 3 2 2 3 3 2 2 3 4 2 2 2 3 3 3 3 4 3 3 4 4 4 4 5 6
Compositions of n with k weak ascents are
A333213.
All of the following pertain to compositions in standard order (
A066099):
- Partial sums from the right are
A048793 (triangle).
- Weakly decreasing compositions are
A114994.
- Weakly decreasing runs are counted by
A124765.
- Weakly increasing runs are counted by
A124766.
- Equal runs are counted by
A124767.
- Strictly increasing runs are counted by
A124768.
- Strictly decreasing runs are counted by
A124769 (this sequence).
- Reversed initial intervals
A164894.
- Weakly increasing compositions are
A225620.
- Constant compositions are
A272919.
- Strictly decreasing compositions are
A333255.
- Strictly increasing compositions are
A333256.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Table[Length[Split[stc[n],Greater]],{n,0,100}] (* Gus Wiseman, Apr 08 2020 *)
A333256
Numbers k such that the k-th composition in standard order is strictly decreasing.
Original entry on oeis.org
0, 1, 2, 4, 5, 8, 9, 16, 17, 18, 32, 33, 34, 37, 64, 65, 66, 68, 69, 128, 129, 130, 132, 133, 137, 256, 257, 258, 260, 261, 264, 265, 274, 512, 513, 514, 516, 517, 520, 521, 529, 530, 549, 1024, 1025, 1026, 1028, 1029, 1032, 1033, 1040, 1041, 1042, 1058, 1061
Offset: 1
The sequence of positive terms together with the corresponding compositions begins:
1: (1) 128: (8) 517: (7,2,1)
2: (2) 129: (7,1) 520: (6,4)
4: (3) 130: (6,2) 521: (6,3,1)
5: (2,1) 132: (5,3) 529: (5,4,1)
8: (4) 133: (5,2,1) 530: (5,3,2)
9: (3,1) 137: (4,3,1) 549: (4,3,2,1)
16: (5) 256: (9) 1024: (11)
17: (4,1) 257: (8,1) 1025: (10,1)
18: (3,2) 258: (7,2) 1026: (9,2)
32: (6) 260: (6,3) 1028: (8,3)
33: (5,1) 261: (6,2,1) 1029: (8,2,1)
34: (4,2) 264: (5,4) 1032: (7,4)
37: (3,2,1) 265: (5,3,1) 1033: (7,3,1)
64: (7) 274: (4,3,2) 1040: (6,5)
65: (6,1) 512: (10) 1041: (6,4,1)
66: (5,2) 513: (9,1) 1042: (6,3,2)
68: (4,3) 514: (8,2) 1058: (5,4,2)
69: (4,2,1) 516: (7,3) 1061: (5,3,2,1)
Strictly increasing runs are counted by
A124768.
The weakly decreasing version is
A114994.
The weakly increasing version is
A225620.
The strictly increasing version is
A333255.
Cf.
A000120,
A029931,
A048793,
A066099,
A070939,
A124769,
A228351,
A233249,
A333217,
A333256,
A333380.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Select[Range[0,1000],Greater@@stc[#]&]
A333255
Numbers k such that the k-th composition in standard order is strictly increasing.
Original entry on oeis.org
0, 1, 2, 4, 6, 8, 12, 16, 20, 24, 32, 40, 48, 52, 64, 72, 80, 96, 104, 128, 144, 160, 192, 200, 208, 256, 272, 288, 320, 328, 384, 400, 416, 512, 544, 576, 640, 656, 768, 784, 800, 832, 840, 1024, 1056, 1088, 1152, 1280, 1296, 1312, 1536, 1568, 1600, 1664, 1680
Offset: 1
The sequence of positive terms together with the corresponding compositions begins:
1: (1) 128: (8) 656: (2,3,5)
2: (2) 144: (3,5) 768: (1,9)
4: (3) 160: (2,6) 784: (1,4,5)
6: (1,2) 192: (1,7) 800: (1,3,6)
8: (4) 200: (1,3,4) 832: (1,2,7)
12: (1,3) 208: (1,2,5) 840: (1,2,3,4)
16: (5) 256: (9) 1024: (11)
20: (2,3) 272: (4,5) 1056: (5,6)
24: (1,4) 288: (3,6) 1088: (4,7)
32: (6) 320: (2,7) 1152: (3,8)
40: (2,4) 328: (2,3,4) 1280: (2,9)
48: (1,5) 384: (1,8) 1296: (2,4,5)
52: (1,2,3) 400: (1,3,5) 1312: (2,3,6)
64: (7) 416: (1,2,6) 1536: (1,10)
72: (3,4) 512: (10) 1568: (1,4,6)
80: (2,5) 544: (4,6) 1600: (1,3,7)
96: (1,6) 576: (3,7) 1664: (1,2,8)
104: (1,2,4) 640: (2,8) 1680: (1,2,3,5)
Strictly increasing runs are counted by
A124768.
The weakly decreasing version is
A114994.
The weakly increasing version is
A225620.
The strictly decreasing version is
A333256.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Select[Range[0,1000],Less@@stc[#]&]
Comments