A079309
a(n) = C(1,1) + C(3,2) + C(5,3) + ... + C(2*n-1,n).
Original entry on oeis.org
1, 4, 14, 49, 175, 637, 2353, 8788, 33098, 125476, 478192, 1830270, 7030570, 27088870, 104647630, 405187825, 1571990935, 6109558585, 23782190485, 92705454895, 361834392115, 1413883873975, 5530599237775, 21654401079325, 84859704298201, 332818970772253
Offset: 1
a(4) = C(1,1) + C(3,2) + C(5,3) + C(7,4) = 1 + 3 + 10 + 35 = 49.
G.f. = x + 4*x^2 + 14*x^3 + 49*x^4 + 175*x^5 + 637*x^6 + 2353*x^7 + ...
From _Gus Wiseman_, Apr 16 2023: (Start)
The a(1) = 1 through a(3) = 14 subsets of {1..2n} with median n:
{1} {2} {3}
{1,3} {1,5}
{1,2,3} {2,4}
{1,2,4} {1,3,4}
{1,3,5}
{1,3,6}
{2,3,4}
{2,3,5}
{2,3,6}
{1,2,4,5}
{1,2,4,6}
{1,2,3,4,5}
{1,2,3,4,6}
{1,2,3,5,6}
(End)
- Vincenzo Librandi and Robert Israel, Table of n, a(n) for n = 1..1500 (terms 1..200 from Vincenzo Librandi).
- A. Denise and R. Simion, Two combinatorial statistics on Dyck paths, Discrete Math., 137, 1995, 155-176.
- Guo-Niu Han, Enumeration of Standard Puzzles, 2011. [Cached copy]
- Guo-Niu Han, Enumeration of Standard Puzzles, arXiv:2006.14070 [math.CO], 2020.
- R. Witula, Ramanujan type trigonometric formulas, Demonstratio Mathematica, Vol. XLV, No. 4 (2012), 789-796. - From _N. J. A. Sloane_, Jan 01 2013
This is the even (or odd) bisection of
A361801.
-
a := n -> add(binomial(2*j, j)/2, j=1..n): seq(a(n), n=1..24); # Zerinvary Lajos, Oct 25 2006
a := n -> add(abs(binomial(-j, -2*j)), j=1..n): seq(a(n), n=1..24); # Zerinvary Lajos, Oct 03 2007
f:= gfun:-rectoproc({n*a(n) +(-5*n+2)*a(n-1) +2*(2*n-1)*a(n-2)=0,a(1)=1,a(2)=4},a(n),remember):
map(f, [$1..100]); # Robert Israel, Jun 24 2015
-
Rest[CoefficientList[Series[(1/Sqrt[1-4*x]-1)/(1-x)/2, {x, 0, 20}], x]] (* Vaclav Kotesovec, Feb 13 2014 *)
Accumulate[Table[Binomial[2n-1,n],{n,30}]] (* Harvey P. Dale, Jan 06 2021 *)
-
{a(n) = sum(k=1, n, binomial(2*k - 1, k))}; /* Michael Somos, Feb 14 2006 */
-
my(x='x+O('x^40)); Vec((1/sqrt(1-4*x)-1)/(1-x)/2) \\ Altug Alkan, Dec 24 2015
More terms from Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Feb 11 2003
A000980
Number of ways of writing 0 as Sum_{k=-n..n} e(k)*k, where e(k) is 0 or 1.
Original entry on oeis.org
2, 4, 8, 20, 52, 152, 472, 1520, 5044, 17112, 59008, 206260, 729096, 2601640, 9358944, 33904324, 123580884, 452902072, 1667837680, 6168510256, 22903260088, 85338450344, 318995297200, 1195901750512, 4495448217544, 16940411201280, 63983233268592
Offset: 0
From _Gus Wiseman_, Apr 23 2023: (Start)
The a(0) = 2 through a(2) = 8 subsets of {-n..n} with sum 0 are:
{} {} {}
{0} {0} {0}
{-1,1} {-1,1}
{-1,0,1} {-2,2}
{-1,0,1}
{-2,0,2}
{-2,-1,1,2}
{-2,-1,0,1,2}
(End)
- L. Comtet, Advanced Combinatorics, Reidel, 1974, p. 294.
- E. R. Berlekamp, J. H. Conway and R. K. Guy, Winning Ways, Academic Press, NY, 2 vols., 1982, see pp. 715-717.
- N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
- Ray Chandler, Table of n, a(n) for n = 0..1668 (terms < 10^1000; terms 0..200 from T. D. Noe, terms 201..400 from Alois P. Heinz)
- Eunice Y. S. Chan and R. M. Corless, Narayana, Mandelbrot, and A New Kind of Companion Matrix, arXiv preprint arXiv:1606.09132 [math.CO], 2016.
- R. C. Entringer, Representation of m as Sum_{k=-n..n} epsilon_k k, Canad. Math. Bull., 11 (1968), 289-293.
- Steven R. Finch, Signum equations and extremal coefficients, February 7, 2009. [Cached copy, with permission of the author]
- J. H. van Lint, Representations of 0 as Sum_{k = -N..N} epsilon_k*k, Proc. Amer. Math. Soc., 18 (1967), 182-184.
-
a000980 n = length $ filter ((== 0) . sum) $ subsequences [-n..n]
-
b:= proc(n, i) option remember; `if`(n>i*(i+1)/2, 0,
`if`(i=0, 1, 2*b(n, i-1)+b(n+i, i-1)+b(abs(n-i), i-1)))
end:
a:=n-> 2*b(0, n):
seq(a(n), n=0..40); # Alois P. Heinz, Mar 10 2014
-
a[n_] := SeriesCoefficient[ Product[1+x^k, {k, -n, n}], {x, 0, 0}]; a[0] = 2; Table[a[n], {n, 0, 24}](* Jean-François Alcover, Nov 28 2011 *)
nmax = 26; d = {2}; a1 = {};
Do[
i = Ceiling[Length[d]/2];
AppendTo[a1, If[i > Length[d], 0, d[[i]]]];
d = PadLeft[d, Length[d] + 2 n] + PadRight[d, Length[d] + 2 n] +
2 PadLeft[PadRight[d, Length[d] + n], Length[d] + 2 n];
, {n, nmax}];
a1 (* Ray Chandler, Mar 15 2014 *)
Table[Length[Select[Subsets[Range[-n,n]],Total[#]==0&]],{n,0,5}] (* Gus Wiseman, Apr 23 2023 *)
-
a(n)=polcoeff(prod(k=-n,n,1+x^k),0)
A047653
Constant term in expansion of (1/2) * Product_{k=-n..n} (1 + x^k).
Original entry on oeis.org
1, 2, 4, 10, 26, 76, 236, 760, 2522, 8556, 29504, 103130, 364548, 1300820, 4679472, 16952162, 61790442, 226451036, 833918840, 3084255128, 11451630044, 42669225172, 159497648600, 597950875256, 2247724108772, 8470205600640, 31991616634296, 121086752349064
Offset: 0
- T. D. Noe, Alois P. Heinz and Ray Chandler, Table of n, a(n) for n = 0..1669 (terms < 10^1000, first 201 terms from T. D. Noe, next 200 terms from Alois P. Heinz)
- Ovidiu Bagdasar and Dorin Andrica, New results and conjectures on 2-partitions of multisets, 2017 7th International Conference on Modeling, Simulation, and Applied Optimization (ICMSAO).
- Dorin Andrica and Ovidiu Bagdasar, On k-partitions of multisets with equal sums, The Ramanujan J. (2021) Vol. 55, 421-435.
- R. C. Entringer, Representation of m as Sum_{k=-n..n} epsilon_k k, Canad. Math. Bull., 11 (1968), 289-293.
- Steven R. Finch, Signum equations and extremal coefficients, February 7, 2009. [Cached copy, with permission of the author]
- R. P. Stanley, Weyl groups, the hard Lefschetz theorem and the Sperner property, SIAM J. Algebraic and Discrete Methods 1 (1980), 168-184.
For median instead of mean we have
A079309(n) + 1.
A000980 counts nonempty subsets of {1..2n-1} with mean n.
-
f:=n->coeff( expand( mul((x^k+1/x^k)^2,k=1..n) ),x,0);
# second Maple program:
b:= proc(n, i) option remember; `if`(n>i*(i+1)/2, 0,
`if`(i=0, 1, 2*b(n, i-1)+b(n+i, i-1)+b(abs(n-i), i-1)))
end:
a:=n-> b(0, n):
seq(a(n), n=0..40); # Alois P. Heinz, Mar 10 2014
-
b[n_, i_] := b[n, i] = If[n>i*(i+1)/2, 0, If[i == 0, 1, 2*b[n, i-1]+b[n+i, i-1]+b[Abs[n-i], i-1]]]; a[n_] := b[0, n]; Table[a[n], {n, 0, 40}] (* Jean-François Alcover, Mar 10 2014, after Alois P. Heinz *)
nmax = 26; d = {1}; a1 = {};
Do[
i = Ceiling[Length[d]/2];
AppendTo[a1, If[i > Length[d], 0, d[[i]]]];
d = PadLeft[d, Length[d] + 2 n] + PadRight[d, Length[d] + 2 n] +
2 PadLeft[PadRight[d, Length[d] + n], Length[d] + 2 n];
, {n, nmax}];
a1 (* Ray Chandler, Mar 15 2014 *)
Table[Length[Select[Subsets[Range[2n]],Length[#]==0||Mean[#]==n&]],{n,0,6}] (* Gus Wiseman, Apr 18 2023 *)
-
a(n)=polcoeff(prod(k=-n,n,1+x^k),0)/2
-
{a(n)=sum(k=0,n*(n+1)/2,polcoeff(prod(m=1,n,1+x^m+x*O(x^k)),k)^2)} \\ Paul D. Hanna, Nov 30 2010
A362046
Number of nonempty subsets of {1..n} with mean n/2.
Original entry on oeis.org
0, 0, 1, 1, 3, 3, 9, 8, 25, 23, 75, 68, 235, 213, 759, 695, 2521, 2325, 8555, 7941, 29503, 27561, 103129, 96861, 364547, 344003, 1300819, 1232566, 4679471, 4449849, 16952161, 16171117, 61790441, 59107889, 226451035, 217157068, 833918839, 801467551, 3084255127
Offset: 0
The a(2) = 1 through a(7) = 8 subsets:
{1} {1,2} {2} {1,4} {3} {1,6}
{1,3} {2,3} {1,5} {2,5}
{1,2,3} {1,2,3,4} {2,4} {3,4}
{1,2,6} {1,2,4,7}
{1,3,5} {1,2,5,6}
{2,3,4} {1,3,4,6}
{1,2,3,6} {2,3,4,5}
{1,2,4,5} {1,2,3,4,5,6}
{1,2,3,4,5}
Including the empty set gives
A133406.
A000980 counts nonempty subsets of {1..2n-1} with mean n.
A327481 counts subsets by integer mean.
-
Table[Length[Select[Subsets[Range[n]],Mean[#]==n/2&]],{n,0,15}]
A133406
Half the number of ways of placing up to n pawns on a length n chessboard row so that the row balances at its middle.
Original entry on oeis.org
1, 1, 2, 2, 4, 4, 10, 9, 26, 24, 76, 69, 236, 214, 760, 696, 2522, 2326, 8556, 7942, 29504, 27562, 103130, 96862, 364548, 344004, 1300820, 1232567, 4679472, 4449850, 16952162, 16171118, 61790442, 59107890, 226451036, 217157069, 833918840
Offset: 1
From _Gus Wiseman_, Apr 23 2023: (Start)
The a(1) = 1 through a(8) = 9 subsets:
{} {} {} {} {} {} {} {}
{1} {1,2} {2} {1,4} {3} {1,6}
{1,3} {2,3} {1,5} {2,5}
{1,2,3} {1,2,3,4} {2,4} {3,4}
{1,2,6} {1,2,4,7}
{1,3,5} {1,2,5,6}
{2,3,4} {1,3,4,6}
{1,2,3,6} {2,3,4,5}
{1,2,4,5} {1,2,3,4,5,6}
{1,2,3,4,5}
(End)
For median instead of mean we have
A361801 + 1, the doubling of
A024718.
Not counting the empty set gives
A362046 (shifted left).
-
Table[Length[Select[Subsets[Range[n]],Length[#]==0||Mean[#]==n/2&]],{n,0,10}] (* Gus Wiseman, Apr 23 2023 *)
-
a(n) = {polcoef(prod(k=1, n, 1 + 'x^(2*k-n-1)), 0)/2} \\ Andrew Howroyd, Jan 07 2023
A047997
Triangle of numbers a(n,k) = number of balance positions when k equal weights are placed at a k-subset of the points {-n, -(n-1), ..., n-1, n} on a centrally pivoted rod.
Original entry on oeis.org
1, 1, 2, 1, 3, 5, 1, 4, 8, 12, 1, 5, 13, 24, 32, 1, 6, 18, 43, 73, 94, 1, 7, 25, 69, 141, 227, 289, 1, 8, 32, 104, 252, 480, 734, 910, 1, 9, 41, 150, 414, 920, 1656, 2430, 2934, 1, 10, 50, 207, 649, 1636, 3370, 5744, 8150, 9686, 1, 11, 61, 277, 967
Offset: 1
From _Gus Wiseman_, Apr 18 2023: (Start)
Triangle begins:
1
1 2
1 3 5
1 4 8 12
1 5 13 24 32
1 6 18 43 73 94
1 7 25 69 141 227 289
1 8 32 104 252 480 734 910
1 9 41 150 414 920 1656 2430 2934
Row n = 4 counts the following balanced subsets:
{0} {-1,1} {-1,0,1} {-3,0,1,2}
{-2,2} {-2,0,2} {-4,0,1,3}
{-3,3} {-3,0,3} {-2,-1,0,3}
{-4,4} {-3,1,2} {-2,-1,1,2}
{-4,0,4} {-3,-1,0,4}
{-4,1,3} {-3,-1,1,3}
{-2,-1,3} {-3,-2,1,4}
{-3,-1,4} {-3,-2,2,3}
{-4,-1,1,4}
{-4,-1,2,3}
{-4,-2,2,4}
{-4,-3,3,4}
(End)
Last column is a(n,n) =
A002838(n).
A327475 counts subsets with integer mean.
-
a[n_, k_] := Length[ IntegerPartitions[ n*(2k - n + 1)/2, n, Range[2k - n + 1]]]; Flatten[ Table[ a[n, k], {k, 1, 11}, {n, 1, k}]] (* Jean-François Alcover, Jan 02 2012 *)
Table[Length[Select[Subsets[Range[-n,n]],Length[#]==k&&Total[#]==0&]],{n,8},{k,n}] (* Gus Wiseman, Apr 16 2023 *)
A361802
Irregular triangle read by rows where T(n,k) is the number of k-subsets of {-n+1,...,n} with sum 0, for k = 1,...,2n-1.
Original entry on oeis.org
1, 1, 1, 1, 1, 2, 3, 2, 1, 1, 3, 6, 7, 5, 2, 1, 1, 4, 10, 16, 18, 14, 8, 3, 1, 1, 5, 15, 31, 46, 51, 43, 27, 12, 3, 1, 1, 6, 21, 53, 98, 139, 155, 134, 88, 43, 16, 4, 1, 1, 7, 28, 83, 184, 319, 441, 486, 424, 293, 161, 68, 21, 4, 1
Offset: 1
Triangle begins:
1
1 1 1
1 2 3 2 1
1 3 6 7 5 2 1
1 4 10 16 18 14 8 3 1
1 5 15 31 46 51 43 27 12 3 1
1 6 21 53 98 139 155 134 88 43 16 4 1
1 7 28 83 184 319 441 486 424 293 161 68 21 4 1
Row n = 3 counts the following subsets:
{0} {-1,1} {-1,0,1} {-2,-1,0,3} {-2,-1,0,1,2}
{-2,2} {-2,0,2} {-2,-1,1,2}
{-2,-1,3}
A067538 counts partitions with integer mean.
-
Table[Length[Select[Subsets[Range[-n+1,n],{k}],Total[#]==0&]],{n,6},{k,2n-1}]
Showing 1-7 of 7 results.
Comments