1998 AIME Problem 15

Below is the professionally curated solution for Problem 15 of the 1998 AIME, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 1998 AIME solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:graph theoryparity

Difficulty rating: 3160

15.

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 (i,j)(i, j) and (j,i)(j, i) do not both appear for any ii and j.j. Let D40D_{40} be the set of all dominos whose coordinates are no larger than 40.40. Find the length of the longest proper sequence of dominos that can be formed using the dominos of D40.D_{40}.

Solution:

A domino (i,j)(i, j) is an oriented edge of the complete graph on vertices 1,,40,1, \ldots, 40, and the rule that (i,j)(i, j) and (j,i)(j, i) cannot both appear means each of the (402)=780\binom{40}{2} = 780 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 39,39, so at least 3838 vertices must have odd degree in the set of unused edges, and a graph with 3838 odd-degree vertices has at least 382=19\frac{38}{2} = 19 edges. Hence at most 78019=761780 - 19 = 761 dominos can be used.

Conversely, set aside the 1919 disjoint edges (3,4),(3,4), (5,6),(5,6), ,\ldots, (39,40).(39,40). The remaining graph is connected and only vertices 11 and 22 have odd degree, so it has an Euler trail traversing all 761761 remaining edges; orienting each edge in the direction of travel gives a proper sequence of length 761.761.

← Problem 14Full Exam

Problem 15 in Other Years