Mathwords logoMathwords

Ménage Problem — Definition, Formula & Example

The ménage problem is a classic counting puzzle. It asks how many ways n married couples can sit around a round table so that men and women alternate and nobody sits next to their own partner.

Place 2n labeled chairs in a circle and seat n men and n women in alternating chairs. Let MnM_n be the number of seatings in which no man is adjacent to his partner. Once the women are seated, the number of valid ways to seat the men is the ménage number AnA_n. It equals the number of permutations σ\sigma of {1,…,n}\{1,\dots,n\} with σ(i)≢i\sigma(i) \not\equiv i and σ(i)≢i+1(modn)\sigma(i) \not\equiv i+1 \pmod n for every ii. Then Mn=2⋅n!⋅AnM_n = 2\cdot n!\cdot A_n.

Key Formula

An=∑k=0n(−1)k2n2n−k(2n−kk)(n−k)!,Mn=2⋅n!⋅AnA_n = \sum_{k=0}^{n} (-1)^k \frac{2n}{2n-k}\binom{2n-k}{k}(n-k)!, \qquad M_n = 2\cdot n!\cdot A_n
Where:
  • nn = Number of couples (n≥2n \ge 2)
  • AnA_n = Ménage number: valid ways to seat the men once the women are fixed
  • kk = Number of forbidden adjacencies forced in the inclusion-exclusion count
  • MnM_n = Total valid seatings with labeled chairs

Worked Example

Problem: Four couples sit at a round table with 8 labeled chairs. Men and women must alternate, and no one may sit next to their partner. How many seatings are possible?
Step 1: Seat the women first. Choose which set of alternating chairs they use (2 choices). Then arrange the 4 women in those chairs.
2⋅4!=2⋅24=482 \cdot 4! = 2 \cdot 24 = 48
Step 2: Count the ways to seat the men using Touchard's formula with n = 4, so 2n = 8. The terms for k = 0 through 4 are 24, 48, 40, 16 and 2, with alternating signs.
A4=24−48+40−16+2=2A_4 = 24 - 48 + 40 - 16 + 2 = 2
Step 3: Multiply the two counts.
M4=48⋅2=96M_4 = 48 \cdot 2 = 96
Answer: There are 96 valid seatings with labeled chairs. If rotations of the table count as the same seating, divide by 8 to get 12.

Why It Matters

Édouard Lucas posed the problem in 1891, and Jacques Touchard found the closed formula in 1934. It is a standard exercise in undergraduate combinatorics courses on inclusion-exclusion and rook polynomials. It shows how to count permutations when each element has two forbidden positions instead of one.

Common Mistakes

Mistake: Treating the men's placement as a derangement and using !n!n (for n = 4, that gives !4=9!4 = 9).
Correction: A derangement forbids one position per person. Here each man is barred from two chairs, one on each side of his partner. That stricter condition gives A4=2A_4 = 2, not 9.

Related Terms