A334965
Numbers with strictly increasing prime multiplicities.
Original entry on oeis.org
1, 2, 3, 4, 5, 7, 8, 9, 11, 13, 16, 17, 18, 19, 23, 25, 27, 29, 31, 32, 37, 41, 43, 47, 49, 50, 53, 54, 59, 61, 64, 67, 71, 73, 75, 79, 81, 83, 89, 97, 98, 101, 103, 107, 108, 109, 113, 121, 125, 127, 128, 131, 137, 139, 147, 149, 151, 157, 162, 163, 167, 169
Offset: 1
The sequence of terms together with their prime indices begins:
1: {} 25: {3,3} 64: {1,1,1,1,1,1}
2: {1} 27: {2,2,2} 67: {19}
3: {2} 29: {10} 71: {20}
4: {1,1} 31: {11} 73: {21}
5: {3} 32: {1,1,1,1,1} 75: {2,3,3}
7: {4} 37: {12} 79: {22}
8: {1,1,1} 41: {13} 81: {2,2,2,2}
9: {2,2} 43: {14} 83: {23}
11: {5} 47: {15} 89: {24}
13: {6} 49: {4,4} 97: {25}
16: {1,1,1,1} 50: {1,3,3} 98: {1,4,4}
17: {7} 53: {16} 101: {26}
18: {1,2,2} 54: {1,2,2,2} 103: {27}
19: {8} 59: {17} 107: {28}
23: {9} 61: {18} 108: {1,1,2,2,2}
These are the Heinz numbers of the partitions counted by
A100471.
Partitions with strictly decreasing run-lengths are
A100881.
Partitions with weakly decreasing run-lengths are
A100882.
Partitions with weakly increasing run-lengths are
A100883.
The weakly decreasing version is
A242031.
The weakly increasing version is
A304678.
The strictly decreasing version is
A304686.
Compositions with strictly increasing or decreasing run-lengths are
A333191.
A128422
Projective plane crossing number of K_{4,n}.
Original entry on oeis.org
0, 0, 0, 2, 4, 6, 10, 14, 18, 24, 30, 36, 44, 52, 60, 70, 80, 90, 102, 114, 126, 140, 154, 168, 184, 200, 216, 234, 252, 270, 290, 310, 330, 352, 374, 396, 420, 444, 468, 494, 520, 546, 574, 602, 630, 660, 690, 720, 752, 784, 816, 850, 884, 918, 954, 990, 1026
Offset: 1
A337482 counts these compositions of any length.
A337484 is the non-strict/non-strict version.
A225620 ranks weakly increasing compositions.
A333149 counts neither increasing nor decreasing strict compositions.
A333256 ranks strictly decreasing compositions.
A337483 counts 3-part weakly increasing or weakly decreasing compositions.
Cf.
A000217,
A001399,
A001840,
A059204,
A072705,
A115981,
A329398,
A332578,
A332831,
A332833,
A332834,
A332874,
A333147,
A333190.
-
Table[Floor[((n - 2)^2 + (n - 2))/3], {n, 1, 100}] (* Vladimir Joseph Stephan Orlovsky, Jan 31 2012 *)
Table[Ceiling[n^2/3] - n, {n, 20}] (* Eric W. Weisstein, Sep 07 2018 *)
Table[(3 n^2 - 9 n + 4 - 4 Cos[2 n Pi/3])/9, {n, 20}] (* Eric W. Weisstein, Sep 07 2018 *)
LinearRecurrence[{2, -1, 1, -2, 1}, {0, 0, 0, 2, 4, 6}, 20] (* Eric W. Weisstein, Sep 07 2018 *)
CoefficientList[Series[-2 x^3/((-1 + x)^3 (1 + x + x^2)), {x, 0, 20}], x] (* Eric W. Weisstein, Sep 07 2018 *)
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n,{3}],!Less@@#&&!GreaterEqual@@#&]],{n,15}] (* Gus Wiseman, Oct 15 2020 *)
-
a(n)=(n-1)*(n-2)\3 \\ Charles R Greathouse IV, Jun 06 2013
A218004
Number of equivalence classes of compositions of n where two compositions a,b are considered equivalent if the summands of a can be permuted into the summands of b with an even number of transpositions.
Original entry on oeis.org
1, 1, 2, 4, 6, 9, 14, 19, 27, 37, 51, 67, 91, 118, 156, 202, 262, 334, 430, 543, 690, 867, 1090, 1358, 1696, 2099, 2600, 3201, 3939, 4820, 5899, 7181, 8738, 10590, 12821, 15467, 18644, 22396, 26878, 32166, 38450, 45842, 54599, 64870, 76990, 91181, 107861, 127343, 150182, 176788, 207883
Offset: 0
a(4) = 6 because the 6 classes can be represented by: 4, 3+1, 1+3, 2+2, 2+1+1, 1+1+1+1.
A332834 counts compositions not increasing nor decreasing (strict:
A333149).
Cf.
A115981,
A225620,
A332578,
A332833,
A332874,
A333150,
A333190,
A333191,
A333256,
A337483,
A337484.
-
nn=50;p=CoefficientList[Series[Product[1/(1-x^i),{i,1,nn}],{x,0,nn}],x];d= CoefficientList[Series[Sum[Product[x^i/(1-x^i),{i,1,k}],{k,0,nn}],{x,0,nn}],x];p+d-1
(* second program *)
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],Less@@#||GreaterEqual@@#&]],{n,0,15}] (* Gus Wiseman, Oct 14 2020 *)
A333147
Number of compositions of n that are either strictly increasing or strictly decreasing.
Original entry on oeis.org
1, 1, 1, 3, 3, 5, 7, 9, 11, 15, 19, 23, 29, 35, 43, 53, 63, 75, 91, 107, 127, 151, 177, 207, 243, 283, 329, 383, 443, 511, 591, 679, 779, 895, 1023, 1169, 1335, 1519, 1727, 1963, 2225, 2519, 2851, 3219, 3631, 4095, 4607, 5179, 5819, 6527, 7315, 8193, 9163
Offset: 0
The a(1) = 1 through a(9) = 15 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,1) (3,1) (2,3) (2,4) (2,5) (2,6) (2,7)
(3,2) (4,2) (3,4) (3,5) (3,6)
(4,1) (5,1) (4,3) (5,3) (4,5)
(1,2,3) (5,2) (6,2) (5,4)
(3,2,1) (6,1) (7,1) (6,3)
(1,2,4) (1,2,5) (7,2)
(4,2,1) (1,3,4) (8,1)
(4,3,1) (1,2,6)
(5,2,1) (1,3,5)
(2,3,4)
(4,3,2)
(5,3,1)
(6,2,1)
The non-strict version appears to be
A329398.
Partitions with incr. or decr. run-lengths are
A332745 (strict:
A333190).
Compositions with incr. or decr. run-lengths are
A332835 (strict:
A333191).
Cf.
A059204,
A072705,
A072707,
A115981,
A332285,
A332578,
A332746,
A332831,
A332833,
A332874,
A333150.
A333191
Number of compositions of n whose run-lengths are either strictly increasing or strictly decreasing.
Original entry on oeis.org
1, 1, 2, 2, 5, 8, 10, 18, 24, 29, 44, 60, 68, 100, 130, 148, 201, 256, 310, 396, 478, 582, 736, 898, 1068, 1301, 1594, 1902, 2288, 2750, 3262, 3910, 4638, 5510, 6538, 7686, 9069, 10670, 12560, 14728, 17170, 20090, 23462, 27292, 31710, 36878, 42704, 49430
Offset: 0
The a(1) = 1 through a(7) = 18 compositions:
(1) (2) (3) (4) (5) (6) (7)
(11) (111) (22) (113) (33) (115)
(112) (122) (114) (133)
(211) (221) (222) (223)
(1111) (311) (411) (322)
(1112) (1113) (331)
(2111) (3111) (511)
(11111) (11112) (1114)
(21111) (1222)
(111111) (2221)
(4111)
(11113)
(11122)
(22111)
(31111)
(111112)
(211111)
(1111111)
Partitions with distinct run-lengths are
A098859.
Partitions with strictly increasing run-lengths are
A100471.
Partitions with strictly decreasing run-lengths are
A100881.
Partitions with weakly decreasing run-lengths are
A100882.
Partitions with weakly increasing run-lengths are
A100883.
Compositions with equal run-lengths are
A329738.
Compositions whose run-lengths are unimodal are
A332726.
Compositions whose run-lengths are unimodal or co-unimodal are
A332746.
Compositions whose run-lengths are neither incr. nor decr. are
A332833.
Compositions that are neither increasing nor decreasing are
A332834.
Compositions with weakly increasing run-lengths are
A332836.
Compositions that are strictly incr. or strictly decr. are
A333147.
Compositions with strictly increasing run-lengths are
A333192.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],Or[Less@@Length/@Split[#],Greater@@Length/@Split[#]]&]],{n,0,15}]
A333149
Number of strict compositions of n that are neither increasing nor decreasing.
Original entry on oeis.org
0, 0, 0, 0, 0, 0, 4, 4, 8, 12, 38, 42, 72, 98, 150, 298, 372, 542, 760, 1070, 1428, 2600, 3120, 4550, 6050, 8478, 10976, 15220, 23872, 29950, 41276, 55062, 74096, 97148, 129786, 167256, 256070, 314454, 429338, 556364, 749266, 955746, 1275016, 1618054
Offset: 0
The a(6) = 4 through a(9) = 12 compositions:
(1,3,2) (1,4,2) (1,4,3) (1,5,3)
(2,1,3) (2,1,4) (1,5,2) (1,6,2)
(2,3,1) (2,4,1) (2,1,5) (2,1,6)
(3,1,2) (4,1,2) (2,5,1) (2,4,3)
(3,1,4) (2,6,1)
(3,4,1) (3,1,5)
(4,1,3) (3,2,4)
(5,1,2) (3,4,2)
(3,5,1)
(4,2,3)
(5,1,3)
(6,1,2)
The complement is counted by
A333147.
Non-unimodal strict compositions are
A072707.
Strict partitions with increasing or decreasing run-lengths are
A333190.
Strict compositions with increasing or decreasing run-lengths are
A333191.
Cf.
A059204,
A115981,
A227038,
A329398,
A332745,
A332746,
A332831,
A332833,
A332835,
A332874,
A333150,
A333192.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],UnsameQ@@#&&!Greater@@#&&!Less@@#&]],{n,0,10}]
A333192
Number of compositions of n with strictly increasing run-lengths.
Original entry on oeis.org
1, 1, 2, 2, 4, 5, 7, 10, 14, 16, 24, 31, 37, 51, 67, 76, 103, 129, 158, 199, 242, 293, 370, 450, 538, 652, 799, 953, 1147, 1376, 1635, 1956, 2322, 2757, 3271, 3845, 4539, 5336, 6282, 7366, 8589, 10046, 11735, 13647, 15858, 18442, 21354, 24716, 28630, 32985
Offset: 0
The a(1) = 1 through a(8) = 14 compositions:
(1) (2) (3) (4) (5) (6) (7) (8)
(11) (111) (22) (122) (33) (133) (44)
(211) (311) (222) (322) (233)
(1111) (2111) (411) (511) (422)
(11111) (3111) (1222) (611)
(21111) (4111) (2222)
(111111) (22111) (5111)
(31111) (11222)
(211111) (41111)
(1111111) (122111)
(221111)
(311111)
(2111111)
(11111111)
For example, the composition (1,2,2,1,1,1) has run-lengths (1,2,3), so is counted under a(8).
Strictly increasing compositions are
A000009.
Partitions with strictly increasing run-lengths are
A100471.
Partitions with strictly decreasing run-lengths are
A100881.
Compositions with equal run-lengths are
A329738.
Compositions whose run-lengths are unimodal are
A332726.
Compositions with strictly increasing or decreasing run-lengths are
A333191.
Numbers with strictly increasing prime multiplicities are
A334965.
Cf.
A072706,
A098859,
A100882,
A100883,
A304686,
A329744,
A329766,
A332726,
A332833,
A332834,
A332835,
A333147,
A333149,
A333190.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],Less@@Length/@Split[#]&]],{n,0,15}]
b[n_, lst_, v_] := b[n, lst, v] = If[n == 0, 1, If[n <= lst, 0, Sum[If[k == v, 0, b[n - k pz, pz, k]], {pz, lst + 1, n}, {k, Floor[n/pz]}]]]; a[n_] := b[n, 0, 0]; a /@ Range[0, 50] (* Giovanni Resta, May 18 2020 *)
Showing 1-7 of 7 results.
Comments