A353432
Numbers k such that the k-th composition in standard order has its own run-lengths as a consecutive subsequence.
Original entry on oeis.org
0, 1, 10, 21, 26, 43, 58, 107, 117, 174, 186, 292, 314, 346, 348, 349, 373, 430, 442, 570, 585, 586, 629, 676, 696, 697, 804, 826, 860, 861, 885, 1082, 1141, 1173, 1210, 1338, 1387, 1392, 1393, 1394, 1396, 1594, 1653, 1700, 1720, 1721, 1882, 2106, 2165, 2186
Offset: 1
The initial terms, their binary expansions, and the corresponding standard compositions:
0: 0 ()
1: 1 (1)
10: 1010 (2,2)
21: 10101 (2,2,1)
26: 11010 (1,2,2)
43: 101011 (2,2,1,1)
58: 111010 (1,1,2,2)
107: 1101011 (1,2,2,1,1)
117: 1110101 (1,1,2,2,1)
174: 10101110 (2,2,1,1,2)
186: 10111010 (2,1,1,2,2)
292: 100100100 (3,3,3)
314: 100111010 (3,1,1,2,2)
346: 101011010 (2,2,1,2,2)
348: 101011100 (2,2,1,1,3)
349: 101011101 (2,2,1,1,2,1)
373: 101110101 (2,1,1,2,2,1)
430: 110101110 (1,2,2,1,1,2)
442: 110111010 (1,2,1,1,2,2)
These compositions are counted by
A353392.
A005811 counts runs in binary expansion.
Statistics of standard compositions:
Classes of standard compositions:
Cf.
A044813,
A165413,
A181819,
A318928,
A325702,
A325705,
A325755,
A333224,
A333755,
A353389,
A353393,
A353403.
-
stc[n_]:=Differences[Prepend[Join@@ Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
rorQ[y_]:=Length[y]==0||MemberQ[Join@@Table[Take[y,{i,j}],{i,Length[y]},{j,i,Length[y]}],Length/@Split[y]];
Select[Range[0,10000],rorQ[stc[#]]&]
A335469
Numbers k such that the k-th composition in standard order (A066099) avoids the pattern (2,1,2).
Original entry on oeis.org
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 47, 48, 49, 50, 51, 52, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71
Offset: 1
See A335468 for an example of the complement.
The complement
A335468 is the matching version.
The (1,2,1)-avoiding version is
A335467.
These compositions are counted by
A335473.
Non-unimodal compositions are counted by
A115981 and ranked by
A335373.
Patterns matched by standard compositions are counted by
A335454.
Minimal patterns avoided by a standard composition are counted by
A335465.
Cf.
A001710,
A034691,
A056986,
A108917,
A114994,
A238279,
A333224,
A333257,
A335450,
A335456,
A335458.
-
stc[n_]:=Reverse[Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]];
Select[Range[0,100],!MatchQ[stc[#],{_,x_,_,y_,_,x_,_}/;x>y]&]
A335483
Numbers k such that the k-th composition in standard order (A066099) matches the pattern (3,1,2).
Original entry on oeis.org
38, 70, 77, 78, 102, 134, 140, 141, 142, 150, 154, 155, 157, 158, 166, 198, 205, 206, 230, 262, 268, 269, 270, 276, 278, 281, 282, 283, 284, 285, 286, 294, 301, 302, 306, 308, 309, 310, 311, 314, 315, 317, 318, 326, 333, 334, 358, 390, 396, 397, 398, 406, 410
Offset: 1
The sequence of terms together with the corresponding compositions begins:
38: (3,1,2)
70: (4,1,2)
77: (3,1,2,1)
78: (3,1,1,2)
102: (1,3,1,2)
134: (5,1,2)
140: (4,1,3)
141: (4,1,2,1)
142: (4,1,1,2)
150: (3,2,1,2)
154: (3,1,2,2)
155: (3,1,2,1,1)
157: (3,1,1,2,1)
158: (3,1,1,1,2)
166: (2,3,1,2)
The version counting permutations is
A056986.
Patterns matching this pattern are counted by
A335515 (by length).
Permutations of prime indices matching this pattern are counted by
A335520.
These compositions are counted by
A335514 (by sum).
Non-unimodal compositions are counted by
A115981 and ranked by
A335373.
Permutations matching (1,3,2,4) are counted by
A158009.
Combinatory separations are counted by
A269134.
Patterns matched by standard compositions are counted by
A335454.
Minimal patterns avoided by a standard composition are counted by
A335465.
Other permutations:
Cf.
A034691,
A056986,
A108917,
A114994,
A158005,
A238279,
A333224,
A333257,
A334968,
A335456,
A335458.
-
stc[n_]:=Reverse[Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]];
Select[Range[0,100],MatchQ[stc[#],{_,x_,_,y_,_,z_,_}/;y
A334967
Numbers k such that the every subsequence (not necessarily contiguous) of the k-th composition in standard order (A066099) has a different sum.
Original entry on oeis.org
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 16, 17, 18, 19, 20, 21, 24, 26, 28, 31, 32, 33, 34, 35, 36, 40, 42, 48, 56, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 80, 81, 84, 85, 88, 96, 98, 100, 104, 106, 112, 120, 127, 128, 129, 130, 131, 132, 133, 134
Offset: 1
The sequence together with the corresponding compositions begins:
0: () 18: (3,2) 48: (1,5)
1: (1) 19: (3,1,1) 56: (1,1,4)
2: (2) 20: (2,3) 63: (1,1,1,1,1,1)
3: (1,1) 21: (2,2,1) 64: (7)
4: (3) 24: (1,4) 65: (6,1)
5: (2,1) 26: (1,2,2) 66: (5,2)
6: (1,2) 28: (1,1,3) 67: (5,1,1)
7: (1,1,1) 31: (1,1,1,1,1) 68: (4,3)
8: (4) 32: (6) 69: (4,2,1)
9: (3,1) 33: (5,1) 70: (4,1,2)
10: (2,2) 34: (4,2) 71: (4,1,1,1)
12: (1,3) 35: (4,1,1) 72: (3,4)
15: (1,1,1,1) 36: (3,3) 73: (3,3,1)
16: (5) 40: (2,4) 74: (3,2,2)
17: (4,1) 42: (2,2,2) 80: (2,5)
These compositions are counted by
A334268.
Positive subset-sums of partitions are counted by
A276024 and
A299701.
Contiguous subsequence-sums are counted by
A333224 and ranked by
A333257.
Number of (not necessarily contiguous) subsequences is
A334299.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Select[Range[0,100],UnsameQ@@Total/@Union[Subsets[stc[#]]]&]
A335468
Numbers k such that the k-th composition in standard order (A066099) matches the pattern (2,1,2).
Original entry on oeis.org
22, 45, 46, 54, 76, 86, 90, 91, 93, 94, 109, 110, 118, 148, 150, 153, 156, 166, 173, 174, 178, 180, 181, 182, 183, 186, 187, 189, 190, 204, 214, 218, 219, 221, 222, 237, 238, 246, 278, 280, 297, 300, 301, 302, 306, 307, 308, 310, 313, 316, 326, 332, 333, 334
Offset: 1
The sequence together with the corresponding compositions begins:
22: (2,1,2)
45: (2,1,2,1)
46: (2,1,1,2)
54: (1,2,1,2)
76: (3,1,3)
86: (2,2,1,2)
90: (2,1,2,2)
91: (2,1,2,1,1)
93: (2,1,1,2,1)
94: (2,1,1,1,2)
109: (1,2,1,2,1)
110: (1,2,1,1,2)
118: (1,1,2,1,2)
148: (3,2,3)
150: (3,2,1,2)
The complement
A335469 is the avoiding version.
The (1,2,1)-matching version is
A335466.
These compositions are counted by
A335472.
Non-unimodal compositions are counted by
A115981 and ranked by
A335373.
Patterns matched by standard compositions are counted by
A335454.
Minimal patterns avoided by a standard composition are counted by
A335465.
Cf.
A034691,
A056986,
A108917,
A114994,
A238279,
A333224,
A333257,
A335453,
A335456,
A335458,
A335509.
-
stc[n_]:=Reverse[Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]];
Select[Range[0,100],MatchQ[stc[#],{_,x_,_,y_,_,x_,_}/;x>y]&];
A335481
Numbers k such that the k-th composition in standard order (A066099) matches the pattern (2,1,3).
Original entry on oeis.org
44, 88, 89, 92, 108, 152, 172, 176, 177, 178, 179, 180, 184, 185, 188, 216, 217, 220, 236, 296, 300, 304, 305, 312, 332, 344, 345, 348, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 364, 368, 369, 370, 371, 372, 376, 377, 380, 408, 428, 432, 433, 434, 435
Offset: 1
The sequence of terms together with the corresponding compositions begins:
44: (2,1,3)
88: (2,1,4)
89: (2,1,3,1)
92: (2,1,1,3)
108: (1,2,1,3)
152: (3,1,4)
172: (2,2,1,3)
176: (2,1,5)
177: (2,1,4,1)
178: (2,1,3,2)
179: (2,1,3,1,1)
180: (2,1,2,3)
184: (2,1,1,4)
185: (2,1,1,3,1)
188: (2,1,1,1,3)
The version counting permutations is
A056986.
Patterns matching this pattern are counted by
A335515 (by length).
Permutations of prime indices matching this pattern are counted by
A335520.
These compositions are counted by
A335514 (by sum).
Non-unimodal compositions are counted by
A115981 and ranked by
A335373.
Permutations matching (1,3,2,4) are counted by
A158009.
Combinatory separations are counted by
A269134.
Patterns matched by standard compositions are counted by
A335454.
Minimal patterns avoided by a standard composition are counted by
A335465.
Other permutations:
Cf.
A034691,
A056986,
A108917,
A114994,
A158005,
A238279,
A333224,
A333257,
A334968,
A335456,
A335458.
-
stc[n_]:=Reverse[Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]];
Select[Range[0,100],MatchQ[stc[#],{_,x_,_,y_,_,z_,_}/;y
A335484
Numbers k such that the k-th composition in standard order (A066099) matches the pattern (3,2,1).
Original entry on oeis.org
37, 69, 75, 77, 101, 133, 137, 139, 141, 149, 150, 151, 155, 157, 165, 197, 203, 205, 229, 261, 265, 267, 269, 274, 275, 277, 278, 279, 281, 283, 285, 293, 297, 299, 300, 301, 302, 303, 309, 310, 311, 315, 317, 325, 331, 333, 357, 389, 393, 395, 397, 405, 406
Offset: 1
The sequence of terms together with the corresponding compositions begins:
37: (3,2,1)
69: (4,2,1)
75: (3,2,1,1)
77: (3,1,2,1)
101: (1,3,2,1)
133: (5,2,1)
137: (4,3,1)
139: (4,2,1,1)
141: (4,1,2,1)
149: (3,2,2,1)
150: (3,2,1,2)
151: (3,2,1,1,1)
155: (3,1,2,1,1)
157: (3,1,1,2,1)
165: (2,3,2,1)
The version counting permutations is
A056986.
Patterns matching this pattern are counted by
A335515 (by length).
Permutations of prime indices matching this pattern are counted by
A335520.
These compositions are counted by
A335514 (by sum).
Non-unimodal compositions are counted by
A115981 and ranked by
A335373.
Permutations matching (1,3,2,4) are counted by
A158009.
Combinatory separations are counted by
A269134.
Patterns matched by standard compositions are counted by
A335454.
Minimal patterns avoided by a standard composition are counted by
A335465.
Other permutations:
Cf.
A034691,
A056986,
A108917,
A114994,
A158005,
A238279,
A333224,
A333257,
A334968,
A335456,
A335458.
-
stc[n_]:=Reverse[Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]];
Select[Range[0,100],MatchQ[stc[#],{_,x_,_,y_,_,z_,_}/;z
A335524
Numbers k such that the k-th composition in standard order (A066099) avoids the pattern (2,2,1).
Original entry on oeis.org
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 46, 47, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71
Offset: 1
Patterns avoiding this pattern are counted by
A001710 (by length).
Permutations of prime indices avoiding this pattern are counted by
A335450.
These compositions are counted by
A335473 (by sum).
The complement
A335477 is the matching version.
The (1,2,2)-avoiding version is
A335525.
Non-unimodal compositions are counted by
A115981 and ranked by
A335373.
Combinatory separations are counted by
A269134.
Patterns matched by standard compositions are counted by
A335454.
Minimal patterns avoided by a standard composition are counted by
A335465.
Cf.
A034691,
A056986,
A108917,
A114994,
A238279,
A333224,
A333257,
A334968,
A335446,
A335456,
A335458.
-
stc[n_]:=Reverse[Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]];
Select[Range[0,100],!MatchQ[stc[#],{_,x_,_,x_,_,y_,_}/;x>y]&]
A335525
Numbers k such that the k-th composition in standard order (A066099) avoids the pattern (1,2,2).
Original entry on oeis.org
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 55, 56, 57, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71
Offset: 1
Patterns avoiding this pattern are counted by
A001710 (by length).
Permutations of prime indices avoiding this pattern are counted by
A335450.
These compositions are counted by
A335473 (by sum).
The complement
A335475 is the matching version.
The (2,2,1)-avoiding version is
A335524.
Non-unimodal compositions are counted by
A115981 and ranked by
A335373.
Combinatory separations are counted by
A269134.
Patterns matched by standard compositions are counted by
A335454.
Minimal patterns avoided by a standard composition are counted by
A335465.
Cf.
A034691,
A056986,
A108917,
A114994,
A238279,
A333224,
A333257,
A334968,
A335446,
A335456,
A335458.
-
stc[n_]:=Reverse[Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]];
Select[Range[0,100],!MatchQ[stc[#],{_,x_,_,y_,_,y_,_}/;x
A335488
Numbers k such that the k-th composition in standard order (A066099) matches the pattern (1,1).
Original entry on oeis.org
3, 7, 10, 11, 13, 14, 15, 19, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 35, 36, 39, 42, 43, 45, 46, 47, 49, 51, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 67, 71, 73, 74, 75, 76, 77, 78, 79, 82, 83, 84, 85, 86, 87, 89, 90, 91, 92, 93, 94, 95, 97, 99, 100, 101
Offset: 1
The sequence of terms together with the corresponding compositions begins:
3: (1,1)
7: (1,1,1)
10: (2,2)
11: (2,1,1)
13: (1,2,1)
14: (1,1,2)
15: (1,1,1,1)
19: (3,1,1)
21: (2,2,1)
22: (2,1,2)
23: (2,1,1,1)
25: (1,3,1)
26: (1,2,2)
27: (1,2,1,1)
28: (1,1,3)
The complement
A233564 is the avoiding version.
Patterns matching this pattern are counted by
A019472 (by length).
Permutations of prime indices matching this pattern are counted by
A335487.
These compositions are counted by
A261982 (by sum).
Non-unimodal compositions are counted by
A115981 and ranked by
A335373.
Combinatory separations are counted by
A269134.
Patterns matched by standard compositions are counted by
A335454.
Minimal patterns avoided by a standard composition are counted by
A335465.
The (1,1,1)-matching case is
A335512.
-
stc[n_]:=Reverse[Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]];
Select[Range[0,100],MatchQ[stc[#],{_,x_,_,x_,_}]&]
Comments