Problem 499: (2017 AMC 10a, 19; 2017 AMC 12a, 14)
Alice refuses to sit next to either Bob or Carla. Derek refuses to sit next to Eric. How many ways are there for the five of them to sit in a row of $5$ chairs under these conditions?
$\textbf{(A)}\ 12 \qquad \textbf{(B)}\ 16 \qquad\textbf{(C)}\ 28 \qquad\textbf{(D)}\ 32 \qquad\textbf{(E)}\ 40$
- Casework on Alice's chair (chairs $1$–$5$).
- Alice at an end ($2$ ways): her neighbor is Derek or Eric ($2$ ways); say Derek. Then Eric is not in the chair next to Derek ($2$ choices of chair), and Bob and Carla fill the rest ($2$ ways): $2\cdot2\cdot2\cdot2=16$.
- Alice in chair $2$ or $4$: her two neighbors are Derek and Eric ($2$ ways), who are then not adjacent, and Bob and Carla take the remaining two chairs ($2$ ways): $2\cdot2\cdot2=8$.
- Alice in the middle: Derek and Eric on either side ($2$ ways), Bob and Carla at the ends ($2$ ways): $4$.
- Total: $16+8+4=28$.
- The answer is (C).
Five people sit in a row of $5$ chairs. Alice refuses to sit next to Bob, and Carla refuses to sit next to Derek. How many seating arrangements are possible?