Learn / Library / Combinatorics
Nobody sits adjacent
A row has chairs. distinct people sit in different chairs so that no of them occupy neighbouring chairs. How many seatings are possible?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
First choose which chairs are used, by placing the empty chairs and inserting people into the gaps.
Solution
- Line up the empty chairs, which create gaps where a person may sit, with at most one person per gap.
- Choosing gaps gives sets of chairs with no neighbours.
- The distinct people can be assigned to the chosen chairs in ways.
- Multiplying gives .
- Hence the number of seatings is .
Answer: