# USAMO 2023 Solution Notes Evan ChEn《陳誼廷》 15 April 2024 This is a compilation of solutions for the 2023 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 2023/1, proposed by Holden Mui ..... 3 1.2 USAMO 2023/2, proposed by Carl Schildkraut ..... 7 1.3 USAMO 2023/3, proposed by Holden Mui ..... 8 2 Solutions to Day 2 ..... 12 2.1 USAMO 2023/4, proposed by Carl Schildkraut ..... 12 2.2 USAMO 2023/5, proposed by Ankan Bhattacharya ..... 13 2.3 USAMO 2023/6, proposed by Zack Chroman ..... 15 ## §0 Problems 1. In an acute triangle $A B C$, let $M$ be the midpoint of $\overline{B C}$. Let $P$ be the foot of the perpendicular from $C$ to $A M$. Suppose that the circumcircle of triangle $A B P$ intersects line $B C$ at two distinct points $B$ and $Q$. Let $N$ be the midpoint of $\overline{A Q}$. Prove that $N B=N C$. 2. Solve over the positive real numbers the functional equation $$ f(x y+f(x))=x f(y)+2 $$ 3. Consider an $n$-by- $n$ board of unit squares for some odd positive integer $n$. We say that a collection $C$ of identical dominoes is a maximal grid-aligned configuration on the board if $C$ consists of $\left(n^{2}-1\right) / 2$ dominoes where each domino covers exactly two neighboring squares and the dominoes don't overlap: $C$ then covers all but one square on the board. We are allowed to slide (but not rotate) a domino on the board to cover the uncovered square, resulting in a new maximal gridaligned configuration with another square uncovered. Let $k(C)$ be the number of distinct maximal grid-aligned configurations obtainable from $C$ by repeatedly sliding dominoes. Find all possible values of $k(C)$ as a function of $n$. 4. Positive integers $a$ and $N$ are fixed, and $N$ positive integers are written on a blackboard. Alice and Bob play the following game. On Alice's turn, she must replace some integer $n$ on the board with $n+a$, and on Bob's turn he must replace some even integer $n$ on the board with $n / 2$. Alice goes first and they alternate turns. If on his turn Bob has no valid moves, the game ends. After analyzing the $N$ integers on the board, Bob realizes that, regardless of what moves Alice makes, he will be able to force the game to end eventually. Show that, in fact, for this value of $a$ and these $N$ integers on the board, the game is guaranteed to end regardless of Alice's or Bob's moves. 5. Let $n \geq 3$ be an integer. We say that an arrangement of the numbers $1,2, \ldots, n^{2}$ in an $n \times n$ table is row-valid if the numbers in each row can be permuted to form an arithmetic progression, and column-valid if the numbers in each column can be permuted to form an arithmetic progression. For what values of $n$ is it possible to transform any row-valid arrangement into a column-valid arrangement by permuting the numbers in each row? 6. Let $A B C$ be a triangle with incenter $I$ and excenters $I_{a}, I_{b}, I_{c}$ opposite $A, B$, and $C$, respectively. Given an arbitrary point $D$ on the circumcircle of $\triangle A B C$ that does not lie on any of the lines $I I_{a}, I_{b} I_{c}$, or $B C$, suppose the circumcircles of $\triangle D I I_{a}$ and $\triangle D I_{b} I_{c}$ intersect at two distinct points $D$ and $F$. If $E$ is the intersection of lines $D F$ and $B C$, prove that $\angle B A D=\angle E A C$. ## §1 Solutions to Day 1 ## §1.1 USAMO 2023/1, proposed by Holden Mui Available online at https://aops.com/community/p27349297. ## Problem statement In an acute triangle $A B C$, let $M$ be the midpoint of $\overline{B C}$. Let $P$ be the foot of the perpendicular from $C$ to $A M$. Suppose that the circumcircle of triangle $A B P$ intersects line $B C$ at two distinct points $B$ and $Q$. Let $N$ be the midpoint of $\overline{A Q}$. Prove that $N B=N C$. We show several different approaches. In all solutions, let $D$ denote the foot of the altitude from $A$. ![](https://cdn.mathpix.com/cropped/2024_11_19_5f0e796e43a11586ccbfg-03.jpg?height=892&width=995&top_left_y=999&top_left_x=536) 【 Most common synthetic approach. The solution hinges on the following claim: Claim - $Q$ coincides with the reflection of $D$ across $M$. Proof. Note that $\measuredangle A D C=\measuredangle A P C=90^{\circ}$, so $A D P C$ is cyclic. Then by power of a point (with the lengths directed), $$ M B \cdot M Q=M A \cdot M P=M C \cdot M D $$ Since $M B=M C$, the claim follows. It follows that $\overline{M N} \| \overline{A D}$, as $M$ and $N$ are respectively the midpoints of $\overline{A Q}$ and $\overline{D Q}$. Thus $\overline{M N} \perp \overline{B C}$, and so $N$ lies on the perpendicular bisector of $\overline{B C}$, as needed. Remark (David Lin). One can prove the main claim without power of a point as well, as follows: Let $R$ be the foot from $B$ to $\overline{A M}$, so $B R C P$ is a parallelogram. Note that $A B D R$ is cyclic, and hence $$ \measuredangle D R M=\measuredangle D B A=Q B A=\measuredangle Q P A=\measuredangle Q P M $$ Thus, $\overline{D R} \| \overline{P Q}$, so $D R Q P$ is also a parallelogram. ## ब Synthetic approach with no additional points at all. ## Claim - $\triangle B P C \sim \triangle A N M$ (oppositely oriented). Proof. We have $\triangle B M P \sim \triangle A M Q$ from the given concyclicity of $A B P Q$. Then $$ \frac{B M}{B P}=\frac{A M}{A Q} \Longrightarrow \frac{2 B M}{B P}=\frac{A M}{A Q / 2} \Longrightarrow \frac{B C}{B P}=\frac{A M}{A N} $$ implying the similarity (since $\measuredangle M A Q=\measuredangle B P M$ ). This similarity gives us the equality of directed angles $$ \measuredangle(B C, M N)=-\measuredangle(P C, A M)=90^{\circ} $$ as desired. ब Synthetic approach using only the point $R$. Again let $R$ be the foot from $B$ to $\overline{A M}$, so $B R C P$ is a parallelogram. Claim - $A R Q C$ is cyclic; equivalently, $\triangle M A Q \sim \triangle M C R$. Proof. $M R \cdot M A=M P \cdot M A=M B \cdot M Q=M C \cdot M Q$. Note that in $\triangle M C R$, the $M$-median is parallel to $\overline{C P}$ and hence perpendicular to $\overline{R M}$. The same should be true in $\triangle M A Q$ by the similarity, so $\overline{M N} \perp \overline{M Q}$ as needed. \ Cartesian coordinates approach with power of a point. Suppose we set $B=(-1,0)$, $M=(0,0), C=(1,0)$, and $A=(a, b)$. One may compute: $$ \begin{aligned} \overleftrightarrow{A M}: 0 & =b x-a y \Longleftrightarrow y=\frac{b}{a} x \\ \overleftrightarrow{C P}: 0 & =a(x-1)+b y \Longleftrightarrow y=-\frac{a}{b}(x-1)=-\frac{a}{b} x+\frac{a}{b} \\ P & =\left(\frac{a^{2}}{a^{2}+b^{2}}, \frac{a b}{a^{2}+b^{2}}\right) \end{aligned} $$ Now note that $$ A M=\sqrt{a^{2}+b^{2}}, \quad P M=\frac{a}{\sqrt{a^{2}+b^{2}}} $$ together with power of a point $$ A M \cdot P M=B M \cdot Q M $$ to immediately deduce that $Q=(a, 0)$. Hence $N=(0, b / 2)$ and we're done. 【 Cartesian coordinates approach without power of a point (outline). After computing $A$ and $P$ as above, one could also directly calculate $$ \begin{aligned} & \text { Perpendicular bisector of } \overline{A B}: y=-\frac{a+1}{b} x+\frac{a^{2}+b^{2}-1}{2 b} \\ & \text { Perpendicular bisector of } \overline{P B}: y=-\left(\frac{2 a}{b}+\frac{b}{a}\right) x-\frac{b}{2 a} \\ & \text { Perpendicular bisector of } \overline{P A}: y=-\frac{a}{b} x+\frac{a+a^{2}+b^{2}}{2 b} \\ & \text { Circumcenter of } \triangle P A B=\left(-\frac{a+1}{2}, \frac{2 a^{2}+2 a+b^{2}}{2 b}\right) \end{aligned} $$ This is enough to extract the coordinates of $Q=(\bullet, 0)$, because $B=(-1,0)$ is given, and the $x$-coordinate of the circumcenter should be the average of the $x$-coordinates of $B$ and $Q$. In other words, $Q=(-a, 0)$. Hence, $N=\left(0, \frac{b}{2}\right)$, as needed. \I III-advised barycentric approach (outline). Use reference triangle $A B C$. The $A$ median is parametrized by $(t: 1: 1)$ for $t \in \mathbb{R}$. So because of $\overline{C P} \perp \overline{A M}$, we are looking for $t$ such that $$ \left(\frac{t \vec{A}+\vec{B}+\vec{C}}{t+2}-\vec{C}\right) \perp\left(A-\frac{\vec{B}+\vec{C}}{2}\right) $$ This is equivalent to $$ (t \vec{A}+\vec{B}-(t+1) \vec{C}) \perp(2 \vec{A}-\vec{B}-\vec{C}) $$ By the perpendicularity formula for barycentric coordinates (EGMO 7.16), this is equivalent to $$ \begin{aligned} 0 & =a^{2} t-b^{2} \cdot(3 t+2)+c^{2} \cdot(2-t) \\ & =\left(a^{2}-3 b^{2}-c^{2}\right) t-2\left(b^{2}-c^{2}\right) \\ \Longrightarrow t & =\frac{2\left(b^{2}-c^{2}\right)}{a^{2}-3 b^{2}-c^{2}} \end{aligned} $$ In other words, $$ P=\left(2\left(b^{2}-c^{2}\right): a^{2}-3 b^{2}-c^{2}: a^{2}-3 b^{2}-c^{2}\right) . $$ A long calculation gives $a^{2} y_{P} z_{P}+b^{2} z_{P} x_{P}+c^{2} x_{P} y_{P}=\left(a^{2}-3 b^{2}-c^{2}\right)\left(a^{2}-b^{2}+c^{2}\right)\left(a^{2}-\right.$ $\left.2 b^{2}-2 c^{2}\right)$. Together with $x_{P}+y_{P}+z_{P}=2 a^{2}-4 b^{2}-4 c^{2}$, this makes the equation of $(A B P)$ as $$ 0=-a^{2} y z-b^{2} z x-c^{2} x y+\frac{a^{2}-b^{2}+c^{2}}{2} z(x+y+z) $$ To solve for $Q$, set $x=0$ to get to get $$ a^{2} y z=\frac{a^{2}-b^{2}+c^{2}}{2} z(y+z) \Longrightarrow \frac{y}{z}=\frac{a^{2}-b^{2}+c^{2}}{a^{2}+b^{2}-c^{2}} $$ In other words, $$ Q=\left(0: a^{2}-b^{2}+c^{2}: a^{2}+b^{2}-c^{2}\right) $$ Taking the average with $A=(1,0,0)$ then gives $$ N=\left(2 a^{2}: a^{2}-b^{2}+c^{2}: a^{2}+b^{2}-c^{2}\right) . $$ The equation for the perpendicular bisector of $\overline{B C}$ is given by (see EGMO 7.19) $$ 0=a^{2}(z-y)+x\left(c^{2}-b^{2}\right) $$ which contains $N$, as needed. 『 Extremely ill-advised complex numbers approaches (outline). Suppose we pick $a$, $b, c$ as the unit circle, and let $m=(b+c) / 2$. Using the fully general "foot" formula, one can get $$ p=\frac{(a-m) \bar{c}+(\bar{a}-\bar{m}) c+\bar{a} m-a \bar{m}}{2(\bar{a}-\bar{m})}=\frac{a^{2} b-a^{2} c-a b^{2}-2 a b c-a c^{2}+b^{2} c+3 b c^{2}}{4 b c-2 a(b+c)} $$ Meanwhile, an extremely ugly calculation will eventually yield $$ q=\frac{\frac{b c}{a}+b+c-a}{2} $$ SO $$ n=\frac{a+q}{2}=\frac{a+b+c+\frac{b c}{a}}{4}=\frac{(a+b)(a+c)}{2 a} $$ There are a few ways to then verify $N B=N C$. The simplest seems to be to verify that $$ \frac{n-\frac{b+c}{2}}{b-c}=\frac{a-b-c+\frac{b c}{a}}{4(b-c)}=\frac{(a-b)(a-c)}{2 a(b-c)} $$ is pure imaginary, which is clear. ## §1.2 USAMO 2023/2, proposed by Carl Schildkraut Available online at https://aops.com/community/p27349314. ## Problem statement Solve over the positive real numbers the functional equation $$ f(x y+f(x))=x f(y)+2 . $$ The answer is $f(x) \equiv x+1$, which is easily verified to be the only linear solution. We show conversely that $f$ is linear. Let $P(x, y)$ be the assertion. Claim $-f$ is weakly increasing. Proof. Assume for contradiction $a>b$ but $f(a)\nu_{2}(a)$ ); - Operate on any other entry besides the first one, otherwise. A double induction then shows that - Just before each of Bob's turns, $\nu_{2}(x)>\nu_{2}(a)$ always holds; and - After each of Bob's turns, $\nu_{2}(x) \geq \nu_{2}(a)$ always holds. In particular Bob will never run out of legal moves, since halving $x$ is always legal. ## §2.2 USAMO 2023/5, proposed by Ankan Bhattacharya Available online at https://aops.com/community/p27349487. ## Problem statement Let $n \geq 3$ be an integer. We say that an arrangement of the numbers $1,2, \ldots, n^{2}$ in an $n \times n$ table is row-valid if the numbers in each row can be permuted to form an arithmetic progression, and column-valid if the numbers in each column can be permuted to form an arithmetic progression. For what values of $n$ is it possible to transform any row-valid arrangement into a column-valid arrangement by permuting the numbers in each row? Answer: $n$ prime only. 【 Proof for $n$ prime. Suppose $n=p$. In an arithmetic progression with $p$ terms, it's easy to see that either every term has a different residue modulo $p$ (if the common difference is not a multiple of $p$ ), or all of the residues coincide (when the common difference is a multiple of $p$ ). So, look at the multiples of $p$ in a row-valid table; there is either 1 or $p$ per row. As there are $p$ such numbers total, there are two cases: - If all the multiples of $p$ are in the same row, then the common difference in each row is a multiple of $p$. In fact, it must be exactly $p$ for size reasons. In other words, up to permutation the rows are just the $k(\bmod p)$ numbers in some order, and this is obviously column-valid because we can now permute such that the $k$ th column contains exactly $\{(k-1) p+1,(k-1) p+2, \ldots, k p\}$. - If all the multiples of $p$ are in different rows, then it follows each row contains every residue modulo $p$ exactly once. So we can permute to a column-valid arrangement by ensuring the $k$ th column contains all the $k(\bmod p)$ numbers. 【 Counterexample for $n$ composite (due to Anton Trygub). Let $p$ be any prime divisor of $n$. Construct the table as follows: - Row 1 contains 1 through $n$. - Rows 2 through $p+1$ contain the numbers from $p+1$ to $n p+n$ partitioned into arithmetic progressions with common difference $p$. - The rest of the rows contain the remaining numbers in reading order. For example, when $p=2$ and $n=10$, we get the following table: $\left[\begin{array}{cccccccccc}1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\ \mathbf{1 1} & 13 & 15 & 17 & 19 & 21 & 23 & 25 & 27 & 29 \\ 12 & 14 & 16 & 18 & 20 & 22 & 24 & 26 & 28 & 30 \\ 31 & 32 & 33 & 34 & 35 & 36 & 37 & 38 & 39 & 40 \\ 41 & 42 & 43 & 44 & 45 & 46 & 47 & 48 & 49 & 50 \\ 51 & 52 & 53 & 54 & 55 & 56 & 57 & 58 & 59 & 60 \\ 61 & 62 & 63 & 64 & 65 & 66 & 67 & 68 & 69 & 70 \\ 71 & 72 & 73 & 74 & 75 & 76 & 77 & 78 & 79 & 80 \\ 81 & 82 & 83 & 84 & 85 & 86 & 87 & 88 & 89 & 90 \\ 91 & 92 & 93 & 94 & 95 & 96 & 97 & 98 & 99 & 100\end{array}\right]$ We claim this works fine. Assume for contradiction the rows may be permuted to obtain a column-valid arrangement. Then the $n$ columns should be arithmetic progressions whose smallest element is in $[1, n]$ and whose largest element is in $\left[n^{2}-n+1, n^{2}\right]$. These two elements must be congruent modulo $n-1$, so in particular the column containing 2 must end with $n^{2}-n+2$. Hence in that column, the common difference must in fact be exactly $n$. And yet $n+2$ and $2 n+2$ are in the same row, contradiction. ## §2.3 USAMO 2023/6, proposed by Zack Chroman Available online at https://aops.com/community/p27349354. ## Problem statement Let $A B C$ be a triangle with incenter $I$ and excenters $I_{a}, I_{b}, I_{c}$ opposite $A, B$, and $C$, respectively. Given an arbitrary point $D$ on the circumcircle of $\triangle A B C$ that does not lie on any of the lines $I I_{a}, I_{b} I_{c}$, or $B C$, suppose the circumcircles of $\triangle D I I_{a}$ and $\triangle D I_{b} I_{c}$ intersect at two distinct points $D$ and $F$. If $E$ is the intersection of lines $D F$ and $B C$, prove that $\angle B A D=\angle E A C$. Here are two approaches. ![](https://cdn.mathpix.com/cropped/2024_11_19_5f0e796e43a11586ccbfg-15.jpg?height=920&width=763&top_left_y=896&top_left_x=658) \I Barycentric coordinates (Carl Schildkraut). With reference triangle $\triangle A B C$, set $D=(r: s: t)$. Claim - The equations of $\left(D I I_{a}\right)$ and $\left(D I_{b} I_{c}\right)$ are, respectively, $$ \begin{aligned} & 0=-a^{2} y z-b^{2} z x-c^{2} x y+(x+y+z) \cdot\left(b c x-\frac{b c r}{c s-b t}(c y-b z)\right) \\ & 0=-a^{2} y z-b^{2} z x-c^{2} x y+(x+y+z) \cdot\left(-b c x+\frac{b c r}{c s+b t}(c y+b z)\right) . \end{aligned} $$ Proof. Since $D \in(A B C)$, we have $a^{2} s t+b^{2} t r+c^{2} r s=0$. Now each equation can be verified by direct substitution of three points. By EGMO Lemma 7.24, the radical axis is then given by $$ \overline{D F}: b c x-\frac{b c r}{c s-b t}(c y-b z)=-b c x+\frac{b c r}{c s+b t}(c y+b z) . $$ Now the point $$ \left(0: \frac{b^{2}}{s}: \frac{c^{2}}{t}\right)=\left(0: b^{2} t: c^{2} s\right) $$ lies on line $D F$ by inspection, and is obviously on line $B C$, hence it coincides with $E$. This lies on the isogonal of $\overline{A D}$ (by EGMO Lemma 7.6), as needed. 『 Synthetic approach (Anant Mudgal). Focus on just $\left(D I I_{a}\right)$. Let $P$ be the second intersection of $\left(D I I_{a}\right)$ with $(A B C)$, and let $M$ be the midpoint of minor arc $\widehat{B C}$. Then by radical axis, lines $A M, D P$, and $B C$ are concurrent at a point $K$. Let $E^{\prime}=\overline{P M} \cap \overline{B C}$. ![](https://cdn.mathpix.com/cropped/2024_11_19_5f0e796e43a11586ccbfg-16.jpg?height=864&width=901&top_left_y=776&top_left_x=583) Claim - We have $\measuredangle B A D=\measuredangle E^{\prime} A C$. Proof. By shooting lemma, $A K E^{\prime} P$ is cyclic, so $$ \measuredangle K A E^{\prime}=\measuredangle K P E^{\prime}=\measuredangle D P M=\measuredangle D A M $$ Claim - The power of point $E^{\prime}$ with respect to $\left(D I I_{a}\right)$ is $2 E^{\prime} B \cdot E^{\prime} C$. Proof. Construct parallelogram $I E^{\prime} I_{a} X$. Since $M I^{2}=M E^{\prime} \cdot M P$, we can get $$ \measuredangle X I_{a} I=\measuredangle I_{a} I E^{\prime}=\measuredangle M I E^{\prime}=\measuredangle M P I=\measuredangle X P I $$ Hence $X$ lies on $\left(D I I_{a}\right)$, and $E^{\prime} X \cdot E^{\prime} P=2 E^{\prime} M \cdot E^{\prime} P=2 E^{\prime} B \cdot E^{\prime} C$. Repeat the argument on $\left(D I_{b} I_{c}\right)$; the same point $E^{\prime}$ (because of the first claim) then has power $2 E^{\prime} B \cdot E^{\prime} C$ with respect to $\left(D I_{b} I_{c}\right)$. Hence $E^{\prime}$ lies on the radical axis of $\left(D I I_{a}\right)$ and $\left(D I_{b} I_{c}\right)$, ergo $E^{\prime}=E$. The first claim then solves the problem.