2012 AIME II Problem 14
Problem 14 of 15HarderCombinatoricsProblem-Solving Techniques
In a group of nine people each person shakes hands with exactly two of the other people from the group. Let be the number of ways this handshaking can occur. Consider two handshaking arrangements different if and only if at least two people who shake hands under one arrangement do not shake hands under the other arrangement. Find the remainder when is divided by
Your answer
Integer from 0 to 999
Show solution
Solution
An arrangement in which everyone shakes exactly two hands is a disjoint union of cycles of length at least covering all nine people. The possible cycle-length partitions of are and On given people, the number of distinct cycles is
For split into three unordered triples in ways, one cycle each: For For For a single -cycle:
In total so the remainder modulo is
Tagged: graph theory · circular arrangements · casework