My nephew was at a birthday party this weekend where there was a Piñata. When he came back, he was telling me which of the guests were able to collect more candies, and which of the guests were able to collect fewer candies.
After talking to him, I started wondering about the following question:
If there are $m$ candies and $n$ guests - how many different ways can these candies be divided amongst these guests? Let's assume that it's possible that some guests get $0$ candies and that candies are discrete.
How many ways can these candies be distributed if some constraints are applied? (e.g. each guest must have at least one candy and no guest can have more than $3$ candies)
I tried to research this on the internet (e.g. Number of draws before you see all candies? ), and for the first question, I think this formula might work:
$$\binom{n-1}{m+n-1} = \frac{(n-1)!}{m!(n-1-m)!} = \frac{(m+n-1)!}{m!(n-1)!}$$
However, I am not sure how to solve the second question.
Can someone please show me how to do this?
Thanks!