Quoto

Learn / Library / Combinatorics

Mixed-up name cards

CombinatoricsHard

guests each have a personal seat among numbered seats, and every guest takes exactly one seat, all different. How many seatings have exactly guests in their own personal seats?

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

Choose who sits correctly, then count the seatings of the rest where nobody sits correctly.

Solution
  1. Choose the guests who sit correctly in ways.
  2. The other guests must all sit in wrong seats, which is the number of derangements of objects.
  3. That number is .
  4. Multiplying gives .
  5. Hence the number of seatings is .

Answer: