USAMO 2015 Solution Notes
Evan Chen《陳誼廷》
15 April 2024
This is a compilation of solutions for the 2015 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 2015/1, proposed by Titu Andreescu ..... 3 1.2 USAMO 2015/2, proposed by Zuming Feng, Jacek Fabrykowski ..... 4 1.3 USAMO 2015/3, proposed by Gabriel Carroll ..... 7 2 Solutions to Day 2 ..... 9 2.1 USAMO 2015/4, proposed by Maria Monks Gillespie ..... 9 2.2 USAMO 2015/5, proposed by Mohsen Jamaali ..... 11 2.3 USAMO 2015/6, proposed by Iurie Boreico ..... 12
§0 Problems
- Solve in integers the equation
- Quadrilateral $A P B Q$ is inscribed in circle $\omega$ with $\angle P=\angle Q=90^{\circ}$ and $A P=$ $A Q<B P$. Let $X$ be a variable point on segment $\overline{P Q}$. Line $A X$ meets $\omega$ again at $S$ (other than $A$ ). Point $T$ lies on $\operatorname{arc} A Q B$ of $\omega$ such that $\overline{X T}$ is perpendicular to $\overline{A X}$. Let $M$ denote the midpoint of chord $\overline{S T}$. As $X$ varies on segment $\overline{P Q}$, show that $M$ moves along a circle.
- Let $S={1,2, \ldots, n}$, where $n \geq 1$. Each of the $2^{n}$ subsets of $S$ is to be colored red or blue. (The subset itself is assigned a color and not its individual elements.) For any set $T \subseteq S$, we then write $f(T)$ for the number of subsets of $T$ that are blue. Determine the number of colorings that satisfy the following condition: for any subsets $T_{1}$ and $T_{2}$ of $S$,
- Steve is piling $m \geq 1$ indistinguishable stones on the squares of an $n \times n$ grid. Each square can have an arbitrarily high pile of stones. After he finished piling his stones in some manner, he can then perform stone moves, defined as follows. Consider any four grid squares, which are corners of a rectangle, i.e. in positions $(i, k),(i, l)$, $(j, k),(j, l)$ for some $1 \leq i, j, k, l \leq n$, such that $i<j$ and $k<l$. A stone move consists of either removing one stone from each of $(i, k)$ and $(j, l)$ and moving them to $(i, l)$ and $(j, k)$ respectively, or removing one stone from each of $(i, l)$ and $(j, k)$ and moving them to $(i, k)$ and $(j, l)$ respectively.
Two ways of piling the stones are equivalent if they can be obtained from one another by a sequence of stone moves. How many different non-equivalent ways can Steve pile the stones on the grid? 5. Let $a, b, c, d, e$ be distinct positive integers such that $a^{4}+b^{4}=c^{4}+d^{4}=e^{5}$. Show that $a c+b d$ is a composite number. 6. Consider $0<\lambda<1$, and let $A$ be a multiset of positive integers. Let $A_{n}={a \in$ $A: a \leq n}$. Assume that for every $n \in \mathbb{N}$, the multiset $A_{n}$ contains at most $n \lambda$ numbers. Show that there are infinitely many $n \in \mathbb{N}$ for which the sum of the elements in $A_{n}$ is at most $\frac{n(n+1)}{2} \lambda$.
§1 Solutions to Day 1
§1.1 USAMO 2015/1, proposed by Titu Andreescu
Available online at https://aops.com/community/p4769940.
Problem statement
Solve in integers the equation
We do the trick of setting $a=x+y$ and $b=x-y$. This rewrites the equation as
where $a, b \in \mathbb{Z}$ have the same parity. This becomes
which is enough to imply $3 \mid a$, so let $a=3 c$. Miraculously, this becomes
So a solution must have $4 c+1=m^{2}$, with $m$ odd. This gives
For mod 8 reasons, this always generates a valid integer solution, so this is the complete curve of solutions. Actually, putting $m=2 n+1$ gives the much nicer curve
and permutations. For $n=0,1,2,3$ this gives the first few solutions are $(-1,1),(3,3),(19,-1),(53,-17)$, (and permutations).
§1.2 USAMO 2015/2, proposed by Zuming Feng, Jacek Fabrykowski
Available online at https://aops.com/community/p4769957.
Problem statement
Quadrilateral $A P B Q$ is inscribed in circle $\omega$ with $\angle P=\angle Q=90^{\circ}$ and $A P=A Q<$ $B P$. Let $X$ be a variable point on segment $\overline{P Q}$. Line $A X$ meets $\omega$ again at $S$ (other than $A$ ). Point $T$ lies on $\operatorname{arc} A Q B$ of $\omega$ such that $\overline{X T}$ is perpendicular to $\overline{A X}$. Let $M$ denote the midpoint of chord $\overline{S T}$.
As $X$ varies on segment $\overline{P Q}$, show that $M$ moves along a circle.
We present three solutions, one by complex numbers, two more synthetic. (A fourth solution using median formulas is also possible.) Most solutions will prove that the center of the fixed circle is the midpoint of $\overline{A O}$ (with $O$ the center of $\omega$ ); this can be recovered empirically by letting
- $X$ approach $P$ (giving the midpoint of $\overline{B P}$ )
- $X$ approach $Q$ (giving the point $Q$ ), and
- $X$ at the midpoint of $\overline{P Q}$ (giving the midpoint of $\overline{B Q}$ ) which determines the circle; this circle then passes through $P$ by symmetry and we can find the center by taking the intersection of two perpendicular bisectors (which two?).
【 Complex solution (Evan Chen). Toss on the complex unit circle with $a=-1, b=1$, $z=-\frac{1}{2}$. Let $s$ and $t$ be on the unit circle. We claim $Z$ is the center.
It follows from standard formulas that
thus
which depends only on $P$ and $Q$, and not on $X$. Thus
does not depend on $X$, done.
『 Homothety solution (Alex Whatley). Let $G, N, O$ denote the centroid, nine-point center, and circumcenter of triangle $A S T$, respectively. Let $Y$ denote the midpoint of $\overline{A S}$. Then the three points $X, Y, M$ lie on the nine-point circle of triangle $A S T$, which is centered at $N$ and has radius $\frac{1}{2} A O$.

