A007997 a(n) = ceiling((n-3)(n-4)/6).
0, 0, 1, 1, 2, 4, 5, 7, 10, 12, 15, 19, 22, 26, 31, 35, 40, 46, 51, 57, 64, 70, 77, 85, 92, 100, 109, 117, 126, 136, 145, 155, 166, 176, 187, 199, 210, 222, 235, 247, 260, 274, 287, 301, 316, 330, 345, 361, 376, 392, 409, 425, 442, 460, 477, 495, 514, 532, 551, 571, 590, 610
Offset: 3
A334965 Numbers with strictly increasing prime multiplicities.
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
Keywords
Comments
First differs from A329131 in lacking 150.
Also numbers whose unsorted prime signature is strictly increasing.
Examples
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}
Crossrefs
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.
Programs
-
Mathematica
Select[Range[100],Less@@Last/@FactorInteger[#]&]
A128422 Projective plane crossing number of K_{4,n}.
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
Comments
From Gus Wiseman, Oct 15 2020: (Start)
Also the number of 3-part compositions of n that are neither strictly increasing nor weakly decreasing. The set of numbers k such that row k of A066099 is such a composition is the complement of A333255 (strictly increasing) and A114994 (weakly decreasing) in A014311 (triples). The a(4) = 2 through a(9) = 14 compositions are:
(1,1,2) (1,1,3) (1,1,4) (1,1,5) (1,1,6) (1,1,7)
(1,2,1) (1,2,2) (1,3,2) (1,3,3) (1,4,3) (1,4,4)
(1,3,1) (1,4,1) (1,4,2) (1,5,2) (1,5,3)
(2,1,2) (2,1,3) (1,5,1) (1,6,1) (1,6,2)
(2,3,1) (2,1,4) (2,1,5) (1,7,1)
(3,1,2) (2,2,3) (2,2,4) (2,1,6)
(2,3,2) (2,3,3) (2,2,5)
(2,4,1) (2,4,2) (2,4,3)
(3,1,3) (2,5,1) (2,5,2)
(4,1,2) (3,1,4) (2,6,1)
(3,2,3) (3,1,5)
(3,4,1) (3,2,4)
(4,1,3) (3,4,2)
(5,1,2) (3,5,1)
(4,1,4)
(4,2,3)
(5,1,3)
(6,1,2)
(End)
Links
- Eric Weisstein's World of Mathematics, Complete Bipartite Graph
- Eric Weisstein's World of Mathematics, Projective Plane Crossing Number
- Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-2,1).
Crossrefs
A007997 counts the complement.
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.
Programs
-
Mathematica
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 *)
-
PARI
a(n)=(n-1)*(n-2)\3 \\ Charles R Greathouse IV, Jun 06 2013
Formula
a(n) = floor(n/3)*(2n-3(floor(n/3)+1)).
a(n) = ceiling(n^2/3) - n. - Charles R Greathouse IV, Jun 06 2013
G.f.: -2*x^4 / ((x-1)^3*(x^2+x+1)). - Colin Barker, Jun 06 2013
a(n) = floor((n - 1)(n - 2) / 3). - Christopher Hunt Gribble, Oct 13 2009
a(n) = 2*A001840(n-3). - R. J. Mathar, Jul 21 2015
Sum_{n>=4} 1/a(n) = 10/3 - Pi/sqrt(3). - Amiram Eldar, Sep 27 2022
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.
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
Keywords
Comments
a(n) = A000041(n) + A000009(n) - 1 where A000041 is the partition numbers and A000009 is the number of partitions into distinct parts.
From Gus Wiseman, Oct 14 2020: (Start)
Also the number of compositions of n that are either strictly increasing or weakly decreasing. For example, the a(1) = 1 through a(6) = 14 compositions are:
(1) (2) (3) (4) (5) (6)
(11) (12) (13) (14) (15)
(21) (22) (23) (24)
(111) (31) (32) (33)
(211) (41) (42)
(1111) (221) (51)
(311) (123)
(2111) (222)
(11111) (321)
(411)
(2211)
(3111)
(21111)
(111111)
A007997 counts only compositions of length 3.
A329398 appears to be the weakly increasing version.
A333147 is the strictly decreasing version.
A337482 counts the complement.
(End)
Examples
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.
Crossrefs
Programs
-
Mathematica
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 *)
A333191 Number of compositions of n whose run-lengths are either strictly increasing or strictly decreasing.
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
Keywords
Comments
A composition of n is a finite sequence of positive integers summing to n.
Examples
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)
Links
- Giovanni Resta, Table of n, a(n) for n = 0..1000
Crossrefs
The non-strict version is A332835.
The case of partitions is A333190.
Unimodal compositions are A001523.
Strict compositions are A032020.
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.
Programs
-
Mathematica
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],Or[Less@@Length/@Split[#],Greater@@Length/@Split[#]]&]],{n,0,15}]
Extensions
Terms a(26) and beyond from Giovanni Resta, May 19 2020
A333149 Number of strict compositions of n that are neither increasing nor decreasing.
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
Keywords
Comments
A composition of n is a finite sequence of positive integers summing to n. It is strict if there are no repeated parts.
Examples
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)
Links
- Eric Weisstein's World of Mathematics, Unimodal Sequence
Crossrefs
The non-strict case is A332834.
The complement is counted by A333147.
Strict partitions are A000009.
Strict compositions are A032020.
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.
Programs
-
Mathematica
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],UnsameQ@@#&&!Greater@@#&&!Less@@#&]],{n,0,10}]
A333190 Number of integer partitions of n whose run-lengths are either strictly increasing or strictly decreasing.
1, 1, 2, 2, 4, 5, 7, 10, 13, 15, 21, 26, 29, 39, 49, 50, 68, 80, 92, 109, 129, 142, 181, 201, 227, 262, 317, 343, 404, 456, 516, 589, 677, 742, 870, 949, 1077, 1207, 1385, 1510, 1704, 1895, 2123, 2352, 2649, 2877, 3261, 3571, 3966, 4363, 4873, 5300, 5914, 6466
Offset: 0
Keywords
Examples
The a(1) = 1 through a(8) = 13 partitions: (1) (2) (3) (4) (5) (6) (7) (8) (11) (111) (22) (221) (33) (322) (44) (211) (311) (222) (331) (332) (1111) (2111) (411) (511) (422) (11111) (3111) (2221) (611) (21111) (4111) (2222) (111111) (22111) (5111) (31111) (22211) (211111) (41111) (1111111) (221111) (311111) (2111111) (11111111)
Crossrefs
The non-strict version is A332745.
The generalization to compositions is A333191.
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.
Partitions with unimodal run-lengths are A332280.
Partitions whose run-lengths are not increasing nor decreasing are A332641.
Compositions whose run-lengths are unimodal or co-unimodal are A332746.
Compositions that are neither increasing nor decreasing are A332834.
Strictly increasing or strictly decreasing compositions are A333147.
Compositions with strictly increasing run-lengths are A333192.
Numbers with strictly increasing prime multiplicities are A334965.
Programs
-
Mathematica
Table[Length[Select[IntegerPartitions[n],Or[Less@@Length/@Split[#],Greater@@Length/@Split[#]]&]],{n,0,30}]
A333192 Number of compositions of n with strictly increasing run-lengths.
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
Keywords
Comments
A composition of n is a finite sequence of positive integers summing to n.
Examples
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).
Links
- Giovanni Resta, Table of n, a(n) for n = 0..1000
Crossrefs
The case of partitions is A100471.
The non-strict version is A332836.
Strictly increasing compositions are A000009.
Unimodal compositions are A001523.
Strict compositions are A032020.
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.
Programs
-
Mathematica
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 *)
Extensions
Terms a(26) and beyond from Giovanni Resta, May 18 2020
Comments
Examples
References
Links
Crossrefs
Programs
Haskell
Maple
Mathematica
PARI
Formula