[Math] Number of seating arrangements in 5 cars

combinatoricspermutations

An exercise from Introductory Combinatorics by Richard A.Brualdi:

A roller coaster has five cars, each containing four seats, two in front and two
in back. There are 20 people ready for a ride. In how many ways can the ride
begin? What if a certain two people want to sit in different cars?

Since we can assume the $5$ cars to be distinguishable,the number of ways to place people inside cars is simply $\dfrac{20!}{(4!)^5}$. But for each of these combinations,we need to choose who takes the front seats and who takes the back seats.The number of ways to do that is simply $\dbinom{4}{2}$.Also,we need to find the number of permutations of the people in each car(after choosing who will sit in the front),which is $2!2!$.Therefore the number of ways to begin the ride is just $$\dfrac{20!}{(4!)^5}\dbinom{4}{2}2!2!$$ I am not worried about the second part of the question because we can possibly use complementary counting for that.But is the answer to the first question right?I ask because it all seems very confusing whether I should multiply by $\dbinom{4}{2}$ or $\dbinom{4}{2}^5$ by considering each of the cases.Also,are there less confusing ways of approaching this problem?Any suggestion or hint will be greatly appreciated.

Best Answer

Your introduction of the factor ${4\choose2}2!2!$ specifies who sits where in only one car. You need to raise that factor to the fifth power, to account for all five cars.

Note, though, that ${4\choose2}2!2!={4!\over2!2!}2!2!=4!$, so the fifth power will entirely cancel the $(4!)^5$ in the $20!\over(4!)^5$, leaving just $20!$. This makes sense: If it matter exactly where people sit in the cars, then the number of arrangements amounts to assigning a different seat to each of the $20$ people, which is just $20!$.

Added in response to OP's comment: As to the second part, one way, as you note, is to count the number of ways to have the two people sit in the case car, which is $20\cdot3\cdot18!$, and subtract from $20!$. But another way is to have those two people -- let's call them Bob and Ted -- be the first two to take seats. If we seat Bob first, he has $20$ choices, but then Ted has just $16$. After that, it's $18\cdot17\cdots2\cdot1=18!$ ways to seat everyone else, for a total of $20\cdot16\cdot18!$ different seatings with Bob and Ted in different cars.

Note, this generalizes easily to more people who don't want to sit in the same car, say Bob and Carol and Ted and Alice: $20\cdot16\cdot12\cdot8\cdot16!$, whereas the subtraction approach gets messy.

Added yet later: There's one more approach that's worth mentioning. Have Ted be the very last person to sit. It's easy to see that Bob and the others have $20\cdot19\cdots3\cdot2=20!$ ways of sitting. No matter where Bob sits, the proability that the empty seat is in another car is $16\over19$, so the number of ways to keep Bob and Ted apart is

$${16\over19}\cdot20!=16\cdot20\cdot18!$$