Possible Duplicate:
How can I determine the number of unique hands of size H for a given deck of cards?
There are n chocolates and k students. How many ways can it be distributed so that each student receives no more than m chocolates?
Assume that m<=n