title: How to distribute n identical balls into k identical boxes having different capacities
body: <p>Suppose there are 4 boxes having capacities 10, 5, 2, 1.Please help me in finding  number of ways to distribute 16 identical balls into these four boxes. Each box can have 0 to the capacity number of the balls.</p>