Quoto

Learn / Library / Combinatorics

Keeping people apart

CombinatoricsMedium

distinct people sit in a row of chairs. specific people must not sit next to each other. How many seating orders are possible?

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Subtract the bad seatings from all seatings.

Solution
  1. Without any restriction there are seatings.
  2. To count the bad seatings, glue the specific people into one block, which leaves units.
  3. The units can be ordered in ways and the pair can swap in ways, so there are bad seatings.
  4. Subtracting gives .
  5. Hence the number of valid seatings is .

Answer: