Placement AptitudeVery hardProduct company OA · CAT level

Six desks numbered 1 to 6 stand in a circle, and student i normally sits at desk i. After a break the six students sit down again, one per desk, so that nobody sits at their own desk or at the next desk clockwise (desk i + 1, with desk 1 following desk 6). How many seatings are possible?

  1. A. 265
  2. B. 96
  3. C. 80
  4. D. 120

Correct answer: C. 80

The 12 forbidden (student, desk) pairs form a single cycle in which neighbouring pairs clash (share a student or a desk). The number of ways to choose k non-clashing forbidden pairs from a 12-cycle is 12/(12 − k) × C(12 − k, k): 1, 12, 54, 112, 105, 36, 2. Inclusion–exclusion: 720 − 12·120 + 54·24 − 112·6 + 105·2 − 36·1 + 2·1 = 80. 265 is the derangement count, which only bans the own desk.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic