# USAMO 2008 Solution Notes Evan Chen《陳誼廷》 15 April 2024 This is a compilation of solutions for the 2008 USAMO. The ideas of the solution are a mix of my own work, the solutions provided by the competition organizers, and solutions found by the community. However, all the writing is maintained by me. These notes will tend to be a bit more advanced and terse than the "official" solutions from the organizers. In particular, if a theorem or technique is not known to beginners but is still considered "standard", then I often prefer to use this theory anyways, rather than try to work around or conceal it. For example, in geometry problems I typically use directed angles without further comment, rather than awkwardly work around configuration issues. Similarly, sentences like "let $\mathbb{R}$ denote the set of real numbers" are typically omitted entirely. Corrections and comments are welcome! ## Contents 0 Problems ..... 2 1 Solutions to Day 1 ..... 3 1.1 USAMO 2008/1, proposed by Titu Andreescu ..... 3 1.2 USAMO 2008/2, proposed by Zuming Feng ..... 4 1.3 USAMO 2008/3, proposed by Gabriel Carroll ..... 6 2 Solutions to Day 2 ..... 9 2.1 USAMO 2008/4, proposed by Gregory Galperin ..... 9 2.2 USAMO 2008/5, proposed by Kiran Kedlaya ..... 10 2.3 USAMO 2008/6, proposed by Sam Vandervelde ..... 11 ## §0 Problems 1. Prove that for each positive integer $n$, there are pairwise relatively prime integers $k_{0}, \ldots, k_{n}$, all strictly greater than 1 , such that $k_{0} k_{1} \ldots k_{n}-1$ is the product of two consecutive integers. 2. Let $A B C$ be an acute, scalene triangle, and let $M, N$, and $P$ be the midpoints of $\overline{B C}, \overline{C A}$, and $\overline{A B}$, respectively. Let the perpendicular bisectors of $\overline{A B}$ and $\overline{A C}$ intersect ray $A M$ in points $D$ and $E$ respectively, and let lines $B D$ and $C E$ intersect in point $F$, inside triangle $A B C$. Prove that points $A, N, F$, and $P$ all lie on one circle. 3. Let $n$ be a positive integer. Denote by $S_{n}$ the set of points $(x, y)$ with integer coordinates such that $$ |x|+\left|y+\frac{1}{2}\right|1$. Let $S$ denote the set of points $$ S=\left\{(x, y): x+\left|y+\frac{1}{2}\right| \geq n-2\right\} $$ An example when $n=4$ is displayed below. ![](https://cdn.mathpix.com/cropped/2024_11_19_cd8a472922fcd4109f27g-06.jpg?height=800&width=766&top_left_y=1276&top_left_x=642) For any minimal partition $\mathcal{P}$ of $S_{n}$, let $P$ denote the path passing through the point $a=(n-1,0)$. Then the intersection of $P$ with $S$ consists of several disconnected paths; let $N$ be the number of nodes in the component containing $a$, and pick $\mathcal{P}$ such that $N$ is maximal. We claim that in this case $P=S$. Assume not. First, note $a=(n-1,0)$ must be connected to $b=(n-1,-1)$ (otherwise join them to decrease the number of paths). Now, starting from $a=(n-1,0)$ walk along $P$ away from $b$ until one of the following three conditions is met: - We reach a point $v$ not in $S$. Let $w$ be the point before $v$, and $x$ the point in $S$ adjacent to $w$. Then delete $v w$ and add $w x$. This increases $N$ while leaving the number of edges unchanged: so this case can't happen. - We reach an endpoint $v$ of $P$ (which may be $a$ ), lying inside the set $S$, which is not the topmost point $(0, n-1)$. Let $w$ be the next point of $S$. Delete any edge touching $w$ and add edge $v w$. This increases $N$ while leaving the number of edges unchanged: so this case can't happen. - We reach the topmost point $(0, n-1)$. Thus we see that $P$ must follow $S$ until reaching the topmost point $(0, n-1)$. Similarly it must reach the bottom-most point $(0,-n)$. Hence $P=S$. The remainder of $S_{n}$ is just $S_{n-1}$, and hence this requires at least $n-1$ paths to cover by the inductive hypothesis. So $S_{n}$ requires at least $n$ paths, as desired. Remark (Motivational comments from Evan). Basically the idea is that I wanted to peel away the right path $S$ highlighted in red in the figure, so that one could induct. But the problem is that the red path might not actually exist, e.g. the set of paths might contain the mirror of $S$ instead. Nonetheless, in those equality cases I found I could perturb some edges (e.g. change from $(-1, n-2)-(0, n-2)$ to $(0, n-2)-(1, n-2))$. So the idea then was to do little changes and try to convert the given partition into one where the red path $S$ exists, (and then peel it away for induction) without decreasing the total number of paths. To make this work, you actually want the incisions to begin ear the points $a$ and $b$, because that's the point of $S$ that is most constrained (e.g. you get $a-b$ right away for free), and assemble the path from there. (If you try to do it from the top, it's much less clear what's happening.) That's why the algorithm starts the mutations from around a. II Second solution (global). Here is a much shorter official solution, which is much trickier to find, and "global" in nature. Color the upper half of the diagram with a blue/red checkerboard pattern such that the uppermost point $(n-1,0)$ is blue. Reflect it over to the bottom, as shown. Assume there are $m$ paths. Cut in two any paths with two adjacent blue points; this occurs only along the horizontal symmetry axis. Thus: - After cutting there are at most $m+n$ paths, since at most $n$ cuts occur. - On the other hand, there are $2 n$ more blue points than red points. Hence after cutting there must be at least $2 n$ paths (since each path alternates colors, except possibly for double-red pairs). So $m+n \geq 2 n$, hence $m \geq n$. Remark. This problem turned out to be known already. It appears in this reference: Nikolai Beluhov, Nyakolko Zadachi po Shahmatna Kombinatorika, Matematika Plyus, 2006, issue 4, pages 61-64. Section 1 of 2 was reprinted with revisions as Nikolai Beluhov, Dolgii Put Korolya, Kvant, 2010, issue 4, pages 39-41. The reprint is available at http://kvant.ras.ru/pdf/2010/ 2010-04.pdf. Remark (Nikolai Beluhov). As pointed out in the reference above, this problem arises naturally when we try to estimate the greatest possible length of a closed king tour on the chessboard of size $n \times n$ with $n$ even, a question posed by Igor Akulich in Progulki Korolya, Kvant, 2000, issue 3, pages $47-48$. Each one of the two references above contains a proof that the answer is $n+\sqrt{2}\left(n^{2}-n\right)$. ## §2 Solutions to Day 2 ## §2.1 USAMO 2008/4, proposed by Gregory Galperin Available online at https://aops.com/community/p1116177. ## Problem statement For which integers $n \geq 3$ can one find a triangulation of regular $n$-gon consisting only of isosceles triangles? The answer is $n$ of the form $2^{a}\left(2^{b}+1\right)$ where $a$ and $b$ are nonnegative integers not both zero. Call the polygon $A_{1} \ldots A_{n}$ with indices taken modulo $n$. We refer to segments $A_{1} A_{2}$, $A_{2} A_{3}, \ldots, A_{n} A_{1}$ as short sides. Each of these must be in the triangulation. Note that - when $n$ is even, the isosceles triangles triangle using a short side $A_{1} A_{2}$ are $\triangle A_{n} A_{1} A_{2}$ and $\triangle A_{1} A_{2} A_{3}$ only, which we call small. - when $n$ is odd, in addition to the small triangles, we have $\triangle A_{\frac{1}{2}(n+3)} A_{1} A_{2}$, which we call big. This leads to the following two claims. Claim - If $n>4$ is even, then $n$ works iff $n / 2$ does. Proof. All short sides must be part of a small triangle; after drawing these in, we obtain an $n / 2$-gon. ![](https://cdn.mathpix.com/cropped/2024_11_19_cd8a472922fcd4109f27g-09.jpg?height=316&width=315&top_left_y=1561&top_left_x=873) Thus the sides of $\mathcal{P}$ must pair off, and when we finish drawing we have an $n / 2$-gon. Since $n=4$ works, this implies all powers of 2 work and it remains to study the case when $n$ is odd. Claim - If $n>1$ is odd, then $n$ works if and only if $n=2^{b}+1$ for some positive integer $b$. Proof. We cannot have all short sides part of small triangles for parity reasons, so some side, must be part of a big triangle. Since big triangles contain the center $O$, there can be at most one big triangle too. Then we get $\frac{1}{2}(n-1)$ small triangles, pairing up the remaining sides. Now repeating the argument with the triangles on each half shows that the number $n-1$ must be a power of 2 , as needed. ## §2.2 USAMO 2008/5, proposed by Kiran Kedlaya Available online at https://aops.com/community/p1116189. ## Problem statement Three nonnegative real numbers $r_{1}, r_{2}, r_{3}$ are written on a blackboard. These numbers have the property that there exist integers $a_{1}, a_{2}, a_{3}$, not all zero, satisfying $a_{1} r_{1}+a_{2} r_{2}+a_{3} r_{3}=0$. We are permitted to perform the following operation: find two numbers $x, y$ on the blackboard with $x \leq y$, then erase $y$ and write $y-x$ in its place. Prove that after a finite number of such operations, we can end up with at least one 0 on the blackboard. We first show we can decrease the quantity $\left|a_{1}\right|+\left|a_{2}\right|+\left|a_{3}\right|$ as long as $0 \notin\left\{a_{1}, a_{2}, a_{3}\right\}$. Assume $a_{1}>0$ and $r_{1}>r_{2}>r_{3}$ without loss of generality and consider two cases. - Suppose $a_{2}>0$ or $a_{3}>0$; these cases are identical. (One cannot have both $a_{2}>0$ and $a_{3}>0$.) If $a_{2}>0$ then $a_{3}<0$ and get $$ 0=a_{1} r_{1}+a_{2} r_{2}+a_{3} r_{3}>a_{1} r_{3}+a_{3} r_{3} \Longrightarrow a_{1}+a_{3}<0 $$ so $\left|a_{1}+a_{3}\right|<\left|a_{3}\right|$, and hence we perform $\left(r_{1}, r_{2}, r_{3}\right) \mapsto\left(r_{1}-r_{3}, r_{2}, r_{3}\right)$. - Both $a_{2}<0$ and $a_{3}<0$. Assume for contradiction that $\left|a_{1}+a_{2}\right| \geq-a_{2}$ and $\left|a_{1}+a_{3}\right| \geq-a_{3}$ both hold (if either fails then we use $\left(r_{1}, r_{2}, r_{3}\right) \mapsto\left(r_{1}-r_{2}, r_{2}, r_{3}\right)$ and $\left(r_{1}, r_{2}, r_{3}\right) \mapsto\left(r_{1}-r_{3}, r_{2}, r_{3}\right)$, respectively). Clearly $a_{1}+a_{2}$ and $a_{1}+a_{3}$ are both positive in this case, so we get $a_{1}+2 a_{2}$ and $a_{1}+2 a_{3} \geq 0$; adding gives $a_{1}+a_{2}+a_{3} \geq 0$. But $$ \begin{aligned} 0 & =a_{1} r_{1}+a_{2} r_{2}+a_{3} r_{3} \\ & >a_{1} r_{2}+a_{2} r_{2}+a_{3} r_{2} \\ & =r_{2}\left(a_{1}+a_{2}+a_{3}\right) \\ \Longrightarrow 0 &