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?
- A. 13
- B. 44
- C. 12
- 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
- How many distinct bracelets of 6 beads use exactly two beads of each of 3 colours (rotations and reflections count as the same)?
- The six faces of a cube are coloured so that each of 3 given colours appears on exactly two faces. How many colourings are distinct up to…
- A lattice path from (0, 0) to (7, 7) uses unit steps right (R) and up (U) and never goes above the line y = x. How many such paths avoid…
- A convex 10-gon has vertices labelled 0, …, 9. How many triangulations of it (by non-crossing diagonals) contain the diagonal joining…
- Five fair six-faced dice are rolled. In how many of the 7776 ordered outcomes is the sum exactly 20 AND all five faces different?
- How many partitions of 20 (as an unordered sum of positive integers) have the property that no part appears more than twice?