Question
10 chairs have been arranged in a row. 7 students are to be seated in 7 of them so that no two students share a common chair. Find the number of ways this can be done if no two empty chairs are adjacent.
What I tried
At first 5 students out of 7 could be seated in $\binom{7}{5}$ ways such that alternate chairs are empty. Now, 5 remaining chairs could be filled up in $\binom{5}{2}$ ways.Now, all 7 students could permits in $7!$ ways.
$\therefore$Total number of ways=$\binom{7}{5}\cdot\binom{5}{2}\cdot7!$
But, The given answer is $7!\cdot\binom{8}{3}$
Please indicate my mistake or please post a solution if I am thinking entirely wrong.
Here is one way to think about this:
Forget about the $7$ chairs the students are sitting on.
Once you line up the $7$ students (which can be done in $7!$ ways), then you need to place 3 empty chairs among them, where those chairs can be between, left, or right of those 7 students (so there are $8$ positions for a chair), and you cannot have two empty chairs in the 'same' of those $8$ positions ... so you need to pick $3$ out of $8$ possible positions for the empty chairs, which can be done in $8 \choose 3$ ways. (so the latter part is a 'stars and bars' problem with $7$ stars and $3$ bars where the bars cannot be next to each other but can be at the ends).
Total:
$$7!\cdot {8 \choose 3}$$