USAMO-2022-notes
USAMO-2022-notes
Evan Chen《陳誼廷》
22 January 2025
This is a compilation of solutions for the 2022 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 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 2022/1, proposed by Ankan Bhattacharya . . . . . . . . . . . . . 3
1.2 USAMO 2022/2, proposed by Ankan Bhattacharya . . . . . . . . . . . . . 4
1.3 USAMO 2022/3, proposed by Hung-Hsun Hans Yu . . . . . . . . . . . . . 6
2 Solutions to Day 2 8
2.1 USAMO 2022/4, proposed by Holden Mui . . . . . . . . . . . . . . . . . . 8
2.2 USAMO 2022/5, proposed by Gabriel Carroll . . . . . . . . . . . . . . . . 9
2.3 USAMO 2022/6, proposed by Yannick Yao . . . . . . . . . . . . . . . . . 10
1
USAMO 2022 Solution Notes web.evanchen.cc, updated 22 January 2025
§0 Problems
1. Let a and b be positive integers. Every cell of an (a + b + 1) × (a + b + 1) grid is
colored either amber or bronze such that there are at least a2 + ab − b amber cells
and at least b2 + ab − a bronze cells. Prove that it is possible to choose a amber
cells and b bronze cells such that no two of the a + b chosen cells lie in the same
row or column.
Prove that the difference of the areas of B and W depends only on the numbers b
and w, and not on how the 2n-gon was assembled.
4. Find all pairs of primes (p, q) for which p − q and pq − q are both perfect squares.
6. There are 2022 users on a social network called Mathbook, and some of them are
Mathbook-friends. (On Mathbook, friendship is always mutual and permanent.)
Starting now, Mathbook will only allow a new friendship to be formed between two
users if they have at least two friends in common. What is the minimum number
of friendships that must already exist so that every user could eventually become
friends with every other user?
2
USAMO 2022 Solution Notes web.evanchen.cc, updated 22 January 2025
§1 Solutions to Day 1
§1.1 USAMO 2022/1, proposed by Ankan Bhattacharya
Available online at https://aops.com/community/p24774812.
Problem statement
Proof. If one picks a random transversal, the expected value of the number of amber
cells is at least
a2 + ab − b 1
= (a − 1) + > a − 1.
a+b+1 a+b+1
Now imagine we transform Ta to Tb in some number of steps, by repeatedly choosing
cells c and c0 and swapping them with the two other corners of the rectangle formed by
their row/column, as shown in the figure.
c′
=⇒
c
By “discrete intermediate value theorem”, the number of amber cells will be either a or
a + 1 at some point during this transformation. This completes the proof.
3
USAMO 2022 Solution Notes web.evanchen.cc, updated 22 January 2025
Problem statement
Prove that the difference of the areas of B and W depends only on the numbers b
and w, and not on how the 2n-gon was assembled.
We are going to prove that one may swap a black rod with an adjacent white rod (as well
as the rods parallel to them) without affecting the difference in the areas of B − W . Let
~u and ~v denote the originally black and white vectors that were adjacent on the 2n-gon
and are now going to be swapped. Let ~x denote the sum of all the other black vectors
between ~u and −~u, and define ~y similarly. See the diagram below, where B0 and W0 are
the polygons before the swap, and B1 and W1 are the resulting changed polygons.
4
USAMO 2022 Solution Notes web.evanchen.cc, updated 22 January 2025
⃗x ⃗x
⃗u B0 B1
⃗v
−⃗x
−⃗x
⃗y ⃗u ⃗y
⃗v
W0 W1
−⃗y −⃗y
Observe that the only change in B and W is in the parallelograms shown above in
each diagram. Letting ∧ denote the wedge product, we need to show that
~u ∧ ~x − ~v ∧ ~y = ~v ∧ ~x − ~u ∧ ~y
Proof. We have (~u − ~v ) ⊥ (~u + ~v ) because ~u and ~v are the same length.
For the other perpendicularity, note that ~u + ~v + ~x + ~y traces out a diameter of the
circumcircle of the original 2n-gon; call this diameter AB, so
A + ~u + ~v + ~x + ~y = B.
Now point A + ~u + ~v is a point on this semicircle, which means (by the inscribed angle
theorem) the angle between ~u + ~v and ~x + ~y is 90◦ .
5
USAMO 2022 Solution Notes web.evanchen.cc, updated 22 January 2025
Problem statement
The answer is f (x) ≡ c/x for any c > 0. This works, so we’ll prove this is the only
solution. The following is based on the solution posted by pad on AoPS.
In what follows, f n as usual denotes f iterated n times, and P (x, y) is the given
statement. Also, we introduce the notation Q for the statement
To see why this statement Q is true, assume for contradiction that a > f (f (b)); then
consider P (b, a − f (f (b))) to get a contradiction.
The main idea of the problem is the following:
Claim — Any function f : R>0 → R>0 obeying statement Q satisfies f 2 (x) = f 4 (x).
So this already implies f 4 (x) ≥ f 2 (x) by choosing t = f 2 (x). It also gives f (x) ≤ f 3 (x) ≤
f 5 (x) by choosing t = f (x), t = f 3 (x).
Then Q(f 4 (x), x) is valid and gives f 2 (x) ≥ f 4 (x), as needed.
Proof. Suppose f (u) = f (v) for some u > v. From Q(u, v) and Q(v, u) we have f 2 (v) ≥ u
and f 2 (u) ≥ v. Note that for all x > 0 we have statements
Since f is injective, we obtain that f 2 (x) = x. Thus P (x, y) now becomes the statement
h i
P (x, y) : f (x) = f (x + y) · 1 + f (xf (y)) .
In particular
f (1)
P (1, y) =⇒ f (1 + y) =
1+y
6
USAMO 2022 Solution Notes web.evanchen.cc, updated 22 January 2025
7
USAMO 2022 Solution Notes web.evanchen.cc, updated 22 January 2025
§2 Solutions to Day 2
§2.1 USAMO 2022/4, proposed by Holden Mui
Available online at https://aops.com/community/p24774670.
Problem statement
Find all pairs of primes (p, q) for which p − q and pq − q are both perfect squares.
The answer is (3, 2) only. This obviously works so we focus on showing it is the only one.
a2 = p − q
b2 = pq − q.
Note that 0 < a < p, and 0 < b < p (because q ≤ p). Now subtracting gives
(b − a) (b + a) = b2 − a2 = p(q − 1)
| {z } | {z }
<p <2p
p−1 p2 − qp − p + q
s2 := (p − q) · =
q q
is also a perfect square. Rewriting this equation gives
p2 − p
q= .
s2 + (p − 1)
8
USAMO 2022 Solution Notes web.evanchen.cc, updated 22 January 2025
Problem statement
The answer is 11 and, more generally, if 2022 is replaced by N then the answer is
blog2 N c + 1.
¶ Bound. Suppose for contradiction that 2k − 1 > N and choose xn = −n for each
n = 1, . . . , N . Now for each index 1 ≤ n ≤ N , define
As each S(nt) is nonempty, by pigeonhole, two S(n)’s coincide, say S(n) = S(n0 ) for
n < n0 . But it’s plainly impossible that xn > xn0 in that case due to the essentially
increasing condition.
9
USAMO 2022 Solution Notes web.evanchen.cc, updated 22 January 2025
Problem statement
There are 2022 users on a social network called Mathbook, and some of them are
Mathbook-friends. (On Mathbook, friendship is always mutual and permanent.)
Starting now, Mathbook will only allow a new friendship to be formed between
two users if they have at least two friends in common. What is the minimum number
of friendships that must already exist so that every user could eventually become
friends with every other user?
¶ Construction. For even n, start with an edge ab, and then create n/2 − 1 copies of
C4 that use ab as an edge, as shown below for n = 14 (six copies of C4 ).
a b
This can be completed into Kn by first completing the n/2 − 1 C4 ’s into K4 , then
connecting red vertices to every grey vertex, and then finishing up.
The construction for odd n is the same except with one extra vertex c which is connected
to both a and b.
• Initially, C consists of one K2 for every edge of G, and each edge is labeled in the
obvious way.
10
USAMO 2022 Solution Notes web.evanchen.cc, updated 22 January 2025
• At each step, the algorithm arbitrarily takes any C4 = abcd whose four edges ab,
bc, cd, da do not all have the same label. Consider these labels that appear (at
least two, and up to four), and let V be the union of all vertices in any of these 2-4
cliques.
• Do the following graph operations: connect ac and bd, then connect every vertex
in V − {a, b, c, d} to each of {a, b, c, d}. Finally, complete this to a clique on V .
• Update L by replacing every edge that was labeled with one of these 2-4 cliques with
the label KV . Also, update every newly created edge to have label KV . However,
if there were existing edges not labeled with one of the 2-4 cliques, then we do not
update these!
• Stop once every C4 has only one label appearing among its edges. When this occurs,
no operations are possible at all on the graph.
A few steps of the process are illustrated below for a graph on six vertices with nine initial
edges. There are initially nine K2 ’s labeled A, B, . . . , I. Original edges are always bolder
than added edges. The relabeled edges in each step are highlighted in color. Notice how
we need an entirely separate operation to get G to become L, even though no new edges
are drawn in the graph.
1 B 2 C 3 1 J 2 C 3
G I I
A H D J G J J D
6 F 5 E 4 6 J 5 E 4
Initial setup Step 1: Operate on 1256.
Merges ABFH into J.
θ(J) = 4
K L
1 K 2 K 3 1 L 2 L 3
K L
K G K K K D L L L L L D
6 K 5 E 4 6 L 5 E 4
Step 2: Operate on 1235. Step 3: Operate on 2356.
Merges CIJ into K. Merges GK into L.
θ(K) = 6 θ(L) = 7
11
USAMO 2022 Solution Notes web.evanchen.cc, updated 22 January 2025
3|K|
θ(K) ≥ − 2.
2
where |K| is the number of vertices in K.
Proof. By induction on the time step of the algorithm. The base case is clear, because
then K is just a single edge of G, so θ(K) = 1 and |K| = 2.
The inductive step is annoying casework based on the how the merge occurred. Let
C4 = abcd be the 4-cycle operated on. In general, the θ value of a newly created K is
exactly the sum of the θ values of the merged cliques, by definition. Meanwhile, |K| is
the number of vertices in the union of the merged cliques; so it’s the sum of the sizes of
these cliques minus some error due to overcounting of vertices appearing more than once.
To be explicit:
• Suppose we merged four cliques W , X, Y , Z. By definition,
12
USAMO 2022 Solution Notes web.evanchen.cc, updated 22 January 2025
13