login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A000478 Number of ways of placing n labeled balls into 3 indistinguishable boxes with at least 2 balls in each box.
(Formerly M4978 N2138)
9

%I M4978 N2138 #68 Jun 03 2022 19:04:10

%S 15,105,490,1918,6825,22935,74316,235092,731731,2252341,6879678,

%T 20900922,63259533,190957923,575363776,1731333808,5205011031,

%U 15638101281,46962537810,140988276150,423174543025,1269959836015,3810785476980,11434235478348,34306598748315,102927849307725

%N Number of ways of placing n labeled balls into 3 indistinguishable boxes with at least 2 balls in each box.

%C Associated Stirling numbers.

%D L. Comtet, Advanced Combinatorics, Reidel, 1974, p. 222.

%D F. N. David and D. E. Barton, Combinatorial Chance. Hafner, NY, 1962, p. 296.

%D J. Riordan, An Introduction to Combinatorial Analysis, Wiley, 1958, p. 76.

%D N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).

%D N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

%H T. D. Noe, <a href="/A000478/b000478.txt">Table of n, a(n) for n=6..200</a>

%H Daniel J. Bernstein, Andreas Hülsing, <a href="https://sphincs.org/data/dspr-20190513.pdf">Decisional second-preimage resistance: When does SPR imply PRE?</a>, (2019).

%H Simon Plouffe, <a href="https://arxiv.org/abs/0911.4975">Approximations de séries génératrices et quelques conjectures</a>, Dissertation, Université du Québec à Montréal, 1992; arXiv:0911.4975 [math.NT], 2009.

%H Simon Plouffe, <a href="/A000051/a000051_2.pdf">1031 Generating Functions</a>, Appendix to Thesis, Montreal, 1992.

%H Erik Vigren and Andreas Dieckmann, <a href="https://doi.org/10.3390/sym14061090">A New Result in Form of Finite Triple Sums for a Series from Ramanujan's Notebooks</a>, Symmetry (2022) Vol. 14, No. 6, 1090.

%H <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (10,-40,82,-91,52,-12).

%F E.g.f.: ((exp(x) - 1 - x)^3)/3!.

%F G.f.: x^6*(12*x^3 - 40*x^2 + 45*x - 15)/((1 - x)^3*(1 - 2*x)^2*(3*x - 1)). - _Simon Plouffe_ in his 1992 dissertation

%F a(n) = (1+n+n^2)/2 - (1/2 + n/4)*2^n + 3^n/6. - Michael Steyer (m.steyer(AT)osram.de), Jan 09 2005

%F a(n) = 10*a(n-1) - 40*a(n-2) + 82*a(n-3) - 91*a(n-4) + 52*a(n-5) - 12*a(n-6), n > 11. - _Harvey P. Dale_ based on Michael Steyer's formula, Jul 17 2011

%F a(n) = 3*a(n-1) + (2^(n-3)-n+1)*(n-1), a(n)=0, n < 6. - _Vladimir Kruchinin_, Oct 04 2018

%e a(6) = 6!/(2!*2!*2!*3!) = 15.

%t Table[(1+n+n^2)/2-(1/2+n/4)*2^n+3^n/6,{n,6,30}] (* or *) LinearRecurrence[ {10,-40,82,-91,52,-12},{15,105,490,1918,6825,22935},25] (* _Harvey P. Dale_, Jul 17 2011 *)

%t offset = 6; terms = 26; egf = (Exp[x]-1-x)^3/3!; Drop[CoefficientList[egf + O[x]^(terms+offset), x]*Range[0, terms+offset-1]!, offset] (* _Jean-François Alcover_, May 07 2017 *)

%o (PARI) Vec(x^6*(12*x^3-40*x^2+45*x-15)/((1-x)^3*(1-2*x)^2*(3*x-1))+O(x^66)) /* _Joerg Arndt_, Apr 10 2013 */

%o (Python) # based on _Vladimir Kruchinin_'s formula

%o def A000478():

%o a = 15; n = 7; z = 4; s = 15;

%o while True:

%o yield a

%o z = 2*z; s += n*(z-2) + 3; a = 3*a + s; n += 1

%o a = A000478(); print([next(a) for _ in range(6, 32)]) # _Peter Luschny_, Oct 04 2018

%Y Cf. A000247 (2 boxes), A058844 (4 boxes).

%K nonn,easy,nice

%O 6,1

%A _N. J. A. Sloane_

%E Additional comments from _Michael Steyer_, Dec 02 2000

%E More terms from _James A. Sellers_, Dec 06 2000

%E More terms from _Joerg Arndt_, Apr 10 2013

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 23:26 EDT 2024. Contains 371917 sequences. (Running on oeis4.)