In how many ways can $n$ identical balls be distributed amongst $m$ different boxes given that a box can have any number of balls(from $0$ to $n$)?
What I've tried is using multinomial theorem to find the answer but that becomes a tedious task, here's what I made up:
For a given box, the can possibly be $0,1,2,3...(n-1),n$ balls.
Writing it in the form: $(x^0 + x^1 + x^2 + x^3 ... + x^{\text n-1} + x^n)$ Since there a $m$ boxes which such possibilities so they can multiplied and written as: $(x^0 + x^1 + x^2 + x^3 ... + x^{\text n-1} + x^n)^m$ And since in total there are $n$ balls, therefore we can find the coefficient of $x^n$ in the given product.
But that becomes a lengthy process for bigger values of $m$ and $n$, and I'm unable to generalize it.
http://math.stackexchange.com/questions/618491/distribute-n-identical-objects-into-r-distinct-groups
– spectraa Sep 17 '14 at 07:46