Let $R$ denote the radius of $\omega$. Note that the nine-point circle of $\triangle A S T$ has radius equal to $\frac{1}{2} R$, and hence is independent of $S$ and $T$. Then the power of $A$ with respect to the nine-point circle equals
and hence
which does not depend on the choice of $X$. So $N$ moves along a circle centered at $A$. Since the points $O, G, N$ are collinear on the Euler line of $\triangle A S T$ with
it follows by homothety that $G$ moves along a circle as well, whose center is situated one-third of the way from $A$ to $O$. Finally, since $A, G, M$ are collinear with
it follows that $M$ moves along a circle centered at the midpoint of $\overline{A O}$.
『 Power of a point solution (Zuming Feng, official solution). We complete the picture by letting $\triangle K Y X$ be the orthic triangle of $\triangle A S T$; in that case line $X Y$ meets the $\omega$ again at $P$ and $Q$.

The main claim is: Claim - Quadrilateral $P Q K M$ is cyclic.
Proof. To see this, we use power of a point: let $V=\overline{Q X Y P} \cap \overline{S K M T}$. One approach is that since $(V K ; S T)=-1$ we have $V Q \cdot V P=V S \cdot V T=V K \cdot V M$. A longer approach is more elementary:
using the nine-point circle, and the circle with diameter $\overline{S T}$. But the circumcenter of $P Q K M$, is the midpoint of $\overline{A O}$, since it lies on the perpendicular bisectors of $\overline{K M}$ and $\overline{P Q}$. So it is fixed, the end.
§1.3 USAMO 2015/3, proposed by Gabriel Carroll
Available online at https://aops.com/community/p4769949.
Problem statement
Let $S={1,2, \ldots, n}$, where $n \geq 1$. Each of the $2^{n}$ subsets of $S$ is to be colored red or blue. (The subset itself is assigned a color and not its individual elements.) For any set $T \subseteq S$, we then write $f(T)$ for the number of subsets of $T$ that are blue.
Determine the number of colorings that satisfy the following condition: for any subsets $T_{1}$ and $T_{2}$ of $S$,
For an $n$-coloring $\mathcal{C}$ (by which we mean a coloring of the subsets of ${1, \ldots, n}$ ), define the support of $\mathcal{C}$ as
Call a coloring nontrivial if $\operatorname{supp}(\mathcal{C}) \neq \varnothing$ (equivalently, the coloring is not all red). In that case, notice that
- the support is closed under unions and intersections: since if $f\left(T_{1}\right) f\left(T_{2}\right) \neq 0$ then necessarily both $f\left(T_{1} \cap T_{2}\right)$ and $f\left(T_{1} \cup T_{2}\right)$ are nonzero; and
- the support is obviously upwards closed.
Thus, the support must take the form
for some set $X$ (for example by letting $X$ be the minimal (by size) element of the support). Say $\mathcal{C}$ has full support if $X=\varnothing$ (equivalently, $\varnothing$ is blue).
Lemma
For a given $n$ and $B \subseteq{1, \ldots, n}$, there is exactly one $n$-coloring with full support in which the singletons colored blue are exactly those in $B$. Therefore there are exactly $2^{n} n$-colorings with full support.
Proof. To see there is at least one coloring, color only the subsets of $B$ blue. In that case
which satisfies the condition by Inclusion-Exclusion. To see this extension is unique, note that $f({b})$ is determined for each $b$ and we can then determine $f(T)$ inductively on $|T|$; hence there is at most one way to complete a coloring of the singletons, which completes the proof.
For a general nontrivial $n$-coloring $\mathcal{C}$, note that if $\operatorname{supp}(\mathcal{C})=[X, S]$, then we can think of it as an $(n-|X|)$-coloring with full support. For $|X|=k$, there are $\binom{n}{k}$ possible choices of $X \subseteq S$. Adding back in the trivial coloring, the final answer is
Remark. To be more explicit, the possible nontrivial colorings are exactly described by specifying two sets $X$ and $Y$ with $X \subseteq Y$, and coloring blue only the sets $T$ with $X \subseteq T \subseteq Y$. In particular, one deduces that in a working coloring, $f(T)$ is always either zero or a power of two. If one manages to notice this while working on the problem, it is quite helpful for motivating the solution, as it leads one to suspect that the working colorings have good structure.
§2 Solutions to Day 2
§2.1 USAMO 2015/4, proposed by Maria Monks Gillespie
Available online at https://aops.com/community/p4774079.
Problem statement
Steve is piling $m \geq 1$ indistinguishable stones on the squares of an $n \times n$ grid. Each square can have an arbitrarily high pile of stones. After he finished piling his stones in some manner, he can then perform stone moves, defined as follows. Consider any four grid squares, which are corners of a rectangle, i.e. in positions $(i, k),(i, l),(j, k)$, $(j, l)$ for some $1 \leq i, j, k, l \leq n$, such that $i<j$ and $k<l$. A stone move consists of either removing one stone from each of $(i, k)$ and $(j, l)$ and moving them to $(i, l)$ and $(j, k)$ respectively, or removing one stone from each of $(i, l)$ and $(j, k)$ and moving them to $(i, k)$ and $(j, l)$ respectively.
Two ways of piling the stones are equivalent if they can be obtained from one another by a sequence of stone moves. How many different non-equivalent ways can Steve pile the stones on the grid?
The answer is $\binom{m+n-1}{n-1}^{2}$. The main observation is that the ordered sequence of column counts (i.e. the number of stones in the first, second, etc. column) is invariant under stone moves, as does the analogous sequence of row counts.
\ Definitions. Call these numbers $\left(c_{1}, c_{2}, \ldots, c_{n}\right)$ and $\left(r_{1}, r_{2}, \ldots, r_{n}\right)$ respectively, with $\sum c_{i}=\sum r_{i}=m$. We say that the sequence $\left(c_{1}, \ldots, c_{n}, r_{1}, \ldots, r_{n}\right)$ is the signature of the configuration. These are the $2 m$ blue and red numbers shown in the example below (in this example we have $m=8$ and $n=3$ ).

