A005651
Sum of multinomial coefficients (n_1+n_2+...)!/(n_1!*n_2!*...) where (n_1, n_2, ...) runs over all integer partitions of n.
Original entry on oeis.org
1, 1, 3, 10, 47, 246, 1602, 11481, 95503, 871030, 8879558, 98329551, 1191578522, 15543026747, 218668538441, 3285749117475, 52700813279423, 896697825211142, 16160442591627990, 307183340680888755, 6147451460222703502, 129125045333789172825, 2841626597871149750951
Offset: 0
For n=3, say the first three cans in the row contain red, white, and blue paint respectively. The objects can be painted r,r,r or r,r,w or r,w,b and then linearly ordered in 1 + 3 + 6 = 10 ways. - _Geoffrey Critzer_, Jun 08 2009
From _Gus Wiseman_, Sep 03 2018: (Start)
The a(3) = 10 ordered set partitions with weakly decreasing block sizes:
{{1},{2},{3}}
{{1},{3},{2}}
{{2},{1},{3}}
{{2},{3},{1}}
{{3},{1},{2}}
{{3},{2},{1}}
{{2,3},{1}}
{{1,2},{3}}
{{1,3},{2}}
{{1,2,3}}
(End)
- Abramowitz and Stegun, Handbook, p. 831, column labeled "M_1".
- L. Comtet, Advanced Combinatorics, Reidel, 1974, p. 126.
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
- Alois P. Heinz, Table of n, a(n) for n = 0..450 (first 101 terms from T. D. Noe)
- M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards, Applied Math. Series 55, Tenth Printing, 1972 [alternative scanned copy].
- M. E. Hoffman, Updown categories: Generating functions and universal covers, arXiv preprint arXiv:1207.1705 [math.CO], 2012.
- A. Knopfmacher, A. M. Odlyzko, B. Pittel, L. B. Richmond, D. Stark, G. Szekeres, and N. C. Wormald, The Asymptotic Number of Set Partitions with Unequal Block Sizes, The Electronic Journal of Combinatorics, 6 (1999), R2.
- S. Schreiber & N. J. A. Sloane, Correspondence, 1980.
Cf.
A000041,
A000110,
A000258,
A000670,
A007837,
A008277,
A008480,
A036038,
A140585,
A178682,
A212855,
A247551,
A300335,
A318762.
-
A005651b := proc(k) add( d/(d!)^(k/d),d=numtheory[divisors](k)) ; end proc:
A005651 := proc(n) option remember; local k ; if n <= 1 then 1; else (n-1)!*add(A005651b(k)*procname(n-k)/(n-k)!, k=1..n) ; end if; end proc:
seq(A005651(k), k=0..10) ; # R. J. Mathar, Jan 03 2011
# second Maple program:
b:= proc(n, i) option remember; `if`(n=0 or i=1, n!,
b(n, i-1) +binomial(n, i)*b(n-i, min(n-i, i)))
end:
a:= n-> b(n$2):
seq(a(n), n=0..25); # Alois P. Heinz, Aug 29 2015, Dec 12 2016
-
Table[Total[n!/Map[Function[n, Apply[Times, n! ]], IntegerPartitions[n]]], {n, 0, 20}] (* Geoffrey Critzer, Jun 08 2009 *)
Table[Total[Apply[Multinomial, IntegerPartitions[n], {1}]], {n, 0, 20}] (* Jean-François Alcover and Olivier Gérard, Sep 11 2014 *)
b[n_, i_, t_] := b[n, i, t] = If[t==1, 1/n!, Sum[b[n-j, j, t-1]/j!, {j, i, n/t}]]; a[n_] := If[n==0, 1, n!*b[n, 0, n]]; Table[a[n], {n, 0, 25}] (* Jean-François Alcover, Nov 20 2015, after Alois P. Heinz *)
-
a(m,n):=if n=m then 1 else sum(binomial(n,k)*a(k,n-k),k,m,(n/2))+1;
makelist(a(1,n),n,0,17); /* Vladimir Kruchinin, Sep 06 2014 */
-
a(n)=my(N=n!,s);forpart(x=n,s+=N/prod(i=1,#x,x[i]!));s \\ Charles R Greathouse IV, May 01 2015
-
{ my(n=25); Vec(serlaplace(prod(k=1, n, 1/(1-x^k/k!) + O(x*x^n)))) } \\ Andrew Howroyd, Dec 20 2017
More terms from Antonio G. Astudillo (afg_astudillo(AT)lycos.com), Mar 29 2003
A327869
Sum T(n,k) of multinomials M(n; lambda), where lambda ranges over all partitions of n into distinct parts incorporating k; triangle T(n,k), n>=0, 0<=k<=n, read by rows.
Original entry on oeis.org
1, 1, 1, 1, 0, 1, 4, 3, 3, 1, 5, 4, 0, 4, 1, 16, 5, 10, 10, 5, 1, 82, 66, 75, 60, 15, 6, 1, 169, 112, 126, 35, 140, 21, 7, 1, 541, 456, 196, 336, 280, 224, 28, 8, 1, 2272, 765, 1548, 1848, 1386, 630, 336, 36, 9, 1, 17966, 15070, 15525, 16080, 14070, 3780, 1050, 480, 45, 10, 1
Offset: 0
Triangle T(n,k) begins:
1;
1, 1;
1, 0, 1;
4, 3, 3, 1;
5, 4, 0, 4, 1;
16, 5, 10, 10, 5, 1;
82, 66, 75, 60, 15, 6, 1;
169, 112, 126, 35, 140, 21, 7, 1;
541, 456, 196, 336, 280, 224, 28, 8, 1;
2272, 765, 1548, 1848, 1386, 630, 336, 36, 9, 1;
17966, 15070, 15525, 16080, 14070, 3780, 1050, 480, 45, 10, 1;
...
-
with(combinat):
T:= (n, k)-> add(multinomial(add(i, i=l), l[], 0),
l=select(x-> nops(x)=nops({x[]}) and
(k=0 or k in x), partition(n))):
seq(seq(T(n, k), k=0..n), n=0..11);
# second Maple program:
b:= proc(n, i, k) option remember; `if`(i*(i+1)/2 n!*(b(n$2, 0)-`if`(k=0, 0, b(n$2, k))):
seq(seq(T(n, k), k=0..n), n=0..11);
-
b[n_, i_, k_] := b[n, i, k] = If[i(i+1)/2 < n, 0, If[n==0, 1, If[i<2, 0, b[n, i-1, If[i==k, 0, k]]] + If[i==k, 0, b[n-i, Min[n-i, i-1], k]/i!]]];
T[n_, k_] := n! (b[n, n, 0] - If[k == 0, 0, b[n, n, k]]);
Table[T[n, k], {n, 0, 11}, {k, 0, n}] // Flatten (* Jean-François Alcover, Apr 28 2020, from 2nd Maple program *)
A320566
Expansion of e.g.f. exp(x) * Product_{k>=1} 1/(1 - x^k/k!).
Original entry on oeis.org
1, 2, 6, 23, 110, 617, 4035, 29927, 249926, 2316317, 23674841, 264329177, 3207278255, 42011308653, 591460307157, 8905905152798, 142897741683846, 2433947385964373, 43873382718719949, 834402502632550589, 16699964488044322205, 350869837371828862607, 7721899536993122262447
Offset: 0
-
seq(coeff(series(factorial(n)*exp(x)*mul((1-x^k/factorial(k))^(-1),k=1..n),x,n+1), x, n), n = 0 .. 22); # Muniru A Asiru, Oct 15 2018
-
nmax = 22; CoefficientList[Series[Exp[x] Product[1/(1 - x^k/k!), {k, 1, nmax}], {x, 0, nmax}], x] Range[0, nmax]!
nmax = 22; CoefficientList[Series[Exp[x + Sum[Sum[x^(j k)/(k (j!)^k), {j, 1, nmax}], {k, 1, nmax}]], {x, 0, nmax}], x] Range[0, nmax]!
Table[Sum[Binomial[n, k] Total[Apply[Multinomial, IntegerPartitions[k], {1}]], {k, 0, n}], {n, 0, 22}]
A266518
Number of ordered partitions of a 2n-set with nondecreasing block sizes and maximal block size equal to n.
Original entry on oeis.org
1, 2, 18, 200, 3290, 61992, 1480248, 39402792, 1229123610, 42349478600, 1640551617848, 69364811821032, 3222214209737432, 161656803984848200, 8772238289222220600, 509677254444910662000, 31677425399312755814970, 2092539622373193784503240
Offset: 0
-
b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0,
b(n, i-1)+`if`(i>n, 0, binomial(n, i)*b(n-i, i))))
end:
a:= n-> `if`(n=0, 1, b(2*n, n)-b(2*n, n-1)):
seq(a(n), n=0..20);
-
b[n_, i_] := b[n, i] = If[n==0, 1, If[i<1, 0, b[n, i-1] + If[i>n, 0, Binomial[n, i]*b[n-i, i]]]]; a[n_] := If[n==0, 1, b[2n, n] - b[2n, n-1]]; Table[a[n], {n, 0, 20}] (* Jean-François Alcover, Feb 27 2017, translated from Maple *)
A327827
Sum of multinomials M(n; lambda), where lambda ranges over all partitions of n into parts incorporating 1.
Original entry on oeis.org
0, 1, 2, 9, 40, 235, 1476, 11214, 91848, 859527, 8710300, 97675138, 1179954612, 15490520786, 217602374458, 3280028076615, 52571985879600, 895913825750191, 16140560853800556, 307048409240931810, 6143666813617775100, 129096480664676773542, 2840750997343361802150
Offset: 0
-
b:= proc(n, i, k) option remember; `if`(n=0, 1,
`if`(i>n, 0, b(n, i+1, `if`(i=k, 0, k))+
`if`(i=k, 0, b(n-i, i, k)*binomial(n, i))))
end:
a:= n-> b(n, 1, 0)-b(n, 1$2):
seq(a(n), n=0..23);
-
b[n_, i_, k_] := b[n, i, k] = If[n == 0, 1, If[i < 2, 0, b[n, i - 1, If[i == k, 0, k]]] + If[i == k, 0, b[n - i, Min[n - i, i], k]/i!]];
T[n_, k_] := n! (b[n, n, 0] - If[k == 0, 0, b[n, n, k]]);
a[n_] := T[n, 1];
a /@ Range[0, 23] (* Jean-François Alcover, Dec 09 2020, after Alois P. Heinz *)
A327828
Sum of multinomials M(n; lambda), where lambda ranges over all partitions of n into parts incorporating 2.
Original entry on oeis.org
0, 0, 1, 3, 18, 100, 705, 5166, 44856, 413316, 4297635, 47906650, 586050828, 7669704978, 108433645502, 1632017808435, 26240224612920, 446861879976600, 8063224431751719, 153335328111105282, 3070484092409318100, 64508501542986638550, 1420061287311444508962
Offset: 0
-
b:= proc(n, i, k) option remember; `if`(n=0, 1,
`if`(i>n, 0, b(n, i+1, `if`(i=k, 0, k))+
`if`(i=k, 0, b(n-i, i, k)*binomial(n, i))))
end:
a:= n-> b(n, 1, 0)-b(n, 1, 2):
seq(a(n), n=0..23);
-
b[n_, i_, k_] := b[n, i, k] = If[n == 0, 1, If[i > n, 0, b[n, i + 1, If[i == k, 0, k]] + If[i == k, 0, b[n - i, i, k] Binomial[n, i]]]];
a[n_] := b[n, 1, 0] - b[n, 1, 2];
a /@ Range[0, 23] (* Jean-François Alcover, Dec 18 2020, after Alois P. Heinz *)
Showing 1-6 of 6 results.
Comments