(Introduction to Probability, Blitzstein and Nwang, p. 39)
There are 15 chocolate bars and 10 children. In how many ways can the chocolate bars be distributed to the children, in each of the following scenarios?
(a) The chocolate bars are fungible (interchangeable).
(b) The chocolate bars are fungible, and each child must receive at least one. Hint: First give each child a chocolate bar, and then decide what to do with the rest.
(c) The chocolate bars are not fungible (it matters which particular bar goes where).
(d) The chocolate bars are not fungible, and each child must receive at least one. Hint: The strategy suggested in (b) does not apply. Instead, consider randomly giving the chocolate bars to the children, and apply inclusion-exclusion.
My solutions:
a) I'm imagining for each chocolate bar to randomly sample from the children with replacement, with order not mattering. This would yield $\binom{10+15-1}{15}$ possibilities.
b) Now I first choose one chocolate bar for each child, and then I do the same as in a) with the remaining 5 bar, so I get $\binom{15}{10} \binom{10+5-1}{5}$ possibilities.
EDIT I'm ignoring here that the bars are exchangeable, so it should be only $\binom{10+5-1}{5}$. Or said differently, there is only one way to give a bar to each child.
c) I think this is sampling with replacement where order matters, so $10^{15}$ possible sequences.
d)
\begin{align} \Omega &:= \lbrace s|s \text{ is a 15 digit number with digits form [1-10]}\rbrace \\ A_i &:=\lbrace s \in \Omega | s \text{ contains at least (one or more) i's} \rbrace \\ \neg A_i &= \Omega \setminus A_i \\ |\Omega| &= 10^{15} \\ |\neg A_i| &= 9^{15} \\ |\neg A_i \cap \neg A_j| &= 8^{15} \\ \text{etc.} \end{align}
\begin{equation} \text{Possibilities that each childs gets at least one bar} = \sum_{i=0}^{i=10} \binom{10}{i} (10-i)^{15} (-1)^i \end{equation}
Are those results correct? I'm not quite sure about a) and b), since I think the number of possibilities in b) should be less than in a).