Ménage Number Calculator

No-adjacent-spouse seatings

CalculatorsFreeNo Signup
4.8(141 reviews)
All Tools

Loading tool...

About Ménage Number Calculator

A ménage number calculator computing the problème des ménages: seat n married couples around a circular table alternating gender so no spouse is adjacent. Ménage number M_n via inclusion-exclusion. M_3=12, M_4=96. Related to discordant permutations. Client-side.

Ménage Number Calculator Features

  • M_n value
  • Formula
  • Sequence
  • Inclusion-exclusion
  • Discordant perms
Ménage numbers: seat n couples around a circular table, men and women alternating, no husband next to his wife. M_n = 2·n!·Σ_{k=0}^{n}(-1)^k·(2n/(2n-k))·C(2n-k,k)·(n-k)!. M_3=12, M_4=96, M_5=3120.

How to Use

Enter n couples:

  • M_n: Valid arrangements
  • Formula: Inclusion-exclusion
  • Sequence: First values

History

Posed by Édouard Lucas (1891). Touchard (1934) gave the closed formula. The problem combines circular permutations with a 'no-fixed-point' constraint, making it much harder than ordinary derangements. It's a masterpiece of inclusion-exclusion.

Connections

For linear tables: discordant permutations. The ménage numbers satisfy: M_n = n!·D_n - correction terms, where D_n = derangements. The sequence grows like 2·n!·e^{-2} for large n.

Step-by-Step Instructions

  1. 1Enter n.
  2. 2Compute M_n.
  3. 3View formula.
  4. 4Check sequence.
  5. 5Compare to n!.

Ménage Number Calculator — Frequently Asked Questions

How does this differ from derangements?+

Derangements: no item in its original position (one constraint per item). Ménage: no husband adjacent to wife at a circular table (TWO constraints per couple — left and right). The circular arrangement adds further complexity. Ménage numbers are much harder to compute.

Why is the circular arrangement important?+

In a line, the first and last seats aren't adjacent. In a circle they are. This wrapping constraint means you can't simply decompose the problem. Burnside-like techniques or Touchard's formula with the correction factor 2n/(2n-k) are needed.

What's the growth rate?+

M_n ~ 2·n!·e^{-2} ≈ 0.2707·n!·2. So roughly 27% of gender-alternating circular seatings are valid ménage arrangements, similar to how ~37% of permutations are derangements.

Share this tool: