1998 AIME Problem 15
Problem 15 of 15HarderNumber TheoryCombinatorics
Define a domino to be an ordered pair of distinct positive integers. A proper sequence of dominos is a list of distinct dominos in which the first coordinate of each pair after the first equals the second coordinate of the immediately preceding pair, and in which and do not both appear for any and Let be the set of all dominos whose coordinates are no larger than Find the length of the longest proper sequence of dominos that can be formed using the dominos of
Your answer
Integer from 0 to 999
Show solution
Solution
A domino is an oriented edge of the complete graph on vertices and the rule that and cannot both appear means each of the edges is available at most once. A proper sequence is exactly a trail: a walk that repeats no edge. In any trail, every vertex other than the two endpoints is entered and left equally often, so it has even degree in the set of edges used.
In the complete graph every vertex has odd degree so at least vertices must have odd degree in the set of unused edges, and a graph with odd-degree vertices has at least edges. Hence at most dominos can be used.
Conversely, set aside the disjoint edges The remaining graph is connected and only vertices and have odd degree, so it has an Euler trail traversing all remaining edges; orienting each edge in the direction of travel gives a proper sequence of length
Tagged: graph theory · parity