CAMO 2022 Solutions
CAMO 2022 Solutions
CAMO 2022 Solutions
B. (Tovi Wen) Let ABC be an acute triangle with orthocenter H. Let M be the midpoint of
BC and D be the foot from A to BC. Let P be the point such that convex quadrilateral
HM P D is a parallelogram, and let the circle with center P passing through points B and
C intersect lines AB and AC again at points X and Y , respectively. Prove that points
D, X, Y are collinear.
C. (Espen Slettnes) Let a1 < a2 < · · · < an be positive integers such that the set of
positive integers can be partitioned into an infinite number of sets, each of the form
{a1 k, a2 k, . . . , an k} for some positive integer k.
Prove that the set of positive rational numbers can be partitioned into an infinite number
of sets, each of the form {a1 k, a2 k, . . . , an k} for some positive rational number k.
E. (Eric Shen, Espen Slettnes, Justin Lee, Raymond Feng, Sean Li) Let a1 < a2 < · · · < an be
positive integers such that the set of positive integers can be partitioned into an infinite
number of sets, each of the form {a1 k, a2 k, . . . , an k} for some positive integer k. Prove
that ai | an for all 1 ≤ i ≤ n.
1
CAMO/CJMO 2022 Solutions Eric Shen (March 4–19, 2022)
G. (Nathan Xiong) Find all functions f : R → R such that for all real numbers x and y,
H. (Albert Wang) An airport has a collection of gates arranged in an 102022 × 102022 grid,
labeled 1, 2, 3, . . . , 104044 in some order. A traveler has forgotten her gate, and an
employee unhelpfully tells her that her gate is the unique gate with the property that its
label is less than all neighboring gates (horizontally or vertically). Slightly sympathetic,
the employee allows the traveler to ask a number of questions, in which she asks for the
label of a particular gate and the employee answers truthfully. (The traveler knows the
layout of the airport but not the labels of each gate.)
Prove that the traveler may locate her gate by asking at most 102023 questions, regardless
of the gates’ labelings.
I. (Eric Shen, Raymond Feng) Prove or disprove the following assertion: for each positive
integer k, we have
§3 Test schema
3rd Christmas American Math Olympiad: BDE HIJ
5th Christmas Junior Math Olympiad: ABC FGI
2
CAMO/CJMO 2022 Solutions Eric Shen (March 4–19, 2022)
Yes: √ √ √
⌈(20 + 8 6)n ⌉ (20 + 8 6)n + (20 − 8 6)n
√ = √ √ = 4n .
⌈(5 + 2 6)n ⌉ (5 + 2 6)n + (5 − 2 6)n
Let HA be the reflection of H over BC (which lies on the circumcircle) and let A′ be the
antipode of A, so P is the midpoint of HA A′ .
Proof. Note ∠ABA′ = 90◦ and the perpendicular from P to AB bisects BX, so BXHA A′ is a
trapezoid with ∠BXHA = 90◦ .
Let S be a finite set that can tile Zd≥0 via translations. Then S can also tile Zd via
translations.
Let a blob of size n be a disjoint collection of translations of S that fully cover an n×n×· · ·×n
hypercube, and so that each translation of S intersects the hypercube. Say a blob is balanced if in
our tiling of Zd≥0 , there are infinitely many instances of it centered on the line x1 = x2 = · · · = xn .
We construct a sequence of balanced blobs ∅ = B0 , B1 , B2 , . . . of increasing size.
3
CAMO/CJMO 2022 Solutions Eric Shen (March 4–19, 2022)
For each k ≥ 1, if Bk has size n, consider all blobs of size n + 2 centered at some instance of
Bk . There are finitely many such noncongruent blobs, but infinitely many that occur in Zd≥0 .
By infinite Pigeonhole, one of these blobs Bk+1 appears infinitely often in Zd≥0 .
Now a tiling of Zn is given by [
B= Bk
k≥1
Remark. The axiom of choice is not needed in this proof to select the Bk since we may select them
deterministically.
Remark (Authorship). “Why can’t we just write down an FE?” –Raymond, right before writing
down this FE.
4
CAMO/CJMO 2022 Solutions Eric Shen (March 4–19, 2022)
Setup Let p1 , . . . , pd be the primes dividing a1 , . . . , an , and let T be the set of all k by
which S tiles the multiplicative span of p1 , . . . , pd . Note that
! !
X νp (s) νp (s) X νp (k) ν p (k) 1 1
x1 1 · · · xd d · x1 1 · · · xd d = ··· ,
1 − x1 1 − xd
s∈S k∈T
| {z } | {z }
S(x1 ,...,xd ) T (x1 ,...,xd )
where S(x1 , . . . , xd ) is a polynomial and T (x1 , . . . , xd ) is a formal power series, both with all
coefficients 0 or 1.
Also let N ≫ deg S, and let
2 d−1
S(x)
e := S x, xN , xN , . . . , xN .
Magic Note that at any point (x1 , . . . , xd ) with |xi | < 1 for all i, T (x1 , . . . , xd ) converges,
so S(x1 , . . . , xd ) ̸= 0. Hence Se does not have any roots with magnitude less than 1.
Since Se has constant term 1, the product of its roots has magnitude 1, so all the roots of Se
have magnitude 1. It follows that Se is palindromic, implying the desired.
as desired.
Remark. If m is prime, it is true that a set S of size mn can tile Z via translations if and
only if there are exactly n scales. See https://www.sciencedirect.com/science/article/pii/
0022314X77900543.
5
CAMO/CJMO 2022 Solutions Eric Shen (March 4–19, 2022)
Of course the traveler’s gate is gate 1. We show the following by strong induction on N :
It is clear this is sufficient to solve the problem, since the traveler can query an arbitrary gate
k, which satisfies the imposed condition.
The case N = 1 is clear.
base
N −1 N −1 Now in an N × N grid, select a middle row, for which there
are 2 rows above and 2 rows below it, and similarly select a middle column. Let the
middle row and middle column divide the grid into four quadrants.
Query the 2N − 1 gates along the middle row and the middle column. Identify the gate of
smallest label g among these 2N − 1 gates.
If g > k, then note that for each 1 ≤ i ≤ k, one may find a path from gate i to gate 1 by
moving to a neighboring gate of smaller label until arriving at gate 1. By definition, no such
path intersects the middle row or column, Nso N 1, 2, . . . , k all lie in the same quadrant as
gates
k. This quadrant may be bounded in a 2 × 2 square that contains gates 1, 2, . . . , k, so
by the inductive hypothesis we may locate gate 1 in ≤ 5 N2 queries, for a total of
≤ (2N − 1) + 5 N2 ≤ 5N.
6
CAMO/CJMO 2022 Solutions Eric Shen (March 4–19, 2022)
Otherwise if g ≤ k, then query the two grids adjacent to g that have not yet been queried.
Then since g ≤ k, one of these has a label ĝ with ĝ < g. Analogously, we may show that gates
1, 2, . . . , ĝ all lie in the same quadrant as ĝ, so by the inductive hypothesis we may locate gate
1 in
≤ (2N − 1) + 2 + 5 N2 ≤ 5N
(a − 1)2b + 1
0 ≡ (a − 1)b+1 + (a − 1)−(b−1) ≡ (mod p),
(a − 1)b−1
Remark. Taking the other square root of 2, a = 11, generates n = 28, but we take the more
natural square root for demonstration purposes.
Therefore we seek b such that 5b−1 ≡ −7b+1 (the other equation is implied); i.e. (5/7)b ≡
−35 ≡ −1 (mod 17). It is not hard to check that (5/7)4 ≡ 84 ≡ −1 (mod 17), so b = 4 is
valid.
Remark. We require a bit of luck to ensure that b is even. Conveniently, b is almost always even
(see below remark). In fact, choosing p a Fermat prime ensures b is even.
Solving n ≡ 6 (mod 17) and n ≡ 4 (mod 16) gives the solution n = 244.
7
CAMO/CJMO 2022 Solutions Eric Shen (March 4–19, 2022)
A1
U
Q A5
A2
P B2
A3 A4
B5
8
CAMO/CJMO 2022 Solutions Eric Shen (March 4–19, 2022)
P U = P A2 + A2 Q = P A5 + A5 Q = P V
By the claim, the distances from T to A2 B2 and A5 B5 are equal. But since T A2 ∥ A5 B2 and
T A5 ∥ A2 B5 , we have
Hence A2 B2 = A5 B5 , as desired.