Difference between revisions of "1998 AIME Problems/Problem 15"
Phoenixfire (talk | contribs) (→Solution) |
Phoenixfire (talk | contribs) |
||
Line 2: | Line 2: | ||
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 <math>(i,j)</math> and <math>(j,i)</math> do not both appear for any <math>i</math> and <math>j</math>. Let <math>D_{40}</math> be the set of all dominos whose coordinates are no larger than 40. Find the length of the longest proper sequence of dominos that can be formed using the dominos of <math>D_{40}.</math> | 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 <math>(i,j)</math> and <math>(j,i)</math> do not both appear for any <math>i</math> and <math>j</math>. Let <math>D_{40}</math> be the set of all dominos whose coordinates are no larger than 40. Find the length of the longest proper sequence of dominos that can be formed using the dominos of <math>D_{40}.</math> | ||
− | == Solution == | + | == Solution 1 == |
We can draw a comparison between the domino a set of 40 points (labeled 1 through 40) in which every point is connected with every other point. The connections represent the dominoes. | We can draw a comparison between the domino a set of 40 points (labeled 1 through 40) in which every point is connected with every other point. The connections represent the dominoes. | ||
Line 12: | Line 12: | ||
''Clarification'' : To clarify the above solution, every time you move to a new vertex, you take one path in and must leave by another path. Therefore every vertex needs to have an even number of segments leaving it (with the exception of the first and last), because the "in" and "out" segments must make a pair. | ''Clarification'' : To clarify the above solution, every time you move to a new vertex, you take one path in and must leave by another path. Therefore every vertex needs to have an even number of segments leaving it (with the exception of the first and last), because the "in" and "out" segments must make a pair. | ||
+ | |||
+ | == Solution 2 == | ||
+ | A proper sequence can be represented by writing the common coordinates of adjacent ordered pairs once. For example, represent (4,7),(7,3),(3,5) as <math>4,7,3,5 .</math> Label the vertices of a regular <math>n</math> -gon <math>1,2,3, \ldots, n .</math> Each domino is thereby represented by a directed segment from one vertex of the <math>n</math> -gon to another, and a proper sequence is represented as a path that retraces no segment. Each time that such a path reaches a non-terminal vertex, it must leave it. | ||
+ | |||
+ | |||
+ | Thus, when <math>n</math> is even, it is not possible for such a path to trace every segment, for an odd number of segments emanate from each vertex. By removing <math>\frac{1}{2}(n-2)</math> suitable segments, however, it can be arranged that <math>n-2</math> segments will emanate from <math>n-2</math> of the vertices and that an odd number of segments will emanate from exactly two of the vertices. | ||
+ | |||
+ | |||
+ | In this situation, a path can be found that traces every remaining segment exactly once, starting at one of the two exceptional vertices and finishing at the other. This path will have length <math>\left(\begin{array}{l}n \\ 2\end{array}\right)-\frac{1}{2}(n-2),</math> which is 761 when <math>n=40</math> : | ||
+ | |||
+ | |||
+ | === Note 1 === | ||
+ | When <math>n</math> is odd, a proper sequence of length <math>\left(\begin{array}{c}n \\ 2\end{array}\right)</math> can be found using the dominos of <math>D_{n}</math>. In this case, the second coordinate of the final domino equals the first coordinate of the first domino. | ||
+ | |||
+ | ~phoenixfire | ||
+ | |||
+ | == Solution 3 == | ||
+ | Let <math>A_{n}=\{1,2,3, \ldots, n\}</math> and <math>D_{n}</math> be the set of dominos that can be formed using integers in <math>A_{n} .</math> Each <math>k</math> in <math>A_{n}</math> appears in <math>2(n-1)</math> dominos in <math>D_{n},</math> hence appears at most <math>n-1</math> times in a proper sequence from <math>D_{n}.</math> Except possibly for the integers <math>i</math> and <math>j</math> that begin and end a proper sequence, every integer appears an even number of times in the sequence. | ||
+ | |||
+ | |||
+ | Thus, if <math>n</math> is even, each integer different from <math>i</math> and <math>j</math> appears on at most <math>n-2</math> dominos in the sequence, because <math>n-2</math> is even, and <math>i</math> and <math>j</math> themselves appear on at most <math>n-1</math> dominos each. This gives an upper bound of | ||
+ | <cmath> | ||
+ | \frac{1}{2}\left[(n-2)^{2}+2(n-1)\right]=\frac{n^{2}-2 n+2}{2} | ||
+ | </cmath> | ||
+ | dominos in the longest proper sequence in <math>D_{n}.</math> This bound is in fact attained for every even <math>n.</math> It is easy to verify this for <math>n=2</math>, so assume inductively that a sequence of this length has been found for a particular value of <math>n</math>. | ||
+ | |||
+ | |||
+ | Without loss of generality, assume <math>i=1</math> and <math>j=2,</math> and let <math>_{p} X_{p+2}</math> denote a four-domino sequence of the form <math>(p, n+1)(n+1, p+1)(p+1, n+2)(n+2, p+2) .</math> By appending | ||
+ | <cmath> | ||
+ | { }_{2} X_{4},{ }_{4} X_{6}, \ldots,{ }_{n-2} X_{n},(n, n+1)(n+1,1)(1, n+2)(n+2,2) | ||
+ | </cmath> | ||
+ | to the given proper sequence, a proper sequence of length | ||
+ | <cmath> | ||
+ | \frac{n^{2}-2 n+2}{2}+4 \cdot \frac{n-2}{2}+4=\frac{n^{2}+2 n+2}{2}=\frac{(n+2)^{2}-2(n+2)+2}{2} | ||
+ | </cmath> | ||
+ | is obtained that starts at <math>i=1</math> and ends at <math>j=2 .</math> This completes the inductive proof. | ||
+ | |||
+ | |||
+ | In particular, the longest proper sequence when <math>n=40</math> is 761. | ||
+ | |||
+ | ~phoenixfire | ||
+ | |||
+ | === Note 2 === | ||
+ | In the language of graph theory, this is an example of an Eulerian circuit. | ||
== See also == | == See also == |
Revision as of 02:52, 6 March 2021
Problem
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 40. Find the length of the longest proper sequence of dominos that can be formed using the dominos of
Solution 1
We can draw a comparison between the domino a set of 40 points (labeled 1 through 40) in which every point is connected with every other point. The connections represent the dominoes.
You need to have all even number of segments coming from each point except 0 or 2 which have an odd number of segments coming from the point. (Reasoning for this: Everytime you go to a vertex, you have to leave the vertex, so every vertex reached is equivalent to adding 2 more segments. So the degree of each vertex must be even, with the exception of endpoints) Since there are 39 segments coming from each point it is impossible to touch every segment.
But you can get up to 38 on each segment because you go in to the point then out on a different segment. Counting going out from the starting and ending at the ending point we have:
Clarification : To clarify the above solution, every time you move to a new vertex, you take one path in and must leave by another path. Therefore every vertex needs to have an even number of segments leaving it (with the exception of the first and last), because the "in" and "out" segments must make a pair.
Solution 2
A proper sequence can be represented by writing the common coordinates of adjacent ordered pairs once. For example, represent (4,7),(7,3),(3,5) as Label the vertices of a regular -gon Each domino is thereby represented by a directed segment from one vertex of the -gon to another, and a proper sequence is represented as a path that retraces no segment. Each time that such a path reaches a non-terminal vertex, it must leave it.
Thus, when is even, it is not possible for such a path to trace every segment, for an odd number of segments emanate from each vertex. By removing suitable segments, however, it can be arranged that segments will emanate from of the vertices and that an odd number of segments will emanate from exactly two of the vertices.
In this situation, a path can be found that traces every remaining segment exactly once, starting at one of the two exceptional vertices and finishing at the other. This path will have length which is 761 when :
Note 1
When is odd, a proper sequence of length can be found using the dominos of . In this case, the second coordinate of the final domino equals the first coordinate of the first domino.
~phoenixfire
Solution 3
Let and be the set of dominos that can be formed using integers in Each in appears in dominos in hence appears at most times in a proper sequence from Except possibly for the integers and that begin and end a proper sequence, every integer appears an even number of times in the sequence.
Thus, if is even, each integer different from and appears on at most dominos in the sequence, because is even, and and themselves appear on at most dominos each. This gives an upper bound of
dominos in the longest proper sequence in This bound is in fact attained for every even It is easy to verify this for , so assume inductively that a sequence of this length has been found for a particular value of .
Without loss of generality, assume and and let denote a four-domino sequence of the form By appending
to the given proper sequence, a proper sequence of length
is obtained that starts at and ends at This completes the inductive proof.
In particular, the longest proper sequence when is 761.
~phoenixfire
Note 2
In the language of graph theory, this is an example of an Eulerian circuit.
See also
1998 AIME (Problems • Answer Key • Resources) | ||
Preceded by Problem 14 |
Followed by Last question | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.