GATE Computer ScienceVery hardGATE CS (PYQ pattern)

Five married couples sit at a round table with 10 seats, alternating man, woman, with the five men's seats already fixed. In how many ways can the women be seated so that no wife sits next to her husband?

  1. A. 13
  2. B. 44
  3. C. 12
  4. D. 24

Correct answer: A. 13

Label the woman-seats so seat i lies between men i and i+1; wife i may not use seats i − 1 or i. This is the ménage problem: Σ (−1)ᵏ · 2n/(2n−k) · C(2n−k, k) · (n−k)! with n = 5 gives 120 − 240 + 210 − 100 + 25 − 2 = 13 (44 would be a plain derangement count).

More Discrete Mathematics questions

Exams that ask this topic