There are 3 rooms in a hostel: a quadruple, a triple and a double one. The hostel is empty when 6 people arrive and fill the rooms randomly. What is the chance that a room stays empty?
I counted it this way: $$P(A) = 1-\frac{{6 \choose 2} \cdot \left({4 \choose 3} + {4 \choose 2} + {4 \choose 1}\right) + {6 \choose 1} \cdot \left({5 \choose 3} + {5 \choose 2} + {5 \choose 1}\right)}{3^6}$$
but my coursebook has a different solution: $$P(A) = \frac{7 \cdot 6! + 6!}{{9 \choose 6}*6!}$$
Why is my answer different?
The only way a room will stay empty is that all the people stay in the quadruple and triple rooms, or all people stay in quadruple and double rooms. So what are the possible combinations to store six people in seven (the sum of beds inside the quadruple and triple rooms) beds? (Case 1)
${{7}\choose{6}}=7$
Indeed what are the possible combinations to store six people in six (the sum of beds inside the quadruple and double rooms) beds? (Case 2)
${{6}\choose{6}}=1$
Now we have to compare those combinations with the total number of combinations in which six people can be stored in nine beds:${9}\choose{6}$
Now simply doing favorable cases over possible cases we get
$\frac{{{7}\choose{6}}+{{6}\choose{6}}}{{9}\choose{6}}=\frac{7+1}{{9}\choose{6}}$
I really don't know why your book is considering the order of possible combinations. If you consider the order you have to add the possible way to order six items: $6!$.
So your book multiplies combinations of case 1, those of case 2 and total combinations for $6!$. If you do that you get:
$\frac{7*6!+6!}{{{9}\choose{6}}*6!}$
but as you can see, you can easily semplify $6!$ in the fraction, the result will be the same.