Problem: Six chairs are evenly spaced around a circular table. One person is seated in each chair. Each person gets up and sits down in a chair that is not the same and is not adjacent to the chair he or she originally occupied, so that again one person is seated in each chair. In how many ways can this be done?
$\textbf{(A)}\; 14 \qquad\textbf{(B)}\; 16 \qquad\textbf{(C)}\; 18 \qquad\textbf{(D)}\; 20 \qquad\textbf{(E)}\; 24$

Solution: We can represent each rearrangement as a permutation of the six elements $\{1,2,3,4,5,6\}$ in cycle notation. Note that any such permutation cannot have a 1-cycle, so the only possible types of permutations are 2,2,2-cycles, 4,2-cycles, 3,3-cycles, and 6-cycles. We deal with each case separately.
For 2,2,2-cycles, suppose that one of the 2-cycles switches the people across from each other, i.e. $(14)$ $(25)$ , or $(36)$ . WLOG, we may assume it to be $(14)$ . Then we could either have both of the other 2-cycles be across from each other, giving the permutation $(14)(25)(36)$ or else neither of the other 2-cycles is across from each other, in which case the only possible permutation is $(14)(26)(35)$ . This can happen for $(25)$ and $(36)$ as well. So since the first permutation is not counted twice, we find a total of $1+3=4$ permutations that are 2,2,2-cycles where at least one of the 2-cycles switches people diametrically opposite from each other. Otherwise, since the elements in a 2-cycle cannot differ by 1, 3, or 5 mod 6, they must differ by 2 or 4 mod 6, i.e. they must be of the same parity. But since we have three odd and three even elements, this is impossible. Hence there are exactly 4 such permutations that are 2,2,2-cycles.
For 4,2-cycles, we assume for the moment that 1 is part of the 2-cycle. Then the 2-cycle can be $(13)$ $(15)$ , or $(14)$ . The first two are essentially the same by symmetry, and we must arrange the elements 2, 4, 5, 6 into a 4-cycle. However, 5 must have two neighbors that are not next to it, which is impossible, hence the first two cases yield no permutations. If the 2-cycle is $(14)$ , then we must arrange the elements 2, 3, 5, 6 into a 4-cycle. Then 2 must have the neighbors 5 and 6. We find that the 4-cycles $(2536)$ and $(2635)$ satisfy the desired properties, yielding the permutations $(14)(2536)$ and $(14)(2635)$ . This can be done for the 2-cycles $(25)$ and $(36)$ as well, so we find a total of 6 such permutations that are 4,2-cycles.
For 3,3-cycles, note that if 1 neighbor 4, then the third element in the cycle will neighbor one of 1 and 4, so this is impossible. Therefore, the 3-cycle containing 1 must consist of elements 1, 3, and 5. Therefore, we obtain the four 3,3-cycles $(135)(246)$ $(153)(246)$ $(135)(264)$ , and $(153)(264)$
For 6-cycles, note that the neighbors of 1 can be 3 and 4, 3 and 5, or 4 and 5. In the first case, we may assume that it looks like $(314\dots)$ -- the form $(413\dots)$ is also possible but equivalent to this case. Then we must place the elements 2, 5, and 6. Note that 5 and 6 cannot go together, so 2 must go in between them. Also, 5 cannot neighbor 4, so we are left with one possibility, namely $(314625)$ , which has an analogous possibility $(413526)$ . In the second case, we assume that it looks like $(315\dots)$ . The 2 must go next to the 5, and the 6 must go last (to neighbor the 3), so the only possibility here is $(315246)$ , with the analogous possibility $(513642)$ . In the final case, we may assume that it looks like $(415\dots)$ . Then the 2 and 3 cannot go together, so the 6 must go in between them. Therefore, the only possibility is $(415362)$ , with the analogous possibility $(514263)$ . We have covered all possibilities for 6-cycles, and we have found 6 of them.
Therefore, there are $4+6+4+6 = \boxed{20}$ such permutations.

Answer: D 20