Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Say I have a group of 20 people, and I want to split them to pairs, I know that the number of different ways to do it is $\frac{(2n)!}{2^n \cdot n!}$ But let's say that I have to pair a boy with a girl? I got confused because unlike the first option the number of total elements (pairs) isn't $(2n)!$, and I failed to count it. I think that the size of each equivalence class is the same - $2^n \cdot n!$, I am just missing the number of total elements. Any ideas? Thanks!

share|cite|improve this question

If you have $n$ boys and $n$ girls, give them each a number and sort the pairs by wlog the boy's number. Then there are $n!$ possible orderings for the girls, so $n!$ ways of forming the pairs.

share|cite|improve this answer
So simple! thanks – yotamoo Mar 11 '12 at 12:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.