Signature: $(5,2,1 ; 3,3,2)$ By stars-and-bars, the number of possible values $\left(c_{1}, \ldots, c_{n}\right)$ is $\binom{m+n-1}{n-1}$. The same is true for $\left(r_{1}, \ldots, r_{m}\right)$. So if we're just counting signatures, the total number of possible signatures is $\binom{m+n-1}{n-1}^{2}$.
【 Outline and setup. We are far from done. To show that the number of non-equivalent ways is also this number, we need to show that signatures correspond to pilings. In other words, we need to prove:
- Check that signatures are invariant around moves (trivial; we did this already);
- Check conversely that two configurations are equivalent if they have the same signatures (the hard part of the problem); and
- Show that each signature is realized by at least one configuration (not immediate, but pretty easy).
Most procedures to the second step are algorithmic in nature, but Ankan Bhattacharya gives the following far cleaner approach. Rather than having a grid of stones, we simply consider the multiset of ordered pairs $(x, y)$ corresponding to the stones. Then:
- a stone move corresponds to switching two $y$-coordinates in two different pairs.
- we redefine the signature to be the multiset $(X, Y)$ of $x$ and $y$ coordinates which appear. Explicitly, $X$ is the multiset that contains $c_{i}$ copies of the number $i$ for each $i$.
For example, consider the earlier example which had
- Two stones each at $(1,1),(1,2)$.
- One stone each at $(1,3),(2,1),(2,3),(3,2)$.
Its signature can then be reinterpreted as
In that sense, the entire grid is quite misleading! 『 Proof that two configurations with the same signature are equivalent. The second part is completed just because transpositions generate any permutation. To be explicit, given two sets of stones, we can permute the labels so that the first set is $\left(x_{1}, y_{1}\right), \ldots$, $\left(x_{m}, y_{m}\right)$ and the second set of stones is $\left(x_{1}, y_{1}^{\prime}\right), \ldots,\left(x_{m}, y_{m}^{\prime}\right)$. Then we just induce the correct permutation on $\left(y_{i}\right)$ to get $\left(y_{i}^{\prime}\right)$.
ब Proof that any signature has at least one configuration. Sort the elements of $X$ and $Y$ arbitrarily (say, in non-decreasing order). Put a stone whose $x$-coordinate is the $i$ th element of $X$, and whose $y$-coordinate is the $i$ th element of $Y$, for each $i=1,2, \ldots, m$. Then this gives a stone placement of $m$ stones with signature $(X, Y)$.
For example, if
then placing stones at $(1,1),(1,1),(1,1),(1,2),(1,2),(2,2),(2,3),(3,3)$ gives a valid piling with this signature.
§2.2 USAMO 2015/5, proposed by Mohsen Jamaali
Available online at https://aops.com/community/p4774020.
Problem statement
Let $a, b, c, d, e$ be distinct positive integers such that $a^{4}+b^{4}=c^{4}+d^{4}=e^{5}$. Show that $a c+b d$ is a composite number.
Assume to the contrary that $p=a c+b d$, so that
and hence
Claim - We should have $p>e$. Proof. We have $e^{5}=a^{4}+b^{4} \leq a^{5}+b^{5}<(a c+b d)^{5}=p^{5}$. Thus the above equation implies $p \leq \max \left(a-d, a+d, a^{2}+d^{2}\right)=a^{2}+d^{2}$. Similarly, $p \leq b^{2}+c^{2}$. So
or by subtraction
But since $a^{4}+b^{4}=c^{4}+d^{4}$ the numbers $a-c$ and $d-b$ should have the same sign, and so this is an obvious contradiction.
§2.3 USAMO 2015/6, proposed by lurie Boreico
Available online at https://aops.com/community/p4774023.
Problem statement
Consider $0<\lambda<1$, and let $A$ be a multiset of positive integers. Let $A_{n}={a \in A$ : $a \leq n}$. Assume that for every $n \in \mathbb{N}$, the multiset $A_{n}$ contains at most $n \lambda$ numbers. Show that there are infinitely many $n \in \mathbb{N}$ for which the sum of the elements in $A_{n}$ is at most $\frac{n(n+1)}{2} \lambda$.
For brevity, $# S$ denotes $|S|$. Let $x_{n}=n \lambda-# A_{n} \geq 0$. We now proceed by contradiction by assuming the conclusion fails for $n$ large enough; that is,
This means that for all sufficiently large $n$, say $n \geq N_{0}$, we have
In particular, each $x_{n}$ is the less than the average of all preceding terms. Intuitively this means $x_{n}$ should become close to each other, since they are also nonnegative.
However, we have a second condition we haven't used yet: the "integer" condition implies
for some fixed $\varepsilon>0$, namely $\varepsilon=\min {\lambda, 1-\lambda}$. Using the fact that consecutive terms differ by some fixed $\varepsilon$, we will derive a contradiction.
If we let $M$ be the average of $x_{1}, \ldots, x_{N_{0}}$, then we ought to have
Hence for $n>N_{0}$ we have $x_{n}+x_{n+1}<2 M-\varepsilon$, and so for large enough $n$ the average must drop to just above $M-\frac{1}{2} \varepsilon$. Thus for some large $N_{1}>N_{0}$, we will have
If we repeat this argument then with a large $N_{2}>N_{1}$, we obtain
and so on and so forth. This is a clear contradiction.
Remark. Note that if $A={2,2,3,4,5, \ldots}$ and $\lambda=1$ then contradiction. So the condition that $0<\lambda<1$ cannot be dropped, and (by scaling) neither can the condition that $A \subseteq \mathbb{Z}$.
Remark (Suggested by Zhao Ting-wei). Despite the relation
implying that $x_{n}$ is bounded, it does not alone imply that $x_{n}$ converges, not even to some nonzero value. Zhao Ting-Wei showed me that one can have a sequence which is zero "every so often" yet where the average is nonzero.
A counterexample is given explicitly by
which does not have a limit. For completeness, let's check this - let $H_{n}$ denote the $n$ 'th harmonic number, and compute
so $1+\frac{1}{n}<\frac{1}{n} \sum_{1}^{n-1} x_{n}$ as needed.