In how many ways can one distribute ten distinct pizzas among four students with exactly two students getting nothing? How many ways have at least two students getting nothing?
For the first part I tried to solve it as
$$x1+x2 = 10 \text{, } xi \ge 1$$ Which would give $$ x1+x2 = 8, \text{ } xi \ge0$$
Then I computed $$9\choose 8$$ multiplied by 6.
Why is this wrong? I seen the answer and they are doing something alone the lines of $$ (2^{10} - 2) * 6$$
This relationship is not clear to me, can anyone explain?
Here is one way to obtain this count:
First, choose which students will receive nothing. This can be done in $\binom{4}{2}$ ways.
Second, choose how to distribute the 10 distinct pizzas to the remaining 2 distinct students. For each pizza, you have a 2 choices of which student will receive it. In total, the distribution can take place in $2^{10}$ ways. This is almost correct, but two of these distributions are illegal, namely the one in which student A gets all the pizzas or the one in which student B gets all the pizzas. So there are actually $2^{10} - 2$ legal distributions.
Taken together, we get $\binom{4}{2} \cdot (2^{10} - 2) = 6(2^{10} - 2)$ legal ways to distribute the pizzas under your constraints.