A332873
Number of non-unimodal, non-co-unimodal sequences of length n covering an initial interval of positive integers.
Original entry on oeis.org
0, 0, 0, 0, 22, 340, 3954, 44716, 536858, 7056252, 102140970, 1622267196, 28090317226, 526854073564, 10641328363722, 230283141084220, 5315654511587498, 130370766447282204, 3385534661270087178, 92801587312544823804, 2677687796221222845802, 81124824998424994578652
Offset: 0
The a(4) = 22 sequences:
(1,2,1,2) (2,3,1,3)
(1,2,1,3) (2,3,1,4)
(1,3,1,2) (2,4,1,3)
(1,3,2,3) (3,1,2,1)
(1,3,2,4) (3,1,3,2)
(1,4,2,3) (3,1,4,2)
(2,1,2,1) (3,2,3,1)
(2,1,3,1) (3,2,4,1)
(2,1,3,2) (3,4,1,2)
(2,1,4,3) (4,1,3,2)
(2,3,1,2) (4,2,3,1)
Not requiring non-co-unimodality gives
A328509.
Not requiring non-unimodality also gives
A328509.
The version for run-lengths of partitions is
A332640.
The version for unsorted prime signature is
A332643.
The version for compositions is
A332870.
Unimodal sequences covering an initial interval are
A007052.
Non-unimodal permutations are
A059204.
Non-unimodal compositions are
A115981.
Unimodal compositions covering an initial interval are
A227038.
Numbers whose unsorted prime signature is not unimodal are
A332282.
Numbers whose negated prime signature is not unimodal are
A332642.
Compositions whose run-lengths are not unimodal are
A332727.
Non-unimodal compositions covering an initial interval are
A332743.
Cf.
A000225,
A000670,
A060223,
A072704,
A329398,
A332281,
A332284,
A332577,
A332578,
A332639,
A332672,
A332834.
-
allnorm[n_]:=If[n<=0,{{}},Function[s,Array[Count[s,y_/;y<=#]+1&,n]]/@Subsets[Range[n-1]+1]];
unimodQ[q_]:=Or[Length[q]<=1,If[q[[1]]<=q[[2]],unimodQ[Rest[q]],OrderedQ[Reverse[q]]]];
Table[Length[Select[Union@@Permutations/@allnorm[n],!unimodQ[#]&&!unimodQ[-#]&]],{n,0,5}]
-
seq(n)=Vec( serlaplace(1/(2-exp(x + O(x*x^n)))) - (1 - 6*x + 12*x^2 - 6*x^3)/((1 - x)*(1 - 2*x)*(1 - 4*x + 2*x^2)), -(n+1)) \\ Andrew Howroyd, Jan 28 2024
A333193
Number of compositions of n whose non-adjacent parts are strictly decreasing.
Original entry on oeis.org
1, 1, 2, 3, 5, 7, 11, 15, 21, 29, 40, 53, 71, 93, 122, 158, 204, 260, 332, 419, 528, 661, 825, 1023, 1267, 1560, 1916, 2344, 2860, 3476, 4217, 5097, 6147, 7393, 8872, 10618, 12685, 15115, 17977, 21336, 25276, 29882, 35271, 41551, 48872, 57385, 67277, 78745, 92040
Offset: 0
The a(1) = 1 through a(7) = 15 compositions:
(1) (2) (3) (4) (5) (6) (7)
(11) (12) (13) (14) (15) (16)
(21) (22) (23) (24) (25)
(31) (32) (33) (34)
(211) (41) (42) (43)
(221) (51) (52)
(311) (231) (61)
(312) (241)
(321) (322)
(411) (331)
(2211) (412)
(421)
(511)
(2311)
(3211)
For example, (2,3,1,2) is not such a composition, because the non-adjacent pairs of parts are (2,1), (2,2), (3,2), not all of which are strictly decreasing, while (2,4,1,1) is such a composition, because the non-adjacent pairs of parts are (2,1), (2,1), (4,1), all of which are strictly decreasing.
A version for ordered set partitions is
A332872.
The case of strict compositions is
A333150.
The case of normal sequences appears to be
A001045.
Partitions with strictly increasing run-lengths are
A100471.
Partitions with strictly decreasing run-lengths are
A100881.
Compositions with weakly decreasing non-adjacent parts are
A333148.
Compositions with strictly increasing run-lengths are
A333192.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],!MatchQ[#,{_,x_,,y_,_}/;y>=x]&]],{n,0,15}]
-
\\ p is all, q is those ending in an unreversed singleton.
seq(n)={my(q=O(x*x^n), p=1+q); for(k=1, n, [p,q] = [p*(1 + x^k + x^(2*k)) + q*x^k, q + p*x^k] ); Vec(p)} \\ Andrew Howroyd, Apr 17 2021
A335374
Numbers k such that the k-th composition in standard order (A066099) is not co-unimodal.
Original entry on oeis.org
13, 25, 27, 29, 41, 45, 49, 50, 51, 53, 54, 55, 57, 59, 61, 77, 81, 82, 83, 89, 91, 93, 97, 98, 99, 101, 102, 103, 105, 107, 108, 109, 110, 111, 113, 114, 115, 117, 118, 119, 121, 123, 125, 141, 145, 153, 155, 157, 161, 162, 163, 165, 166, 167, 169, 173, 177
Offset: 1
The sequence together with the corresponding compositions begins:
13: (1,2,1)
25: (1,3,1)
27: (1,2,1,1)
29: (1,1,2,1)
41: (2,3,1)
45: (2,1,2,1)
49: (1,4,1)
50: (1,3,2)
51: (1,3,1,1)
53: (1,2,2,1)
54: (1,2,1,2)
55: (1,2,1,1,1)
57: (1,1,3,1)
59: (1,1,2,1,1)
61: (1,1,1,2,1)
77: (3,1,2,1)
81: (2,4,1)
82: (2,3,2)
83: (2,3,1,1)
89: (2,1,3,1)
This is the dual version of
A335373.
The case that is not unimodal either is
A335375.
Unimodal normal sequences are
A007052.
Non-unimodal permutations are
A059204.
Non-unimodal compositions are
A115981.
Non-unimodal normal sequences are
A328509.
Numbers with non-unimodal unsorted prime signature are
A332282.
Co-unimodal compositions are
A332578.
Numbers with non-co-unimodal unsorted prime signature are
A332642.
Non-co-unimodal compositions are
A332669.
Cf.
A112798,
A227038,
A329398,
A332281,
A332286,
A332287,
A332638,
A332639,
A332643,
A332670,
A332873,
A333146.
-
unimodQ[q_]:=Or[Length[q]<=1,If[q[[1]]<=q[[2]],unimodQ[Rest[q]],OrderedQ[Reverse[q]]]];
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Select[Range[0,100],!unimodQ[-stc[#]]&]
A337459
Numbers k such that the k-th composition in standard order is a unimodal triple.
Original entry on oeis.org
7, 11, 13, 14, 19, 21, 25, 26, 28, 35, 37, 41, 42, 49, 50, 52, 56, 67, 69, 73, 74, 81, 82, 84, 97, 98, 100, 104, 112, 131, 133, 137, 138, 145, 146, 161, 162, 164, 168, 193, 194, 196, 200, 208, 224, 259, 261, 265, 266, 273, 274, 289, 290, 292, 321, 322, 324
Offset: 1
The sequence together with the corresponding triples begins:
7: (1,1,1) 52: (1,2,3) 133: (5,2,1)
11: (2,1,1) 56: (1,1,4) 137: (4,3,1)
13: (1,2,1) 67: (5,1,1) 138: (4,2,2)
14: (1,1,2) 69: (4,2,1) 145: (3,4,1)
19: (3,1,1) 73: (3,3,1) 146: (3,3,2)
21: (2,2,1) 74: (3,2,2) 161: (2,5,1)
25: (1,3,1) 81: (2,4,1) 162: (2,4,2)
26: (1,2,2) 82: (2,3,2) 164: (2,3,3)
28: (1,1,3) 84: (2,2,3) 168: (2,2,4)
35: (4,1,1) 97: (1,5,1) 193: (1,6,1)
37: (3,2,1) 98: (1,4,2) 194: (1,5,2)
41: (2,3,1) 100: (1,3,3) 196: (1,4,3)
42: (2,2,2) 104: (1,2,4) 200: (1,3,4)
49: (1,4,1) 112: (1,1,5) 208: (1,2,5)
50: (1,3,2) 131: (6,1,1) 224: (1,1,6)
A337460 is the non-unimodal version.
A000217(n - 2) counts 3-part compositions.
A001523 counts unimodal compositions.
A011782 counts unimodal permutations.
A115981 counts non-unimodal compositions.
All of the following pertain to compositions in standard order (
A066099):
- Constant compositions are
A272919.
- Combinatory separations are counted by
A334030.
- Non-unimodal compositions are
A335373.
- Non-co-unimodal compositions are
A335374.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Select[Range[0,1000],Length[stc[#]]==3&&!MatchQ[stc[#],{x_,y_,z_}/;x>y
A337460
Numbers k such that the k-th composition in standard order is a non-unimodal triple.
Original entry on oeis.org
22, 38, 44, 70, 76, 88, 134, 140, 148, 152, 176, 262, 268, 276, 280, 296, 304, 352, 518, 524, 532, 536, 552, 560, 592, 608, 704, 1030, 1036, 1044, 1048, 1064, 1072, 1096, 1104, 1120, 1184, 1216, 1408, 2054, 2060, 2068, 2072, 2088, 2096, 2120, 2128, 2144, 2192
Offset: 1
The sequence together with the corresponding triples begins:
22: (2,1,2) 296: (3,2,4) 1048: (6,1,4)
38: (3,1,2) 304: (3,1,5) 1064: (5,2,4)
44: (2,1,3) 352: (2,1,6) 1072: (5,1,5)
70: (4,1,2) 518: (7,1,2) 1096: (4,3,4)
76: (3,1,3) 524: (6,1,3) 1104: (4,2,5)
88: (2,1,4) 532: (5,2,3) 1120: (4,1,6)
134: (5,1,2) 536: (5,1,4) 1184: (3,2,6)
140: (4,1,3) 552: (4,2,4) 1216: (3,1,7)
148: (3,2,3) 560: (4,1,5) 1408: (2,1,8)
152: (3,1,4) 592: (3,2,5) 2054: (9,1,2)
176: (2,1,5) 608: (3,1,6) 2060: (8,1,3)
262: (6,1,2) 704: (2,1,7) 2068: (7,2,3)
268: (5,1,3) 1030: (8,1,2) 2072: (7,1,4)
276: (4,2,3) 1036: (7,1,3) 2088: (6,2,4)
280: (4,1,4) 1044: (6,2,3) 2096: (6,1,5)
A000217(n - 2) counts 3-part compositions.
A001399(n - 3) counts 3-part partitions.
A001399(n - 6) counts 3-part strict partitions.
A001399(n - 6)*2 counts non-unimodal 3-part strict compositions.
A001399(n - 6)*4 counts unimodal 3-part strict compositions.
A001399(n - 6)*6 counts 3-part strict compositions.
A001523 counts unimodal compositions.
A001840 counts non-unimodal triples.
A059204 counts non-unimodal permutations.
A115981 counts non-unimodal compositions.
A328509 counts non-unimodal patterns.
All of the following pertain to compositions in standard order (
A066099):
- Constant compositions are
A272919.
- Non-unimodal compositions are
A335373.
- Non-co-unimodal compositions are
A335374.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Select[Range[0,1000],Length[stc[#]]==3&&MatchQ[stc[#],{x_,y_,z_}/;x>y
A334966
Numbers k such that the k-th composition in standard order (row k of A066099) has weakly decreasing non-adjacent parts.
Original entry on oeis.org
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, 47, 48, 49, 51, 55, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81, 82, 83, 85, 86, 87
Offset: 1
The sequence together with the corresponding compositions begins:
0: () 17: (4,1) 37: (3,2,1)
1: (1) 18: (3,2) 38: (3,1,2)
2: (2) 19: (3,1,1) 39: (3,1,1,1)
3: (1,1) 20: (2,3) 40: (2,4)
4: (3) 21: (2,2,1) 41: (2,3,1)
5: (2,1) 22: (2,1,2) 42: (2,2,2)
6: (1,2) 23: (2,1,1,1) 43: (2,2,1,1)
7: (1,1,1) 24: (1,4) 45: (2,1,2,1)
8: (4) 25: (1,3,1) 47: (2,1,1,1,1)
9: (3,1) 27: (1,2,1,1) 48: (1,5)
10: (2,2) 31: (1,1,1,1,1) 49: (1,4,1)
11: (2,1,1) 32: (6) 51: (1,3,1,1)
12: (1,3) 33: (5,1) 55: (1,2,1,1,1)
13: (1,2,1) 34: (4,2) 63: (1,1,1,1,1,1)
15: (1,1,1,1) 35: (4,1,1) 64: (7)
16: (5) 36: (3,3) 65: (6,1)
For example, (2,3,1,2) is such a composition because the non-adjacent pairs are (2,1), (2,2), (3,2), all of which are weakly decreasing, so 166 is in the sequence
The case of normal sequences appears to be
A028859.
A version for ordered set partitions is
A332872.
These compositions are enumerated by
A333148.
The strict case is enumerated by
A333150.
-
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Select[Range[0,100],!MatchQ[stc[#],{_,x_,,y_,_}/;y>x]&]
A335375
Numbers k such that the k-th composition in standard order (A066099) is neither unimodal nor co-unimodal.
Original entry on oeis.org
45, 54, 77, 89, 91, 93, 102, 108, 109, 110, 118, 141, 153, 155, 157, 166, 173, 177, 178, 179, 181, 182, 183, 185, 187, 189, 198, 204, 205, 206, 214, 216, 217, 218, 219, 220, 221, 222, 230, 236, 237, 238, 246, 269, 281, 283, 285, 297, 301, 305, 306, 307, 309
Offset: 1
The sequence together with the corresponding compositions begins:
45: (2,1,2,1)
54: (1,2,1,2)
77: (3,1,2,1)
89: (2,1,3,1)
91: (2,1,2,1,1)
93: (2,1,1,2,1)
102: (1,3,1,2)
108: (1,2,1,3)
109: (1,2,1,2,1)
110: (1,2,1,1,2)
118: (1,1,2,1,2)
141: (4,1,2,1)
153: (3,1,3,1)
155: (3,1,2,1,1)
157: (3,1,1,2,1)
166: (2,3,1,2)
173: (2,2,1,2,1)
177: (2,1,4,1)
178: (2,1,3,2)
179: (2,1,3,1,1)
Non-unimodal compositions are ranked by
A335373.
Non-co-unimodal compositions are ranked by
A335374.
Unimodal normal sequences are
A007052.
Non-unimodal permutations are
A059204.
Non-unimodal compositions are
A115981.
Non-unimodal normal sequences are
A328509.
Numbers with non-unimodal unsorted prime signature are
A332282.
Co-unimodal compositions are
A332578.
Numbers with non-co-unimodal unsorted prime signature are
A332642.
Non-co-unimodal compositions are
A332669.
Cf.
A112798,
A227038,
A329398,
A332281,
A332286,
A332287,
A332638,
A332639,
A332643,
A332670,
A332873,
A333146.
-
unimodQ[q_]:=Or[Length[q]<=1,If[q[[1]]<=q[[2]],unimodQ[Rest[q]],OrderedQ[Reverse[q]]]];
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
Select[Range[0,100],!unimodQ[stc[#]]&&!unimodQ[-stc[#]]&]
Comments