# USAMO 2017 Solution Notes Evan Chen《陳誼廷》 15 April 2024 This is a compilation of solutions for the 2017 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 2017/1, proposed by Gregory Galperin ..... 3 1.2 USAMO 2017/2, proposed by Maria Monks ..... 4 1.3 USAMO 2017/3, proposed by Evan Chen 2 Solutions to Day 2 ..... 9 2.1 USAMO 2017/4, proposed by Maria Monks ..... 9 2.2 USAMO 2017/5, proposed by Ricky Liu ..... 12 2.3 USAMO 2017/6, proposed by Titu Andreescu ..... 14 ## §0 Problems 1. Prove that there exist infinitely many pairs of relatively prime positive integers $a, b>1$ for which $a+b$ divides $a^{b}+b^{a}$. 2. Let $m_{1}, m_{2}, \ldots, m_{n}$ be a collection of $n$ positive integers, not necessarily distinct. For any sequence of integers $A=\left(a_{1}, \ldots, a_{n}\right)$ and any permutation $w=w_{1}, \ldots, w_{n}$ of $m_{1}, \ldots, m_{n}$, define an $A$-inversion of $w$ to be a pair of entries $w_{i}, w_{j}$ with $iw_{j}$, - $w_{j}>a_{i} \geq w_{i}$, or - $w_{i}>w_{j}>a_{i}$. Show that, for any two sequences of integers $A=\left(a_{1}, \ldots, a_{n}\right)$ and $B=\left(b_{1}, \ldots, b_{n}\right)$, and for any positive integer $k$, the number of permutations of $m_{1}, \ldots, m_{n}$ having exactly $k A$-inversions is equal to the number of permutations of $m_{1}, \ldots, m_{n}$ having exactly $k B$-inversions. 3. Let $A B C$ be a scalene triangle with circumcircle $\Omega$ and incenter $I$. Ray $A I$ meets $\overline{B C}$ at $D$ and $\Omega$ again at $M$; the circle with diameter $\overline{D M}$ cuts $\Omega$ again at $K$. Lines $M K$ and $B C$ meet at $S$, and $N$ is the midpoint of $\overline{I S}$. The circumcircles of $\triangle K I D$ and $\triangle M A N$ intersect at points $L_{1}$ and $L_{2}$. Prove that $\Omega$ passes through the midpoint of either $\overline{I L_{1}}$ or $\overline{I L_{2}}$. 4. Let $P_{1}, P_{2}, \ldots, P_{2 n}$ be $2 n$ distinct points on the unit circle $x^{2}+y^{2}=1$, other than $(1,0)$. Each point is colored either red or blue, with exactly $n$ red points and $n$ blue points. Let $R_{1}, R_{2}, \ldots, R_{n}$ be any ordering of the red points. Let $B_{1}$ be the nearest blue point to $R_{1}$ traveling counterclockwise around the circle starting from $R_{1}$. Then let $B_{2}$ be the nearest of the remaining blue points to $R_{2}$ travelling counterclockwise around the circle from $R_{2}$, and so on, until we have labeled all of the blue points $B_{1}, \ldots, B_{n}$. Show that the number of counterclockwise arcs of the form $R_{i} \rightarrow B_{i}$ that contain the point $(1,0)$ is independent of the way we chose the ordering $R_{1}, \ldots, R_{n}$ of the red points. 5. Find all real numbers $c>0$ such that there exists a labeling of the lattice points in $\mathbb{Z}^{2}$ with positive integers for which: - only finitely many distinct labels occur, and - for each label $i$, the distance between any two points labeled $i$ is at least $c^{i}$. 6. Find the minimum possible value of $$ \frac{a}{b^{3}+4}+\frac{b}{c^{3}+4}+\frac{c}{d^{3}+4}+\frac{d}{a^{3}+4} $$ given that $a, b, c, d$ are nonnegative real numbers such that $a+b+c+d=4$. ## §1 Solutions to Day 1 ## §1.1 USAMO 2017/1, proposed by Gregory Galperin Available online at https://aops.com/community/p8108366. ## Problem statement Prove that there exist infinitely many pairs of relatively prime positive integers $a, b>1$ for which $a+b$ divides $a^{b}+b^{a}$. One construction: let $d \equiv 1(\bmod 4), d>1$. Let $x=\frac{d^{d}+2^{d}}{d+2}$. Then set $$ a=\frac{x+d}{2}, \quad b=\frac{x-d}{2} . $$ To see this works, first check that $b$ is odd and $a$ is even. Let $d=a-b$ be odd. Then: $$ \begin{aligned} a+b \mid a^{b}+b^{a} & \Longleftrightarrow(-b)^{b}+b^{a} \equiv 0 \quad(\bmod a+b) \\ & \Longleftrightarrow b^{a-b} \equiv 1 \quad(\bmod a+b) \\ & \Longleftrightarrow b^{d} \equiv 1 \quad(\bmod d+2 b) \\ & \Longleftrightarrow(-2)^{d} \equiv d^{d}(\bmod d+2 b) \\ & \Longleftrightarrow d+2 b \mid d^{d}+2^{d} . \end{aligned} $$ So it would be enough that $$ d+2 b=\frac{d^{d}+2^{d}}{d+2} \Longrightarrow b=\frac{1}{2}\left(\frac{d^{d}+2^{d}}{d+2}-d\right) $$ which is what we constructed. Also, since $\operatorname{gcd}(x, d)=1$ it follows $\operatorname{gcd}(a, b)=\operatorname{gcd}(d, b)=$ 1. Remark. Ryan Kim points out that in fact, $(a, b)=(2 n-1,2 n+1)$ is always a solution. ## §1.2 USAMO 2017/2, proposed by Maria Monks Available online at https://aops.com/community/p8108658. ## Problem statement Let $m_{1}, m_{2}, \ldots, m_{n}$ be a collection of $n$ positive integers, not necessarily distinct. For any sequence of integers $A=\left(a_{1}, \ldots, a_{n}\right)$ and any permutation $w=w_{1}, \ldots, w_{n}$ of $m_{1}, \ldots, m_{n}$, define an $A$-inversion of $w$ to be a pair of entries $w_{i}, w_{j}$ with $iw_{j}$, - $w_{j}>a_{i} \geq w_{i}$, or - $w_{i}>w_{j}>a_{i}$. Show that, for any two sequences of integers $A=\left(a_{1}, \ldots, a_{n}\right)$ and $B=\left(b_{1}, \ldots, b_{n}\right)$, and for any positive integer $k$, the number of permutations of $m_{1}, \ldots, m_{n}$ having exactly $k A$-inversions is equal to the number of permutations of $m_{1}, \ldots, m_{n}$ having exactly $k B$-inversions. The following solution was posted by Michael Ren, and I think it is the most natural one (since it captures all the combinatorial ideas using a $q$-generating function that is easier to think about, and thus makes the problem essentially a long computation). Denote by $M$ our multiset of $n$ positive integers. Define an inversion of a permutation to be pair $i0$ such that there exists a labeling of the lattice points in $\mathbb{Z}^{2}$ with positive integers for which: - only finitely many distinct labels occur, and - for each label $i$, the distance between any two points labeled $i$ is at least $c^{i}$. The answer is $c<\sqrt{2}$. Here is a solution with Calvin Deng. The construction for any $c<\sqrt{2}$ can be done as follows. Checkerboard color the lattice points and label the black ones with 1 . The white points then form a copy of $\mathbb{Z}^{2}$ again scaled up by $\sqrt{2}$ so we can repeat the procedure with 2 on half the resulting points. Continue this dyadic construction until a large $N$ for which $c^{N}<2^{\frac{1}{2}(N-1)}$, at which point we can just label all the points with $N$. I'll now prove that $c=\sqrt{2}$ (and hence $c \geq \sqrt{2}$ ) can't be done. Claim - It is impossible to fill a $2^{n} \times 2^{n}$ square with labels not exceeding $2 n$. The case $n=1$ is clear. So now assume it's true up to $n-1$; and assume for contradiction a $2^{n} \times 2^{n}$ square $S$ only contains labels up to $2 n$. (Of course every $2^{n-1} \times 2^{n-1}$ square contains an instance of a label at least $2 n-1$.) ![](https://cdn.mathpix.com/cropped/2024_11_19_31dda431671476b0de3cg-12.jpg?height=647&width=632&top_left_y=1484&top_left_x=712) Now, we contend there are fewer than four copies of $2 n$ : ## Lemma In a unit square, among any four points, two of these points have distance $\leq 1$ apart. Proof. Look at the four rays emanating from the origin and note that two of them have included angle $\leq 90^{\circ}$. So WLOG the northwest quadrant has no $2 n$ 's. Take a $2 n-1$ in the northwest and draw a square of size $2^{n-1} \times 2^{n-1}$ directly right of it (with its top edge coinciding with the top of $S$ ). Then $A$ can't contain $2 n-1$, so it must contain a $2 n$ label; that $2 n$ label must be in the northeast quadrant. Then we define a square $B$ of size $2^{n-1} \times 2^{n-1}$ as follows. If $2 n-1$ is at least as high $2 n$, let $B$ be a $2^{n-1} \times 2^{n-1}$ square which touches $2 n-1$ north and is bounded east by $2 n$. Otherwise let $B$ be the square that touches $2 n-1$ west and is bounded north by $2 n$. We then observe $B$ can neither have $2 n-1$ nor $2 n$ in it, contradiction. Remark. To my knowledge, essentially all density arguments fail because of hexagonal lattice packing. ## §2.3 USAMO 2017/6, proposed by Titu Andreescu Available online at https://aops.com/community/p8117097. ## Problem statement Find the minimum possible value of $$ \frac{a}{b^{3}+4}+\frac{b}{c^{3}+4}+\frac{c}{d^{3}+4}+\frac{d}{a^{3}+4} $$ given that $a, b, c, d$ are nonnegative real numbers such that $a+b+c+d=4$. The minimum $\frac{2}{3}$ is achieved at $(a, b, c, d)=(2,2,0,0)$ and cyclic permutations. The problem is an application of the tangent line trick: we observe the miraculous identity $$ \frac{1}{b^{3}+4} \geq \frac{1}{4}-\frac{b}{12} $$ since $12-(3-b)\left(b^{3}+4\right)=b(b+1)(b-2)^{2} \geq 0$. Moreover, $$ a b+b c+c d+d a=(a+c)(b+d) \leq\left(\frac{(a+c)+(b+d)}{2}\right)^{2}=4 $$ Thus $$ \sum_{\mathrm{cyc}} \frac{a}{b^{3}+4} \geq \frac{a+b+c+d}{4}-\frac{a b+b c+c d+d a}{12} \geq 1-\frac{1}{3}=\frac{2}{3} $$ Remark. The main interesting bit is the equality at $(a, b, c, d)=(2,2,0,0)$. This is the main motivation for trying tangent line trick, since a lower bound of the form $\sum a(1-\lambda b)$ preserves the unusual equality case above. Thus one takes the tangent at $b=2$ which miraculously passes through the point $(0,1 / 4)$ as well.