A374688
Number of integer compositions of n whose leaders of strictly increasing runs are themselves strictly increasing.
Original entry on oeis.org
1, 1, 1, 2, 2, 4, 5, 7, 11, 16, 21, 31, 45, 63, 87, 122, 170, 238, 328, 449, 616, 844, 1151, 1565, 2121, 2861, 3855, 5183, 6953, 9299, 12407, 16513, 21935, 29078, 38468, 50793, 66935, 88037, 115577, 151473, 198175, 258852, 337560, 439507, 571355, 741631
Offset: 0
The a(0) = 1 through a(9) = 16 compositions:
() (1) (2) (3) (4) (5) (6) (7) (8) (9)
(12) (13) (14) (15) (16) (17) (18)
(23) (24) (25) (26) (27)
(122) (123) (34) (35) (36)
(132) (124) (125) (45)
(133) (134) (126)
(142) (143) (135)
(152) (144)
(233) (153)
(1223) (162)
(1232) (234)
(243)
(1224)
(1233)
(1242)
(1323)
Ranked by positions of strictly increasing rows in
A374683 (sums
A374684).
Types of runs (instead of strictly increasing):
- For leaders of identical runs we have
A000041.
- For leaders of anti-runs we have
A374679.
- For leaders of weakly increasing runs we have
A374634.
- For leaders of strictly decreasing runs we have
A374762.
Types of run-leaders (instead of strictly increasing):
- For strictly decreasing leaders we have
A374689.
- For weakly increasing leaders we have
A374690.
- For weakly decreasing leaders we have
A374697.
A374700 counts compositions by sum of leaders of strictly increasing runs.
-
Table[Length[Select[Join@@Permutations /@ IntegerPartitions[n],Less@@First/@Split[#,Less]&]],{n,0,15}]
A374697
Number of integer compositions of n whose leaders of strictly increasing runs are weakly decreasing.
Original entry on oeis.org
1, 1, 2, 4, 8, 15, 29, 55, 103, 193, 360, 669, 1239, 2292, 4229, 7794, 14345, 26375, 48452, 88946, 163187, 299250, 548543, 1005172, 1841418, 3372603, 6175853, 11307358, 20699979, 37890704, 69351776, 126926194, 232283912, 425075191, 777848212, 1423342837, 2604427561
Offset: 0
The composition (1,2,1,3,2,3) has strictly increasing runs ((1,2),(1,3),(2,3)), with leaders (1,1,2), so is not counted under a(12).
The a(0) = 1 through a(5) = 15 compositions:
() (1) (2) (3) (4) (5)
(11) (12) (13) (14)
(21) (22) (23)
(111) (31) (32)
(112) (41)
(121) (113)
(211) (131)
(1111) (212)
(221)
(311)
(1112)
(1121)
(1211)
(2111)
(11111)
Ranked by positions of weakly decreasing rows in
A374683.
Types of runs (instead of strictly increasing):
- For leaders of identical runs we have
A000041.
- For leaders of anti-runs we have
A374682.
- For leaders of weakly increasing runs we have
A189076, complement
A374636.
- For leaders of weakly decreasing runs we have
A374747.
- For leaders of strictly decreasing runs we have
A374765.
Types of run-leaders (instead of weakly decreasing):
- For weakly increasing leaders we have
A374690.
- For strictly increasing leaders we have
A374688.
- For strictly decreasing leaders we have
A374689.
A335456 counts patterns matched by compositions.
A374700 counts compositions by sum of leaders of strictly increasing runs.
-
Table[Length[Select[Join@@Permutations /@ IntegerPartitions[n],GreaterEqual@@First/@Split[#,Less]&]],{n,0,15}]
-
seq(n) = Vec(1/prod(k=1, n, 1 - x^k*prod(j=k+1, n-k, 1 + x^j, 1 + O(x^(n-k+1))))) \\ Andrew Howroyd, Jul 31 2024
A335470
Number of compositions of n matching the pattern (1,2,1).
Original entry on oeis.org
0, 0, 0, 0, 1, 3, 9, 24, 61, 141, 322, 713, 1543, 3289, 6907, 14353, 29604, 60640, 123522, 250645, 506808, 1022197, 2057594, 4135358, 8301139, 16648165, 33364948, 66831721, 133814251, 267850803, 536026676, 1072528081, 2145745276, 4292485526, 8586405894, 17174865820
Offset: 0
The a(4) = 1 through a(6) = 9 compositions:
(121) (131) (141)
(1121) (1131)
(1211) (1212)
(1221)
(1311)
(2121)
(11121)
(11211)
(12111)
The version for prime indices is
A335446.
These compositions are ranked by
A335466.
The complement
A335471 is the avoiding version.
The (2,1,2)-matching version is
A335472.
The version for patterns is
A335509.
Compositions are counted by
A011782.
Non-unimodal compositions are counted by
A115981 and ranked by
A335373.
Combinatory separations are counted by
A269134.
Patterns matched by compositions are counted by
A335456.
Minimal patterns avoided by a standard composition are counted by
A335465.
Compositions matching (1,2,3) are counted by
A335514.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],MatchQ[#,{_,x_,_,y_,_,x_,_}/;x
A335473
Number of compositions of n avoiding the pattern (2,1,2).
Original entry on oeis.org
1, 1, 2, 4, 8, 15, 29, 55, 103, 190, 347, 630, 1134, 2028, 3585, 6291, 10950, 18944, 32574, 55692, 94618, 159758, 268147, 447502, 743097, 1227910, 2020110, 3308302, 5394617, 8757108, 14155386, 22784542, 36529813, 58343498, 92850871, 147254007, 232750871, 366671436
Offset: 0
The a(0) = 1 through a(5) = 15 compositions:
() (1) (2) (3) (4) (5)
(11) (12) (13) (14)
(21) (22) (23)
(111) (31) (32)
(112) (41)
(121) (113)
(211) (122)
(1111) (131)
(221)
(311)
(1112)
(1121)
(1211)
(2111)
(11111)
The version for patterns is
A001710.
The version for prime indices is
A335450.
These compositions are ranked by
A335469.
The (1,2,1)-avoiding version is
A335471.
The complement
A335472 is the matching version.
Compositions are counted by
A011782.
Compositions avoiding (1,2,3) are counted by
A102726.
Non-unimodal compositions are counted by
A115981 and ranked by
A335373.
Combinatory separations are counted by
A269134.
Patterns matched by compositions are counted by
A335456.
Minimal patterns avoided by a standard composition are counted by
A335465.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],!MatchQ[#,{_,x_,_,y_,_,x_,_}/;x>y]&]],{n,0,10}]
-
a(n)={local(Cache=Map()); my(F(n,m,k) = if(m>n, n==0, my(hk=[n,m,k], z); if(!mapisdefined(Cache,hk,&z), z=self()(n,m+1,k) + k*sum(i=1,n\m, self()(n-i*m, m+1, k+i)); mapput(Cache, hk, z)); z)); F(n,1,1)} \\ Andrew Howroyd, Dec 31 2020
A335472
Number of compositions of n matching the pattern (2,1,2).
Original entry on oeis.org
0, 0, 0, 0, 0, 1, 3, 9, 25, 66, 165, 394, 914, 2068, 4607, 10093, 21818, 46592, 98498, 206452, 429670, 888818, 1829005, 3746802, 7645511, 15549306, 31534322, 63800562, 128823111, 259678348, 522715526, 1050957282, 2110953835, 4236623798, 8497083721, 17032615177
Offset: 0
The a(5) = 1 through a(7) = 9 compositions:
(212) (1212) (313)
(2112) (2122)
(2121) (2212)
(11212)
(12112)
(12121)
(21112)
(21121)
(21211)
The version for prime indices is
A335453.
These compositions are ranked by
A335468.
The (1,2,1)-matching version is
A335470.
The complement
A335473 is the avoiding version.
The version for patterns is
A335509.
Compositions are counted by
A011782.
Non-unimodal compositions are counted by
A115981 and ranked by
A335373.
Combinatory separations are counted by
A269134.
Patterns matched by compositions are counted by
A335456.
Minimal patterns avoided by a standard composition are counted by
A335465.
Compositions matching (1,2,3) are counted by
A335514.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],MatchQ[#,{_,x_,_,y_,_,x_,_}/;x>y]&]],{n,0,10}]
A374746
Number of integer compositions of n whose leaders of weakly decreasing runs are strictly decreasing.
Original entry on oeis.org
1, 1, 2, 3, 5, 7, 12, 18, 31, 51, 86, 143, 241, 397, 657, 1082, 1771, 2889, 4697, 7605, 12269, 19720, 31580, 50412, 80205, 127208, 201149, 317171, 498717, 782076, 1223230, 1908381, 2969950, 4610949, 7141972, 11037276, 17019617, 26188490, 40213388, 61624824
Offset: 0
The a(0) = 1 through a(7) = 18 compositions:
() (1) (2) (3) (4) (5) (6) (7)
(11) (21) (22) (32) (33) (43)
(111) (31) (41) (42) (52)
(211) (221) (51) (61)
(1111) (311) (222) (322)
(2111) (312) (331)
(11111) (321) (412)
(411) (421)
(2211) (511)
(3111) (2221)
(21111) (3112)
(111111) (3121)
(3211)
(4111)
(22111)
(31111)
(211111)
(1111111)
Ranked by positions of strictly decreasing rows in
A374740, opp.
A374629.
Types of runs (instead of weakly decreasing):
- For leaders of identical runs we have
A000041.
- For leaders of weakly increasing runs we have
A188920.
- For leaders of anti-runs we have
A374680.
- For leaders of strictly increasing runs we have
A374689.
- For leaders of strictly decreasing runs we have
A374763.
Types of run-leaders (instead of strictly decreasing):
- For weakly increasing leaders we appear to have
A188900.
- For identical leaders we have
A374742.
- For strictly increasing leaders we have opposite
A374634.
- For weakly decreasing leaders we have
A374747.
A335456 counts patterns matched by compositions.
A374748 counts compositions by sum of leaders of weakly decreasing runs.
Cf.
A000009,
A003242,
A106356,
A189076,
A238343,
A261982,
A333213,
A358836,
A374632,
A374635,
A374741.
-
Table[Length[Select[Join@@Permutations /@ IntegerPartitions[n],Greater@@First/@Split[#,GreaterEqual]&]],{n,0,15}]
-
seq(n)={my(A=O(x*x^n), p=1+A, q=p, r=p); for(k=1, n\2, r += x^k*q/(1-x^k); p /= 1 - x^k; q *= (1 - x^k/(1-x^k) + x^k*p)/(1-x^k) ); Vec(r + x^(n\2+1)*q/(1-x))} \\ Andrew Howroyd, Dec 30 2024
A374747
Number of integer compositions of n whose leaders of weakly decreasing runs are themselves weakly decreasing.
Original entry on oeis.org
1, 1, 2, 3, 5, 8, 14, 24, 43, 76, 136, 242, 431, 764, 1353, 2387, 4202, 7376, 12918, 22567, 39338, 68421, 118765, 205743, 355756, 614038, 1058023, 1820029, 3125916, 5360659, 9179700, 15697559, 26807303, 45720739, 77881393, 132505599, 225182047, 382252310, 648187055
Offset: 0
The composition y = (3,2,1,2,2,1,2,5,1,1,1) has weakly decreasing runs ((3,2,1),(2,2,1),(2),(5,1,1,1)), with leaders (3,2,2,5), which are not weakly decreasing, so y is not counted under a(21).
The a(0) = 1 through a(6) = 14 compositions:
() (1) (2) (3) (4) (5) (6)
(11) (21) (22) (32) (33)
(111) (31) (41) (42)
(211) (212) (51)
(1111) (221) (222)
(311) (312)
(2111) (321)
(11111) (411)
(2112)
(2121)
(2211)
(3111)
(21111)
(111111)
Ranked by positions of weakly decreasing rows in
A374740, opposite
A374629.
Types of runs (instead of weakly decreasing):
- For leaders of identical runs we have
A000041.
- For leaders of weakly increasing runs we appear to have
A189076.
- For leaders of anti-runs we have
A374682.
- For leaders of strictly increasing runs we have
A374697.
- For leaders of strictly decreasing runs we have
A374765.
Types of run-leaders (instead of weakly decreasing):
- For weakly increasing leaders we appear to have
A188900.
- For strictly increasing leaders we have opposite
A374634.
- For strictly decreasing leaders we have
A374746.
A124765 counts weakly decreasing runs in standard compositions.
A335456 counts patterns matched by compositions.
A374748 counts compositions by sum of leaders of weakly decreasing runs.
Cf.
A000009,
A003242,
A106356,
A188920,
A238343,
A261982,
A333213,
A374630,
A374635,
A374636,
A374741.
-
Table[Length[Select[Join@@Permutations /@ IntegerPartitions[n],GreaterEqual@@First/@Split[#,GreaterEqual]&]],{n,0,15}]
-
dfs(m, r, u) = 1 + sum(s=r+1, min(m, u), x^s/(1-x^s) + sum(t=1, min(s-1, m-s), dfs(m-s-t, t, s)*x^(s+t)/prod(i=t, s, 1-x^i)));
lista(nn) = Vec(dfs(nn, 0, nn) + O(x^(1+nn))); \\ Jinyuan Wang, Feb 14 2025
A374762
Number of integer compositions of n whose leaders of strictly decreasing runs are strictly increasing.
Original entry on oeis.org
1, 1, 1, 3, 4, 6, 11, 18, 27, 41, 64, 98, 151, 229, 339, 504, 746, 1097, 1618, 2372, 3451, 5009, 7233, 10394, 14905, 21316, 30396, 43246, 61369, 86830, 122529, 172457, 242092, 339062, 473850, 660829, 919822, 1277935, 1772174, 2453151, 3389762, 4675660, 6438248
Offset: 0
The a(0) = 1 through a(7) = 18 compositions:
() (1) (2) (3) (4) (5) (6) (7)
(12) (13) (14) (15) (16)
(21) (31) (23) (24) (25)
(121) (32) (42) (34)
(41) (51) (43)
(131) (123) (52)
(132) (61)
(141) (124)
(213) (142)
(231) (151)
(321) (214)
(232)
(241)
(421)
(1213)
(1231)
(1321)
(2131)
For partitions instead of compositions we have
A000009.
The weak version appears to be
A188900.
Other types of runs (instead of strictly decreasing):
- For leaders of identical runs we have
A000041.
- For leaders of weakly increasing runs we have
A374634.
- For leaders of anti-runs we have
A374679.
Other types of run-leaders (instead of strictly increasing):
- For strictly decreasing leaders we have
A374763.
- For weakly increasing leaders we have
A374764.
- For weakly decreasing leaders we have
A374765.
A374700 counts compositions by sum of leaders of strictly increasing runs.
Cf.
A106356,
A188920,
A189076,
A238343,
A261982,
A333213,
A374518,
A374631,
A374632,
A374687,
A374742,
A374743.
-
Table[Length[Select[Join@@Permutations /@ IntegerPartitions[n],Less@@First/@Split[#,Greater]&]],{n,0,15}]
-
seq(n) = Vec(prod(k=1, n, 1 + x^k*prod(j=1, min(n-k,k-1), 1 + x^j, 1 + O(x^(n-k+1))))) \\ Andrew Howroyd, Jul 31 2024
A374763
Number of integer compositions of n whose leaders of strictly decreasing runs are themselves strictly decreasing.
Original entry on oeis.org
1, 1, 1, 2, 3, 4, 6, 10, 15, 22, 32, 47, 71, 106, 156, 227, 328, 473, 683, 986, 1421, 2040, 2916, 4149, 5882, 8314, 11727, 16515, 23221, 32593, 45655, 63810, 88979, 123789, 171838, 238055, 329187, 454451, 626412, 862164, 1184917, 1626124, 2228324, 3048982, 4165640, 5682847
Offset: 0
The composition (3,1,2,1,1) has strictly decreasing runs ((3,1),(2,1),(1)), with leaders (3,2,1), so is counted under a(8).
The a(0) = 1 through a(8) = 15 compositions:
() (1) (2) (3) (4) (5) (6) (7) (8)
(21) (31) (32) (42) (43) (53)
(211) (41) (51) (52) (62)
(311) (312) (61) (71)
(321) (322) (413)
(411) (412) (422)
(421) (431)
(511) (512)
(3121) (521)
(3211) (611)
(3212)
(3221)
(4121)
(4211)
(31211)
For partitions instead of compositions we have
A375133.
Other types of runs (instead of strictly decreasing):
- For leaders of identical runs we have
A000041.
- For leaders of weakly increasing runs we appear to have
A188920.
- For leaders of anti-runs we have
A374680.
- For leaders of strictly increasing runs we have
A374689.
- For leaders of weakly decreasing runs we have
A374746.
Other types of run-leaders (instead of strictly decreasing):
- For strictly increasing leaders we have
A374762.
- For weakly increasing leaders we have
A374764.
- For weakly decreasing leaders we have
A374765.
Cf.
A000009,
A106356,
A188900,
A238343,
A261982,
A333213,
A374518,
A374632,
A374635,
A374687,
A374742,
A374743.
-
Table[Length[Select[Join@@Permutations /@ IntegerPartitions[n],Greater@@First/@Split[#,Greater]&]],{n,0,15}]
-
seq(n)={ my(A=O(x*x^n), p=1+A, q=p, r=p); for(k=1, n\2, r += x^k*q; p *= 1 + x^k; q *= 1 + x^k*p); Vec(r + x^(n\2+1)*q/(1-x)) } \\ Andrew Howroyd, Dec 30 2024
A374764
Number of integer compositions of n whose leaders of strictly decreasing runs are weakly increasing.
Original entry on oeis.org
1, 1, 2, 4, 7, 13, 23, 40, 69, 118, 199, 333, 553, 911, 1492, 2428, 3928, 6323, 10129, 16151, 25646, 40560, 63905, 100332, 156995, 244877, 380803, 590479, 913100, 1408309, 2166671, 3325445, 5092283, 7780751, 11863546, 18052080, 27415291, 41556849, 62879053, 94975305, 143213145
Offset: 0
The composition (1,1,2,1) has strictly decreasing runs ((1),(1),(2,1)) with leaders (1,1,2) so is counted under a(5).
The composition (1,2,1,1) has strictly decreasing runs ((1),(2,1),(1)) with leaders (1,2,1) so is not counted under a(5).
The a(0) = 1 through a(5) = 13 compositions:
() (1) (2) (3) (4) (5)
(11) (12) (13) (14)
(21) (22) (23)
(111) (31) (32)
(112) (41)
(121) (113)
(1111) (122)
(131)
(212)
(221)
(1112)
(1121)
(11111)
For partitions instead of compositions we have
A034296.
For strictly increasing leaders we have
A374688.
Other types of runs (instead of strictly decreasing):
- For leaders of identical runs we have
A000041.
- For leaders of anti-runs we have
A374681.
- For leaders of weakly increasing runs we have
A374635.
- For leaders of strictly increasing runs we have
A374690.
- For leaders of weakly decreasing runs we have
A188900.
Other types of run-leaders (instead of weakly increasing):
- For strictly increasing leaders we have
A374762.
- For weakly decreasing leaders we have
A374765.
- For strictly decreasing leaders we have
A374763.
Cf.
A106356,
A188920,
A238343,
A261982,
A333213,
A374687,
A374679,
A374680,
A374742,
A374743,
A374747.
-
Table[Length[Select[Join@@Permutations /@ IntegerPartitions[n],LessEqual@@First/@Split[#,Greater]&]],{n,0,15}]
-
seq(n) = Vec(1/prod(k=1, n, 1 - x^k*prod(j=1, min(n-k,k-1), 1 + x^j, 1 + O(x^(n-k+1))))) \\ Andrew Howroyd, Jul 31 2024
Comments