1

Im learning combinatorics, and I came across a question I couldn't find the answer to:

I have $n$ identical balls and $k$ different cells, I want to find the number of ways to arrange the balls with the condition that each cell can have at most $x$ balls where $0\le x<n$.

Without the condition it is just arranging of $n$ balls into $k$ cells and the solution is just $\binom{n+k-1}{k}$

Can someone explain to me how we can add the condition and find the number of permutations.

Thanks

David
  • 270

0 Answers0