TITLE: Number of ways you can form pairs with a group of people when certain people cannot be paired with each other.
QUESTION [10 upvotes]: Let's say you have a group of eight people and you want to form them into pairs for group projects.
There are 
$\frac{8!}{4! 2^4}$
ways to do it.  ($8!$ is the total number of ways $8$ people can be arranged in a line.  Divide that by $2^4$, which is the total number of ways the two people in each pair can be arranged.  Then divide that by $4!$, which is the total number of ways those pairs can be arranged, and you have the number of possible ways a group of $8$ can be formed into pairs.)
Now, I want to take the same group of people and put them in different pairs for a second group project. How do I find the number of ways $8$ people can be formed into pairs with the constraint that they cannot work with the same person they worked with last group project?

REPLY [2 votes]: There is a mistake in the accepted answer, the correct answer is 60.
In response to Richard Stanley's answer, he is counting the total number of ways you can choose the first matching and the second matching, rather than the number of ways to choose the second matching, given that the first matching is already determined. By symmetry, we can simply divide this by the total number of matchings to obtain the answer to the original question.
As other posters pointed out, this number is $(2n)! \over 2^n(n!)$ if there are $2n$ students. In the example with 8 students, this number is 105. Dividing 6300 (Stanley's answer for 8 students) by 105, we get that the answer to the question originally asked is 60.