Given 10 distinguishable balls and 5 distinguishable boxes (such that the boxes can be numbered 1 through 5):
How many ways are there to distribute the balls so that all the balls are strictly in the boxes in the set {1,2,3}?
Likewise, how many ways can the balls be distributed to boxes 1 through 3 such that no single box in this set remains empty.
What is very confusing here is that there are 5 distinguishable boxes in total, and the question strictly asks about three. Given 10 balls, I have no clue how to approach this.
The first question is the same as distributing 10 different balls in 3 different boxes, which is $3^{10}$.
For the second question, if no single box in this set is empty, then by the principle of inclusion and exclusion, we have $$N = 3^{10} - \binom{3}{1}2^{10} + \binom{3}{2}$$ Where the first term is the number of ways of distributing balls subject to no constraints, the second term is the number of ways of distributing such that atleast one box is empty and third term is number of ways of distributing such that two boxes are empty.