A188900
Number of compositions of n that avoid the pattern 12-3.
Original entry on oeis.org
1, 1, 2, 4, 8, 16, 31, 60, 114, 215, 402, 746, 1375, 2520, 4593, 8329, 15036, 27027, 48389, 86314, 153432, 271853, 480207, 845804, 1485703, 2603018, 4549521, 7933239, 13803293, 23966682, 41530721, 71830198, 124010381, 213725823, 367736268, 631723139, 1083568861
Offset: 0
The initial terms are too dense, but see A375406 for the complement. - _Gus Wiseman_, Aug 21 2024
The non-ranks are a subset of
A335479 and do not include 404, 788, 809, ...
The complement is counted by
A375406.
A335456 counts patterns matched by compositions.
Cf.
A106356,
A188920,
A238343,
A261982,
A333175,
A333213,
A374630,
A374679,
A374688,
A374740,
A374741.
-
with(PolynomialTools):n:=20:taypoly:=taylor(mul(1/(1 - x^i/mul(1-x^j,j=1..i-1)),i=1..n),x=0,n+1):seq(coeff(taypoly,x,m),m=0..n);
-
m = 35;
Product[1/(1 - x^i/Product[1 - x^j, {j, 1, i - 1}]), {i, 1, m}] + O[x]^m // CoefficientList[#, x]& (* Jean-François Alcover, Mar 31 2020 *)
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], LessEqual@@First/@Split[#,GreaterEqual]&]],{n,0,15}] (* Gus Wiseman, Aug 21 2024 *)
A335479
Numbers k such that the k-th composition in standard order (A066099) matches the pattern (1,2,3).
Original entry on oeis.org
52, 104, 105, 108, 116, 180, 200, 208, 209, 210, 211, 212, 216, 217, 220, 232, 233, 236, 244, 308, 328, 360, 361, 364, 372, 400, 401, 404, 408, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 428, 432, 433, 434, 435, 436, 440, 441, 444, 456, 464, 465, 466
Offset: 1
The sequence of terms together with the corresponding compositions begins:
52: (1,2,3)
104: (1,2,4)
105: (1,2,3,1)
108: (1,2,1,3)
116: (1,1,2,3)
180: (2,1,2,3)
200: (1,3,4)
208: (1,2,5)
209: (1,2,4,1)
210: (1,2,3,2)
211: (1,2,3,1,1)
212: (1,2,2,3)
216: (1,2,1,4)
217: (1,2,1,3,1)
220: (1,2,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.
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_,_}/;x
A335480
Numbers k such that the k-th composition in standard order (A066099) matches the pattern (1,3,2).
Original entry on oeis.org
50, 98, 101, 102, 114, 178, 194, 196, 197, 198, 202, 203, 205, 206, 210, 226, 229, 230, 242, 306, 324, 354, 357, 358, 370, 386, 388, 389, 390, 393, 394, 395, 396, 397, 398, 402, 404, 405, 406, 407, 410, 411, 413, 414, 418, 421, 422, 434, 450, 452, 453, 454
Offset: 1
The sequence of terms together with the corresponding compositions begins:
50: (1,3,2)
98: (1,4,2)
101: (1,3,2,1)
102: (1,3,1,2)
114: (1,1,3,2)
178: (2,1,3,2)
194: (1,5,2)
196: (1,4,3)
197: (1,4,2,1)
198: (1,4,1,2)
202: (1,3,2,2)
203: (1,3,2,1,1)
205: (1,3,1,2,1)
206: (1,3,1,1,2)
210: (1,2,3,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_,_}/;x
A335482
Numbers k such that the k-th composition in standard order (A066099) matches the pattern (2,3,1).
Original entry on oeis.org
41, 81, 83, 89, 105, 145, 161, 163, 165, 166, 167, 169, 177, 179, 185, 209, 211, 217, 233, 289, 290, 291, 297, 305, 321, 323, 325, 326, 327, 329, 331, 332, 333, 334, 335, 337, 339, 345, 353, 355, 357, 358, 359, 361, 369, 371, 377, 401, 417, 419, 421, 422, 423
Offset: 1
The sequence of terms together with the corresponding compositions begins:
41: (2,3,1)
81: (2,4,1)
83: (2,3,1,1)
89: (2,1,3,1)
105: (1,2,3,1)
145: (3,4,1)
161: (2,5,1)
163: (2,4,1,1)
165: (2,3,2,1)
166: (2,3,1,2)
167: (2,3,1,1,1)
169: (2,2,3,1)
177: (2,1,4,1)
179: (2,1,3,1,1)
185: (2,1,1,3,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
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
Showing 1-6 of 6 results.
Comments