A237272
Number of overcompositions of n that contain at least two parts in increasing order and that contain at least one overlined part.
Original entry on oeis.org
0, 0, 0, 3, 9, 27, 83, 211, 522, 1222, 2874, 6496, 14593, 32185, 70423, 153024, 330195, 708933, 1514821, 3224134, 6836547, 14455648, 30475210, 64096487, 134493519, 281642590, 588642240, 1228160742, 2558300338, 5321065857, 11051923912, 22925167566
Offset: 0
A332871
Number of compositions of n whose run-lengths are not weakly increasing.
Original entry on oeis.org
0, 0, 0, 0, 1, 4, 8, 24, 55, 128, 282, 625, 1336, 2855, 6000, 12551, 26022, 53744, 110361, 225914, 460756, 937413, 1902370, 3853445, 7791647, 15732468, 31725191, 63907437, 128613224, 258626480, 519700800, 1043690354, 2094882574, 4202903667, 8428794336, 16897836060
Offset: 0
The a(4) = 1 through a(6) = 8 compositions:
(112) (113) (114)
(221) (1113)
(1112) (1131)
(1121) (1221)
(2112)
(11112)
(11121)
(11211)
For example, the composition (2,1,1,2) has run-lengths (1,2,1), which are not weakly increasing, so (2,1,1,2) is counted under a(6).
The version for the compositions themselves (not run-lengths) is
A056823.
The version for unsorted prime signature is
A112769, with dual
A071365.
The case without weakly decreasing run-lengths either is
A332833.
The complement is counted by
A332836.
Compositions that are not unimodal are
A115981.
Compositions with equal run-lengths are
A329738.
Compositions whose run-lengths are not unimodal are
A332727.
Cf.
A001523,
A072704,
A100883,
A181819,
A329744,
A329766,
A332641,
A332669,
A332726,
A332745,
A332746,
A332834,
A332835.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],!LessEqual@@Length/@Split[#]&]],{n,0,10}]
A375297
Number of integer compositions of n matching both of the dashed patterns 23-1 and 1-32.
Original entry on oeis.org
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 6, 21, 68, 199, 545, 1410, 3530, 8557, 20255, 46968, 107135, 240927, 535379, 1177435, 2566618, 5551456
Offset: 0
The a(0) = 0 through a(11) = 21 compositions:
. . . . . . . . . (12321) (1342) (1352)
(2431) (2531)
(12421) (11342)
(13231) (12431)
(112321) (12521)
(123211) (13241)
(13421)
(14231)
(23132)
(24311)
(112421)
(113231)
(122321)
(123212)
(123221)
(124211)
(132311)
(212321)
(1112321)
(1123211)
(1232111)
For leaders of identical runs we have
A332834.
These compositions are ranked by
A375407.
A106356 counts compositions by number of maximal anti-runs.
A335456 counts patterns matched by compositions.
Cf.
A000041,
A056823,
A188920,
A189076,
A238343,
A333213,
A335514,
A374631,
A374632,
A374635,
A374681.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], MatchQ[#,{_,y_,z_,_,x_,_}/;x_,x_,_,z_,y_,_}/;x
A375406
Number of integer compositions of n that match the dashed pattern 3-12.
Original entry on oeis.org
0, 0, 0, 0, 0, 0, 1, 4, 14, 41, 110, 278, 673, 1576, 3599, 8055, 17732, 38509, 82683, 175830, 370856, 776723, 1616945, 3348500, 6902905, 14174198, 29004911, 59175625, 120414435, 244468774, 495340191, 1001911626, 2023473267, 4081241473, 8222198324, 16548146045, 33276169507
Offset: 0
The a(0) = 0 through a(8) = 14 compositions:
. . . . . . (312) (412) (413)
(1312) (512)
(3112) (1412)
(3121) (2312)
(3122)
(3212)
(4112)
(4121)
(11312)
(13112)
(13121)
(31112)
(31121)
(31211)
For leaders of identical runs we have
A056823.
The complement is counted by
A188900.
Ranks are positions of non-weakly increasing rows in
A374740.
Cf.
A106356,
A188920,
A189076,
A189077,
A238343,
A333213,
A335548,
A374629,
A374637,
A374679,
A374748.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], !LessEqual@@First/@Split[#,GreaterEqual]&]],{n,0,15}]
- or -
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], MatchQ[#,{_,z_,_,x_,y_,_}/;x
A376263
Number of strict integer compositions of n whose leaders of increasing runs are increasing.
Original entry on oeis.org
1, 1, 1, 2, 2, 3, 5, 6, 8, 11, 18, 21, 30, 38, 52, 77, 96, 126, 167, 217, 278, 402, 488, 647, 822, 1073, 1340, 1747, 2324, 2890, 3695, 4690, 5924, 7469, 9407, 11718, 15405, 18794, 23777, 29507, 37188, 45720, 57404, 70358, 87596, 110672, 135329, 167018, 206761, 254200, 311920
Offset: 0
The a(1) = 1 through a(9) = 11 compositions:
(1) (2) (3) (4) (5) (6) (7) (8) (9)
(1,2) (1,3) (1,4) (1,5) (1,6) (1,7) (1,8)
(2,3) (2,4) (2,5) (2,6) (2,7)
(1,2,3) (3,4) (3,5) (3,6)
(1,3,2) (1,2,4) (1,2,5) (4,5)
(1,4,2) (1,3,4) (1,2,6)
(1,4,3) (1,3,5)
(1,5,2) (1,5,3)
(1,6,2)
(2,3,4)
(2,4,3)
For less-greater or greater-less we have
A294617.
A374700 counts compositions by sum of leaders of strictly increasing runs.
Cf.
A000110,
A008289,
A056823,
A106356,
A188920,
A238343,
A261982,
A274174,
A333213,
A374634,
A374683,
A374698,
A374763.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], UnsameQ@@#&&Less@@First/@Split[#,Less]&]],{n,0,15}]
-
\\ here Q(n) gives n-th row of A008289.
Q(n)={Vecrev(polcoef(prod(k=1, n, 1 + y*x^k, 1 + O(x*x^n)), n)/y)}
a(n)={if(n==0, 1, my(r=Q(n), s=Vec(serlaplace(exp(exp(x+O(x^#r))- 1)))); sum(k=1, #r, r[k]*s[k]))} \\ Andrew Howroyd, Sep 18 2024
A174523
Triangle T(n,1) = A117989(n+1) in the first column and recursively T(n,k) = 2*T(n-1,k-1).
Original entry on oeis.org
1, 1, 2, 3, 2, 4, 3, 6, 4, 8, 7, 6, 12, 8, 16, 8, 14, 12, 24, 16, 32, 14, 16, 28, 24, 48, 32, 64, 18, 28, 32, 56, 48, 96, 64, 128, 28, 36, 56, 64, 112, 96, 192, 128, 256, 35, 56, 72, 112, 128, 224, 192, 384, 256, 512, 53, 70, 112, 144, 224, 256
Offset: 1
1;
1,2;
3,2,4;
3,6,4,8;
7,6,12,8,16;
8,14,12,24,16,32;
14,16,28,24,48,32,64;
18,28,32,56,48,96,64,128;
28,36,56,64,112,96,192,128,256;
35,56,72,112,128,224,192,384,256,512;
-
A174523 := proc(n,k)
option remember;
if k = 1 then
A117989(n+1) ;
elif k > n then
0;
else
2*procname(n-1,k-1) ;
end if;
end proc: # R. J. Mathar, May 19 2016
A229935
Total number of parts in all compositions of n with at least two parts in increasing order.
Original entry on oeis.org
0, 0, 0, 2, 8, 28, 77, 202, 490, 1152, 2624, 5869, 12913, 28116, 60660, 130004, 277065, 587859, 1242540, 2617942, 5500394, 11528284, 24109349, 50321442, 104844426, 218086957, 452963310, 939496802, 1946122511, 4026488387, 8321444573, 17179801049, 35433395265
Offset: 0
For n = 4 the table shows both the compositions and the partitions of 4. There are three compositions of 4 that are not partitions of 4.
----------------------------------------------------
Compositions Partitions Number of parts
----------------------------------------------------
[1, 1, 1, 1] = [1, 1, 1, 1]
[2, 1, 1] = [2, 1, 1]
[1, 2, 1] 3
[3, 1] = [3, 1]
[1, 1, 2] 3
[2, 2] = [2, 2]
[1, 3] 2
[4] = [4]
----------------------------------------------------
Total 8
.
A partition of a positive integer n is any nonincreasing sequence of positive integers which sum to n, ence the compositions of 4 that are not partitions of 4 are [1, 2, 1], [1, 1, 2] and [1, 3]. The total number of parts of these compositions is 3 + 3 + 2 = 8. On the other hand the total number of parts in all compositions of 4 is A001792(4-1) = 20, and the total number of parts in all partitions of 4 is A006128(4) = 12, so a(4) = 20 - 12 = 8.
A229936
Sum of all parts of all compositions of n with at least two parts in increasing order.
Original entry on oeis.org
0, 0, 0, 3, 12, 45, 126, 343, 848, 2034, 4700, 10648, 23652, 51935, 112798, 243120, 520592, 1109063, 2352366, 4971426, 10473220, 22003464, 46115300, 96440127, 201288792, 419381450, 872351896, 1811858058, 3757992280, 7784495839, 16105959240, 33285784442
Offset: 0
For n = 4 the table shows both the compositions and the partitions of 4. There are three compositions of 4 that are not partitions of 4.
----------------------------------------------------
Compositions Partitions Sum of all parts
----------------------------------------------------
[1, 1, 1, 1] = [1, 1, 1, 1]
[2, 1, 1] = [2, 1, 1]
[1, 2, 1] 4
[3, 1] = [3, 1]
[1, 1, 2] 4
[2, 2] = [2, 2]
[1, 3] 4
[4] = [4]
----------------------------------------------------
Total 12
.
A partition of a positive integer n is any nonincreasing sequence of positive integers which sum to n, ence the compositions of 4 that are not partitions of 4 are [1, 2, 1], [1, 1, 2] and [1, 3]. The sum of all parts of these compositions is 1+3+1+2+1+1+1+2 = 3*4 = 12. On the other hand the sum of all parts in all compositions of 4 is A001787(4) = 32, and the sum of all parts in all partitions of 4 is A066186(4) = 20, so a(4) = 32 - 20 = 12.
A337698
Number of compositions of n that are not strictly increasing.
Original entry on oeis.org
0, 0, 1, 2, 6, 13, 28, 59, 122, 248, 502, 1012, 2033, 4078, 8170, 16357, 32736, 65498, 131026, 262090, 524224, 1048500, 2097063, 4194200, 8388486, 16777074, 33554267, 67108672, 134217506, 268435200, 536870616, 1073741484, 2147483258, 4294966848, 8589934080
Offset: 0
The a(2) = 1 through a(5) = 13 compositions:
(11) (21) (22) (32)
(111) (31) (41)
(112) (113)
(121) (122)
(211) (131)
(1111) (212)
(221)
(311)
(1112)
(1121)
(1211)
(2111)
(11111)
A140106 counts the unordered case of length 3.
A242771 counts the case of length 3.
A333255 is the complement of a ranking sequence (using standard compositions
A066099) for these compositions.
A337481 counts these compositions that are not strictly decreasing.
A337482 counts these compositions that are not weakly decreasing.
A218004 counts strictly increasing or weakly decreasing compositions.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],!Less@@#&]],{n,0,15}]
Comments