BMO SL 2022
BMO SL 2022
04 − 09 2022
Note of Confidentiality
Contributing countries
The Organising Committee and the Problem Selection Committee of the BMO 2022 wish
to thank the following countries for contributing problem proposals:
• Greece
• North Macedonia
• Romania
• Serbia
• United Kingdom
PROBLEMS 3
Algebra 3
Combinatorics 4
Geometry 5
Number Theory 6
SOLUTIONS 7
Algebra 7
A1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
A2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
A3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
A4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
A5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
A6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Combinatorics 16
C1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
C2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
C3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
C4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
C5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Geometry 24
G1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
G2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
G3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
G4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
G5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
G6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Number Theory 34
N1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
N2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
N3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
N4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Shortlisted Problems with Solutions 3
PROBLEMS
ALGEBRA
for all x, y ∈ R.
for all x, y ∈ R.
COMBINATORICS
C1. There are 100 positive integer numbers written on a board. At each step, Alex composes 50
fractions using each number written on the board exactly once, brings these fractions to their
irreducible form, and then replaces the 100 numbers on the board with the new numerators
and denominators to create 100 new numbers. Find the smallest positive integer n such that
regardless of the values of the initial 100 numbers, after n steps Alex can arrange to have on
the board only pairwise coprime numbers.
C2. Alice is drawing a shape on a piece of paper. She starts by placing her pencil at the origin,
and then draws line segments of length 1, alternating between vertical and horizontal segments.
Eventually, her pencil returns to the origin, forming a closed, non-self-intersecting shape. Show
that the area of this shape is even if and only if its perimeter is a multiple of eight.
C3. Find the largest positive integer k for which there exists a convex polyhedron P with the
following properties:
(a) P has exactly 2022 edges.
(b) The degrees of the vertices of P don’t differ by more than 1.
(c) It is possible to colour the edges of P with k colours such that for every colour c, and
every pair of vertices (v1 , v2 ) of P , there is a monochromatic path between v1 and v2 in
the colour c.
C4. Let n ! 3 be an odd positive integer, and consider an n × n grid containing n2 cells.
Dionysus colours each cell either red or blue. A frog can hop directly between two cells if they
have the same colour and share at least one vertex. Xanthias views the colouring, and wants
to place frogs on k of the cells so that any cell can be reached by a frog in a finite number of
hops. Find the least value of k such that Xanthias can always be successful regardless of the
colouring chosen by Dionysus.
C5. A cube of side length 2021 is given. In how many ways we can place a 1 × 1 × 1 cubelet
on the border of this cube in such a way that the newly formed solid can be completely filled
using k × 1 × 1, 1 × k × 1 and 1 × 1 × k cuboids, for some k ∈ N \ {1}?
Shortlisted Problems with Solutions 5
GEOMETRY
G1. Let ABC be an acute triangle such that CA ∕= CB with circumcircle ω and circumcentre
O. Let τA , τB be the tangents to ω at A and B, which meet at X. Now, let Y be the foot of
the perpendicular from O onto CX, and let the line through C parallel to AB meet τA at Z.
Prove that Y Z bisects AC.
G2. Let ABC be a triangle with AB > AC with incenter I. The internal bisector of angle
BAC intersects the BC at the point D. Let M the midpoint of the segment AD, and let F be
the second intersection point of M B with the circumcircle of the triangle BIC. Prove that AF
is perpendicular to F C.
G3. Let ABC a triangle and let ω be its circumcircle. Let E be the midpoint of the minor arc
BC of ω, and M the midpoint of (BC). Let V be the other point of intersection of AM with ω,
F the point of intersection of AE with BC, X the other point of intersection of the circumcircle
of F EM with ω, X ′ the reflection of V with respect to M , A′ the foot of the perpendicular
from A to BC and S the other point of intrsection of XA′ with ω. If Z ∈ ω with Z ∕= X is
such that AX = AZ, then prove that S, X ′ and Z are collinear.
G4. Let ABC be a triangle and let the tangent at B to its circumcircle meet the internal
bisector of angle A at P . The line through P parallel to AC meets AB at Q. Assume that Q
lies in the interior of segment AB and let the line through Q parallel to BC meet AC at X and
P C at Y . Prove that P X is tangent to the circumcircle of triangle XY C.
G5. Let ABC be a triangle with circumcircle ω, circumcenter O, and orthocenter H. Let K
be the midpoint of AH. The perpendicular to OK at K intersects AB and AC at P and Q,
respectively. The lines BK and CK intersect ω again at X and Y , respectively. Prove that the
second intersection of the circumcircles of triangles KP Y and KQX lies on ω.
G6. Let ABC be a triangle with AB < AC and let D be the other intersection point of the
angle bisector of A with the circumcircle of triangle ABC. Let E and F be points on the sides
AB and AC respectively, such that AE = AF and let P be the point of intersection of AD and
EF . Let M be the midpoint of BC. Prove that AM and the circumcircles of triangles AEF
and P M D pass through a common point.
6 BMO 2022, Cyprus
NUMBER THEORY
N1. Let n be a positive integer. What is the smallest sum of digits of 5n + 6n + 2022n ?
N3. For every natural number x, let P (x) be the product of the digits of the number x. Is
there a natural number n such that the numbers P (n) and P (n2 ) are non-zero squares of natural
numbers, where the number of digits of the number n is equal to
(a) 2021
(b) 2022
N4. A hare and a tortoise run in the same direction, at constant but different speeds, around
the base of a tall square tower. They start together at the same vertex, and the run ends when
both return to the initial vertex simultaneously for the first time. Suppose the hare runs with
speed 1, and the tortoise with speed less than 1. For what rational numbers x is it true that, if
the tortoise runs with speed x, the fraction of the entire run for which the tortoise can see the
hare is also x?
Shortlisted Problems with Solutions 7
SOLUTIONS
ALGEBRA
for all x, y ∈ R.
Proposed by ................................
Solution 2. As in Solution 1 we have that f (x2 ) = xf (x) for all x ∈ R and that if f is not
identically zero then f (x) = 0 =⇒ x = 0.
Now for x = −f (y) we get
(y − f (y))f (−f (y)) = f (0) = 0
and therefore y = f (y) or f (−f (y)) = 0 for each y ∈ R. I.e. f (y) = y or f (y) = 0 for each
y ∈ R. Since f (y) = 0 =⇒ y = 0 then f (y) = y for each y ∈ R.
8 BMO 2022, Cyprus
Proposed by ................................
1 1
Solution 2. Since 1+x = 2 + 12 · 1−x
1+x , with the notation of Solution 1 it is enough to prove that
1 − a1 1 − an
+ ··· + ! 0.
1 + a1 1 + an
1−x
Letting f (x) = 1+x one can check that
Proposed by ................................
giving S ! 43 .
Multiplying the given equality by (a + 1)(b + 1)(c + 1)(d + 1) we get
% % & % % '
abc + 2 ab + 3S + 4 = 3 abcd + abc + ab + S + 1
giving % %
3abcd + 2 abc + ab = 1 .
In particular ab + ac + ad + bc + bd + cd " 1. So we may assume that S < 2 as otherwise the
inequality is immediate.
The given equality transforms to
a b c d
+ + + = 1,
a+1 b+1 c+1 d+1
and so by Cauchy-Schwarz % % a
a(a + 1) ! S2 .
a+1
Thus %
S 2 " a 2 + b2 + c 2 + d 2 + S = S 2 − 2 ab + S .
(
So ab " S/2 and it is enough to prove that
3S 4
+ " 5.
2 S
This is equivalent to 3S 2 − 10S + 8 " 0 which in turn is equivalent to (S − 2)(3S − 4) " 0.
Since S ! 4/3 and we are also assuming that S < 2, then the inequality is true and the result
follows.
Remark. From the above Solution it follows that we have equality in the cases that a = b =
c = d = 43 and in the case that two of the variables are equal to 1 and the other two are equal
to 0.
10 BMO 2022, Cyprus
for all x, y ∈ R.
Proposed by ................................
c2
f (f (x)) = cf (x) − . (1)
2
The given equation can now be rewritten as
for all x ∈ R. Now if f (x) ∕= 0 for all x, then f (x + 1) = c for all x, so f is constant. Plugging
into the given equation we get f (x) = 2 for all x ∈ R.
On the other hand, if there exists x0 such that f (x0 ) = 0, then f (f (x0 )) = f (0) = c, so for
x = x0 in (1) we get
c2 c2
cf (x0 ) − = f (f (x0 )) = c =⇒ − = c =⇒ c = −2 .
2 2
c2
From here we get f (−2) = f (c) = 2 = 2, hence f (f (−2)) = f (2). For x = −2 in (1) we get
c2
f (2) = f (f (−2)) = cf (−2) − = −2f (−2) − 2 = −6 .
2
We also have, for x = 1 in (3), that f (2) = c = −2, a contradiction. So there are no more
functions.
Solution 2.
For x = −1, y = t and for x = −1, y = 1 − t we get
and therefore
f (1) ) *
f (x − x2 ) + f (y − y 2 ) = f (x + y)f (xy) . (1)
2
Shortlisted Problems with Solutions 11
Alternative Formulation 3. Same problem, without the restriction that f (0) ∕= 0 but with
the restriction that f is monotonic.
Solution. If f (0) = 0 then as in the Solution of the Alternative Formulation 1 we have
f (a) = 0 for a ∈
/ (0, 4). Since f is monotonic it must then be identically equal to 0 which is a
valid solution.
Note: The monotonicity can be used to give slightly shorter solutions in the case f (0) ∕= 0.
12 BMO 2022, Cyprus
t
Solution. Setting y = f (x)3
we get
+ ,
t
f (x + t) = x3 f + f (x) (1)
f (x)3
for every x, t > 0.
From (1) it is immediate that f is increasing.
Claim. f (1) = 1
1 3
Proof of Claim. Let c = f (1). If c < 1, taking x = 1 and y = 1−c 3 we have y − yc = 1, so
3 3 3
yf (1) + 1 = y and f (yf (1) + 1) = f (y) = 1 f (y). Thus f (1) = 0, a contradiction. Assume
now for contradiction that c > 1. We claim that
f (1 + c3 + · · · + c3n ) = (n + 1)c
for every n ∈ N. We proceed by induction, the case n = 0 being trivial. The inductive step
follows easily by taking x = 1, t = c3 + c6 + · · · + c3(k+1) in (1).
Now taking x = 1 + c3 + · · · + c3n−3 , t = c3n in (1) we get
+ ,
3 3n 3 3n−3 c3n
(n + 1)c = f (1 + c + · · · + c ) = (1 + c + · · · + c )f + nc
(n + 1)3
giving + ,
c3n c c3n
f = < c = f (1) =⇒ < 1.
(n + 1)3 (1 + c3 + · · · + c3n )3 (n + 1)3
But this leads to a contradiction if n is large enough. □
Now for x = 1 we get f (y + 1) = f (y) + 1 and since f (1) = 1 inductively we get f (n) = n for
every n ∈ N. For m, n ∈ N, setting x = n, y = q = m/n we get
- .
mn2 + n = f qn3 + n = f (yf (x)3 + x) = x3 f (y) + f (x) = n3 f (q) + n =⇒ f (q) = q .
Since f is strictly increasing with f (q) = q for every q ∈ Q>0 we deduce that f (x) = x for every
x > 0. It is easily checked that this satisfies the functional equation.
solution.
So we may assume that f (x) ∕= 0 for every x ∕= 0. Let c = f (1). If c ∕= 1, taking x = 1 and
1 3 3 3 3
y = 1−c 3 we have y − yc = 1, so yf (1) + 1 = y and f (yf (1) + 1) = f (y) = 1 f (y). Thus
f (1) = 0, a contradiction.
Shortlisted Problems with Solutions 13
Thus f (1) = 1 which for x = 1 gives f (y + 1) = f (y) + 1 for every y ∈ R. From here we easily
get f (n) = n for every n ∈ Z.
For x = −1 in the original equation we get
+ ,
t
f (t + x) = x3 f + f (x)
f (x)3
+ ,
3 t
f (−t + x) = −x f + f (x)
f (x)3
2f (x) = f (x + t) + f (x − t)
for every x ∕= 0 and every t ∈ R. Since f is odd the above also holds for every x, t ∈ R. Given
a, b ∈ R and putting x = a, t = b and then x = b, t = a in the above we have
giving f (a + b) = f (a) + f (b) for every a, b ∈ R. I.e. f is Cauchy. In particular from the original
equation we get f (yf (x)3 ) = x3 f (y) for every x, y ∈ R. For y = 1 we get f (f (x)3 ) = x3 for
every x ∈ R. In particular f is surjective.
Putting y = f (x)3 in the last equation we get f (f (x)6 ) = x3 f (f (x)3 ) = x6 . By surjectivity we
get that f (a) ! 0 for every a ! 0. So for x ! y we have f (x) − f (y) = f (x − y) ! 0. I.e. f is
monotone and since it is Cauchy it is also linear which gives f (x) = x for every x ∈ R. This
clearly satisfies the functional equation.
14 BMO 2022, Cyprus
Solution. Let V be the set of all such functions. It is obvious that if f, g ∈ V then f + g ∈ V .
It is also obvious that if f ∈ V and a ∈ R2 then for g : R2 → R defined by g(x) = f (x + a) we
have g ∈ V .
Clearly, we can consider the elements of R2 as vectors. We denote the inner product of two
vectors a = (a1 , a2 ) and b = (b1 , b2 ) by a · b = a1 b1 + a2 b2 . A vector a is unit vector if a · a = 1.
Two vectors a, b are orthogonal if and only if a · b = 0. So a square ABCD whose vertices are
given by the vectors a, b, c, d is a unit square if and only if the vectors b − a, c − b, d − c, a − d
are unit vectors with consecutive pairs of them being orthogonal.
We say that f ∈ V is good for a unit vector v if either f (x + v) = −f (x) for every x ∈ R2 or
f (x + v ⊥ ) = −f (x) for some unit vector v ⊥ orthogonal to v and every x ∈ R2 . We also say that
f is good for a set of unit vectors if it is good for every vector in the set.
Note that if f, g ∈ V are good for S then so is f + g. Furthermore, if f ∈ V is good for S and
a ∈ R2 then g(x) = f (x + a) is also good for S.
Claim 1. If V ∕= {0}, then given any finite set S of unit vectors, there is a g ∈ V \ {0} which
is good for S.
Proof of Claim 1. We proceed by induction on |S|. So assume that f ∈ V \ {0} is good for S
and that we are trying to find a g ∈ V \ {0} which is good for S ∪ {v} for some unit vector v.
Let v ⊥ be a unit vector orthogonal to v. If f (x + v ⊥ ) = −f (x) for all x ∈ R2 , we are done.
Otherwise, define g : R2 → R by
g(x) = f (x) + f (x + v ⊥ ) .
The proof of Claim 1 shows that we may assume that f is good for v. (The construction in
the proof of the Claim preserves the excellence.) If f (x + v) = −f (x) for every x ∈ R2 , then
f (x+12v) = f (x) for every x ∈ R2 and we are done. So we may suppose that f (x+v ⊥ ) = −f (x)
for every x ∈ R2 where v ⊥ is a unit vector orthogonal to v.
⊥ ⊥
Let u = 3v+4v
5 and let u⊥ = 4v−3v
5 . Then u and u⊥ are unit vectors. The proof of Claim 1
shows that we may assum that f is good for u.
If f (x + u) = −f (x) for every x ∈ R2 , then
thus f (x) = 0. Since this holds for every x ∈ R2 , this contradicts the fact that f ∈ V \ {0} and
therefore our assumption that V ∕= {0}.
16 BMO 2022, Cyprus
COMBINATORICS
C1. There are 100 positive integer numbers written on a board. At each step, Alex composes 50
fractions using each number written on the board exactly once, brings these fractions to their
irreducible form, and then replaces the 100 numbers on the board with the new numerators
and denominators to create 100 new numbers. Find the smallest positive integer n such that
regardless of the values of the initial 100 numbers, after n steps Alex can arrange to have on
the board only pairwise coprime numbers.
Proposed by ................................
Solution. Equivalently, we have a graph on 100 vertices and a positive integer written on each
vertex. At each step we pick a perfect matching (i.e. a set of disjoint edges covering all vertices)
and for each edge of the matching we divide the numbers in its endpoints with their highest
common divisor.
If initially the numbers on the vertices are p1 , p2 , . . . , p99 and p1 p2 · · · p99 , where p1 , . . . , p99 are
distinct prime numbers, then we need at least 99 steps. This is because the vertex having the
number p1 p2 · · · p99 needs to be matched with every other vertex and we need 99 steps for this.
We show that 99 steps are enough. For this it is enough to show that K100 has a 1-factorisation.
I.e. we can decompose the edges of the complete graph on 100 vertices into 99 perfect matchings.
In general it is a known fact that K2n has a 1-factorisation. For one way to achieve this, write
x, x1 , . . . , x2n−1 for the vertices, and for the i-th matching (1 " i " 2n − 1) consider all edges
of the form xr xs with 1 " r < s " 2n − 1 and r + s ≡ i mod 2n − 1 together with the edge xxt
where 2t ≡ i mod 2n − 1.
Shortlisted Problems with Solutions 17
C2. Alice is drawing a shape on a piece of paper. She starts by placing her pencil at the origin,
and then draws line segments of length 1, alternating between vertical and horizontal segments.
Eventually, her pencil returns to the origin, forming a closed, non-self-intersecting shape. Show
that the area of this shape is even if and only if its perimeter is a multiple of eight.
Proposed by ................................
Solution 1. Colour the horizontal segments in every other line of the grid alternately red and
blue as shown below:
Let there be r red segments on the perimeter and s red segments in the interior of the shape.
By considering the possibilities starting from a red segment, we see that every fourth segment
on the perimeter of the shape will be red, therefore we have P = 4r. Also, every square has
exactly one red edge, thus A = r + 2s. So A ≡ r mod 2 from which the result follows.
Solution 2. Colour the square in the grid with a chessboard colouring. The alternation of
vertical and horizontal segments means that all squares with an edge on the perimeter and lying
within the shape are of the same colour, say black.
Any internal edge within the shape lies between a white and black square, so if the number of
white squares within the shape is W , the number of edges of the chessboard lying inside the
shape is 4W . If the total number of squares in the shape is A, then 4A counts every edge on
the perimeter once, and every internal edge twice, so the perimeter has length P = 4A − 8W ,
which is a multiple of 8 if and only if A is even.
18 BMO 2022, Cyprus
where C is the boundary of the shape traversed anticlockwise. We partition C into its line
segments of length 1. Each line segment contributes 0 to the integral if it is horizontal and ±a
to the integral if it is on the vertical line x = a. Every two consecutive vertical line segments
contribute ±a ± (a ± 1) ≡ 1 mod 2.
So the area is even if and only if the number of vertical line segments is 0 mod 4 which happens
if and only if the perimeter is 0 mod 8. (Since there is an equal even number of horizontal and
vertical line segments.)
Shortlisted Problems with Solutions 19
C3. Find the largest positive integer k for which there exists a convex polyhedron P with the
following properties:
(a) P has exactly 2022 edges.
(b) The degrees of the vertices of P don’t differ by more than 1.
(c) It is possible to colour the edges of P with k colours such that for every colour c, and
every pair of vertices (v1 , v2 ) of P , there is a monochromatic path between v1 and v2 in
the colour c.
Proposed by ................................
Solution 1. We divide the solution in two steps, first we prove that k < 3, and then give an
inductive construction of P for k = 2.
Let P have V vertices, E edges and F faces. Suppose the contrary, that k > 2. We have k
disjoint trees on V vertices, so E ! 3(V − 1). This is a contradiction as for every polyhedron
we have E " 3V − 6.
Now we take k = 2 and prove that for every positive integer n, we can find a convex polyhedron
P6n with exactly 6n edges that satisfies the condition of the problem.
For n = 1, let’s consider the tetrahedron ABCD. One colouring that works is: AB, AD and
CD are in one colour, and AC, BC and BD are in the other colour.
Suppose we have constructed P6n , here is how to construct P6n+6 : Consider the triangular
face T = xyz most recently added to P6n , glue on top of T a truncated pyramid whose larger
base is T . We are effectively adding 3 new vertices, say x′ , y ′ , z ′ , 3 faces, and 6 edges, say
xx′ , yy ′ , zz ′ , x′ y ′ , y ′ z ′ , z ′ x′ . We colour x′ y ′ , x′ z ′ , yy ′ with the first colour, and all other new edges
with the second colour. It is now easy to see that in any one of the colours, a tree on the vertices
of P6n in that colour, together with the newly added edges of that colour give a tree on the
vertices of P6n+6 in that colour.
Note that x′ y ′ z ′ is the most recently added triangular face, so the construction can proceed
inductively by glueing another truncated pyramid on top of it. It’s easy to see (and prove
inductively) that every vertex has degree 3 or 4, so condition (b) is satisfied and we are done.
Solution 2. For the construction we can also use Steinitz’s Theorem on the characterization
of convex polyhedra: A planar graph is the graph of a convex polyhedron if and only if it
is 3-vertex connected. So we can take for example the graph on {v1 , v2 , . . . , v2n } with edges
v1 v2 , v2 v3 , . . . , v2n−1 v2n in one colour and v1 v3 , v2 v4 , . . . , v2n−2 v2n and v2n v1 in the other colour.
It is easy to get a planar embedding of this graph as for example in the following figure for the
case n = 4.
20 BMO 2022, Cyprus
This graph is 3-connected: Suppose we remove the vertices vi and vj with i < j. If i = 1, j = 2
or i = 2n − 1, j = 2n the remaining graph is obviously connnected. If 1 < i and j = i + 1 < 2n
the remaining graph is also connected having the spanning path vi−1 vi−2 · · · v1 v2n v2n−1 · · · vi+1 .
Otherwise j > i + 1 and we have the spanning path v1 · · · vi−1 vi+1 · · · vj−1 vj+1 · · · v2n .
This graph has 2n − 2 edges so for n = 1012 it has the required number of edges. Furthermore
it satisfies (b) as every vertex has degree 3 or 4.
Comments.
1. One can consider a slightly simplified version of the problem in which we specify that
k = 2, i.e. we only consider colourings with 2 colours.
2. The goal of condition (b) (vertex degrees not differing by more than 1) is to avoid a simple
solution with a pyramid with 1012 vertices. There can be other ways to introduce this
type of constraint, for example requiring that there is pair of edges with distance at least
300 (in terms of edges between them). Another way could be that no vertex has a degree
higher than 4. Another way can be that for every vertex (face) we can find another vertex
(face) with same number of edges.
Shortlisted Problems with Solutions 21
C4. Let n ! 3 be an odd positive integer, and consider an n × n grid containing n2 cells.
Dionysus colours each cell either red or blue. A frog can hop directly between two cells if they
have the same colour and share at least one vertex. Xanthias views the colouring, and wants
to place frogs on k of the cells so that any cell can be reached by a frog in a finite number of
hops. Find the least value of k such that Xanthias can always be successful regardless of the
colouring chosen by Dionysus.
Proposed by ................................
Solution. Let G be the graph whose vertices are all (n + 1)2 vertices of the grid and where two
vertices are adjacent if and only if they are adjacent in the grid and moreover the two cells in
either side of the corresponding edge have different colours.
The connnected components of G, excluding the isolated vertices, are precisely the boundaries
between pairs of monochromatic regions each of which can be covered by a single frog. Each
time we add one of these components in the grid, it creates exactly one new monochromatic
region. So the number of frogs required is one more than the number of such components of G.
It is easy to check that every corner vertex of the grid has degree 0, every boundary vertex of
the grid has degree 0 or 1 and every ‘internal’ vertex of the grid has degree 0, 2 or 4. It is also
easy to see that every component of G which is not an isolated vertex must contain at least
four vertices unless it is the boundary of a single corner of the grid, in which case it contains
only three vertices.
Writing N for the number of components which are not isolated vertices, we see that in total
they contain at least 4N − 4 vertices. (As at most four of them contain 3 vertices and all others
contain 4 vertices.) Since we also have at least 4 components which are isolated vertices, then
2
4N = (4N − 4) + 4 " (n + 1)2 . Thus N " (n+1) 4 and therefore the minimal number of frogs
(n+1)2
required is 4 + 1.
This bound for n = 2m + 1 is achieved by putting coordinates (x, y) with x, y ∈ {0, 1, . . . , 2m}
in the cells and colouring red all cells both of whose coordinates are even, and blue all other
cells. An example for n = 9 is shown below.
22 BMO 2022, Cyprus
C5. A cube of side length 2021 is given. In how many ways we can place a 1 × 1 × 1 cubelet
on the border of this cube in such a way that the newly formed solid can be completely filled
using k × 1 × 1, 1 × k × 1 and 1 × 1 × k cuboids, for some k ∈ N \ {1}?
Proposed by ................................
Solution 1. Suppose that for some k > 1 and some placed cubelet there is a valid filling. In
each unit cubelet (of the original cube) with coordinates (x, y, z) where 0 " x, y, z " 2020, we
2πi
assign the complex number ω x+y+z where ω = e k . We also assign the number ω a+b+c in the
additional cubelet in position (a, b, c).
k
−1
Since 1 + ω + ω 2 + · · · + ω k−1 = ωω−1 = 0, then the sum of numbers in any 1 × 1 × k cuboid is
equal to zero. So the sum of all assigned numbers is equal to
This gives
0 0
0 0 0 1 − ω 2021 03
1=|−ω a+b+c 0
| = (1 + ω + · · · + ω 2020 3 0
) =0 0 0 .
1−ω 0
Thus |1 − ω| = |1 − ω 2021 | which means that 1 is equidistant from the numbers ω and ω 2021 .
Since |ω 2021 | = 1, this happens if and only if ω 2021 = ω or ω 2021 = ω −1 . Then ω 2020 = 1 or
ω 2022 = 1 which gives k|2020 or k|2022. However k|20213 + 1. Since 20213 + 1 ≡ 2 mod 2020, if
k|2020 then k|2. So in any case we have k|2022. Now (1) gives
So a + b + c ≡ −3 mod k.
If we have a valid filling for k, then we have a valid filling for every prime factor of k. So we
may assume that k is prime and therefore k ∈ {2, 3, 337}.
Assume without loss of generality that the additional cubelet is at the bottom of the cube, i.e.
c = −1. Then a + b ≡ −2 mod k. By symmetry, if we have a valid filling for (a, b, −1), then we
have a valid filling for (2022 − a, b, −1). So we must also have 2022 − a + b ≡ −2 mod k and
so b − a ≡ −2 mod k. Since also a + b ≡ −2 mod k we get a ≡ b ≡ −1 mod k for k ∕= 2 and
a ≡ b mod 2 for k = 2. We will now show that the above necessary conditions are also sufficient
to have a valid filling.
We claim first that a square defined by coordinates (x, y) where 0 " x, y " 2020, with a removed
cell (a, b) satisfying the above restrictions can be covered by 1 × k rectangles. This is because
such a square can be covered by four rectangles of sizes (a + 1) × b, (2020 − a) × (b + 1), (2021 −
a) × (2020 − b) and a × (2021 − b), where each of these rectangles can be covered by 1 × k
rectangles. This follows since k | a + 1, b + 1, 2021 − a, 2021 − b if a ≡ b ≡ −1 mod k and since
2|b, 2020 − a, 2020 − b, a if a ≡ b ≡ 0 mod 2.
Now we fill the cube with the added cubelet as follows: The lowest k − 1 “layers” of the original
cube of side 2021 are filled using the previous method together with a 1 × 1 × k cuboid covering
the holes in these layers and the additional cubelet. The remainder is the 2021×2021×(2022−k)
cuboid which can be easily filled by 1 × 1 × k cuboids because k | 2022 − k.
To complete the solution, we need to count the number of ordered pairs (a, b) with 0 " a, b "
2020, such that a ≡ b mod 2, or a ≡ b ≡ −1 mod 3 or a ≡ b ≡ −1 mod 337. There are 10112
choices with a ≡ b ≡ 0 mod 2 and 10102 choices with a ≡ b ≡ 1 mod 2. If a ≡ b ≡ −1 mod 3
but a ∕≡ b mod 2 then one of a, b must be congruent to 2 mod 6 and the other to 5 mod 6. There
are 2 × 337 × 336 such choices. Finally, if a ≡ b ≡ −1 mod 337 but is not yet accounted for,
Shortlisted Problems with Solutions 23
then one of them is equal to {336, 1010, 1684} and the other to {673, 1347}. (Note that in this
case the second one is definitely not congruent to −1 mod 3.) There are 2 × 3 × 2 such choices.
In total we have 2268697 choices for the pair (a, b). Therefore, because of symmetry, the total
number of ways is 6 × 2268697 = 13612182.
Solution 2. Since there are a total of 20213 + 1 cubelets and each cuboid covers k of them, we
must have k|20213 + 1. We have
GEOMETRY
G1. Let ABC be an acute triangle such that CA ∕= CB with circumcircle ω and circumcentre
O. Let τA , τB be the tangents to ω at A and B, which meet at X. Now, let Y be the foot of
the perpendicular from O onto CX, and let the line through C parallel to AB meet τA at Z.
Prove that Y Z bisects AC.
Proposed by ................................
Solution 1. Firstly observe that OAXB is cyclic, with diameter OX, and Y also lies on this
circle since OY ⊥ XC. Hence:
∠AZC = ∠XAB = ∠ABX = ∠AY X
and so CY AZ is cyclic.
Let M be the intersection of Y Z and AC and let CY intersect ω again at W . Using the
new cyclic relation we get ∠CY Z = ∠CAZ and then using that ZA is tangent to ω we get
∠CAZ = ∠CW A, so ∠CY M = ∠CW A. Therefore the triangles CW A and CY M are similar.
But CW is a chord of ω, and Y is the foot of the perpendicular from O, hence Y is the midpoint
of CW . It follows from the similarity relation that M is the midpoint of AC, as required.
Solution 2. Let M be the midpoint of AC. We have ∠CAZ = ∠CBA and ∠ZCA = ∠BAC so
the triangles CAZ and ABC are similar. The line CY X is the C-symmedian of triangle ABC,
and ZM is the corresponding median in triangle CAZ, hence by isogonality ∠AZM = ∠ACY .
So
∠ZM A = 180◦ − ∠AZM − ∠M AZ = 180◦ − ∠ACY − ∠CBA (1)
Shortlisted Problems with Solutions 25
Combining this with (1) we get that ∠Y M C = ∠ZM A and as A, C, M are collinear, it follows
that Z, M, Y are collinear as required.
Solution 3. As in Solution 2 we have that CX is the A-symmedian of triangle ABC and that
triangle ABC is similar to triangle CAZ.
Let f be the spiral similarity which maps AC onto AB and let g be the reflection on the
perpendicular bisector of AB. Note that f is a rotation about A by an angle of ∠CAB (clockwise
in our figure) followed by a homothety centered at A by a factor of AB/AC. By the similarity
of triangles ABC and CAZ we have that g(f (Z)) = C, so actually f (Z) is the other point of
intersection, say C ′ , of CZ with ω.
As in Solution 1 we have that CY AZ is cyclic. Therefore, letting W be the other point of
intersection of CY with ω, we have ∠W AB = ∠W CB = ∠CAY . We also have ∠ACY =
∠ABW . It follows that f (Y ) = W .
Let W ′ = g(W ). Then W ′ ∈ ω and since CW is the A-symmedian, then CW ′ passes through
the midpoint N of AB. Now CW ′ and C ′ W intersect on the perpendicular bisector of AB and
therefore they intersect on N . It follows that N = AB ∩ C ′ W = Af (C) ∩ f (Z)f (Y ) is the image
of M = AC ∩ ZY under f . Since N is the midpoint of AB, then M is the midpoint of AC.
26 BMO 2022, Cyprus
G2. Let ABC be a triangle with AB > AC with incenter I. The internal bisector of angle
BAC intersects the BC at the point D. Let M the midpoint of the segment AD, and let F be
the second intersection point of M B with the circumcircle of the triangle BIC. Prove that AF
is perpendicular to F C.
Proposed by ................................
Solution 1. Let r be the inradius and rA the exradius of triangle ABC. Let also IA be the
A-excenter of triangle ABC. It is well-known that
r DI AI
= = .
rA DIA AIA
Since M is the midpoint of AD we then have
DI AI AM − M I AM + M I
= =⇒ = =⇒ M A2 = M I · M IA .
DIA AIA M IA − AM M IA + AM
It is well-known that the A-excenter IA belongs to the circumcircle of BIC. So by the power
of the point M we also have M I · M IA = M F · M B, therefore M A2 = M F · M B which gives
that M A is tangent to the circumcircle of triangle AF B. Therefore ∠AF M = ∠BAM = Â/2
and so
1 1
∠AF C = ∠AF M + ∠M F C = Â + 180◦ − ∠BF C = Â + 180◦ − ∠BIC
+ 2 , 2
1 1 1 1 & '
= Â + 180◦ − 180◦ − B̂ − Ĉ = Â + B̂ + Ĉ = 90◦ .
2 2 2 2
Therefore AF ⊥ F C as required.
Solution 2. In the triangle CDA the lines CI and CIA are the internal and external angle
bisectors, therefore the quadruple (A, D; I, IA ) is harmonic. Since M is the midpoint of AD it
follows (by Newton’s relation for harmonic quadrilaterals) that M A2 = M I · M IA . The result
now follows as in Solution 1.
Shortlisted Problems with Solutions 27
G3. Let ABC a triangle and let ω be its circumcircle. Let E be the midpoint of the minor arc
BC of ω, and M the midpoint of (BC). Let V be the other point of intersection of AM with ω,
F the point of intersection of AE with BC, X the other point of intersection of the circumcircle
of F EM with ω, X ′ the reflection of V with respect to M , A′ the foot of the perpendicular
from A to BC and S the other point of intrsection of XA′ with ω. If Z ∈ ω with Z ∕= X is
such that AX = AZ, then prove that S, X ′ and Z are collinear.
Proposed by ................................
Solution.
Claim 1. AX is the A-symmedian of △ABC.
Prooof of Claim 1. Let Y ∈ ω such that AY is the A-symmedian of triangle ABC. We want
to prove that Y = X.
We have that ∠BAY = ∠CAM and ∠BY A = ∠BCA = ∠M CA, therefore the triangles ABY
and AM C are similar. It follows that (AY )(AM ) = (AB)(AC).
Since AE is the bisector of ∠BAC, then ∠BAF = ∠CAE. We also have ∠ABF = ∠ABC =
∠AEC, therefore the triangles BAF and EAC are similar. It follows that (AE)(AF ) =
(AB)(AC).
We get (AY )(AM ) = (AE)(AF ) and since also ∠Y AF = ∠EAM , then the triangles Y AF and
EAM are similar. So ∠AF Y = ∠AM E and ∠Y F E = ∠EM V . But as E is the midpoint of
the arc Y V , it follows that ∠EM V = ∠Y M E. So ∠Y F E = ∠Y M E from which it follows that
the quadrilateral Y F M E is cyclic. But since Y ∈ ω, we finally get that Y = X. □
From Claim 1 we conclude that the triangles XBC and V CB are equal. Thus M X = M V =
M X ′ . So the triangle X ′ XV is a right-angled triangle and X ′ X is perpendicular to XV and
therefore also to BC. Thus X ′ is the reflection of X on BC.
Claim 2. The quadrilateral ASA′ M is cyclic.
Proof of Claim 2. We have ∠ASA′ = ∠ASX = ∠ABX But from Claim 1 we also have
∠ABX = ∠AM C. So ∠ASA′ = ∠AM C and the result follows. □
Claim 3. The quadrilateral XSX ′ M is cyclic.
Proof of Claim 3. From Claim 2 we have ∠XSM = ∠A′ SM = ∠A′ AM . Since XX ′ is
parallel to AA′ we have ∠A′ AM = ∠XX ′ M . So ∠XSM = ∠XX ′ M and the result follows. □
28 BMO 2022, Cyprus
So to conclude the proof it is enough to also show that ∠XSZ = 2∠AA′ M . From Claim 1 we
have ∠ACX = ∠M AB and therefore
G4. Let ABC be a triangle and let the tangent at B to its circumcircle meet the internal
bisector of angle A at P . The line through P parallel to AC meets AB at Q. Assume that Q
lies in the interior of segment AB and let the line through Q parallel to BC meet AC at X and
P C at Y . Prove that P X is tangent to the circumcircle of triangle XY C.
Proposed by ................................
Solution. Let R be the point on AP such that BR is parallel to AC. Let D, Z, L be the
projections of P on AB, BC, AC respectively and let T, E, M be the analogous projections of
R.
G5. Let ABC be a triangle with circumcircle ω, circumcenter O, and orthocenter H. Let K
be the midpoint of AH. The perpendicular to OK at K intersects AB and AC at P and Q,
respectively. The lines BK and CK intersect ω again at X and Y , respectively. Prove that the
second intersection of the circumcircles of triangles KP Y and KQX lies on ω.
Proposed by ................................
Solution.
Claim 1. P K = KQ.
Proof of Claim 1. Let L and N be the midpoints of AB and AC, respectively. Since L and
K are midpoints of AB and AH, then LK / BH and so LK ⊥ AC. Since also LO ⊥ AB, then
∠KLO = ∠BAC = α. Also, ∠OLP = 90◦ = ∠OKP , so the quadrilateral OKLP is cyclic
and therefore ∠KP O = ∠KLO = α. Similarly, ∠KQO = α. Therefore, the triangle OP Q is
isosceles, and since OK ⊥ P Q then K is the midpoint of P Q. □
Since ∠KSP = ∠KY P we get that S belongs on the circumcircle of triangle KP Y . Similarly
it belongs to the circumcircle of triangle KQX and therefore the result follows.
Note. We can also define S to be the reflection of H on P Q. Now Claim 3 is immediate. Then
AS / P Q and so OK ⊥ AS and OK / HS. Since K is the midpoint of AH, then OK is the
perpendicular bisector of AS and therefore S ∈ ω.
32 BMO 2022, Cyprus
G6. Let ABC be a triangle with AB < AC and let D be the other intersection point of the
angle bisector of A with the circumcircle of triangle ABC. Let E and F be points on the sides
AB and AC respectively, such that AE = AF and let P be the point of intersection of AD and
EF . Let M be the midpoint of BC. Prove that AM and the circumcircles of triangles AEF
and P M D pass through a common point.
Proposed by ................................
Solution 1. Let X the other point of intersection of the circumcircles of the triangles AEF
and ABC. We have
∠EXF = ∠EAF = ∠BAC = ∠BXC
and
∠XF E = ∠XAB = ∠XCB ,
so the triangles BXC and EXF are similar. Since P is the midpoint of the segment EF , and
M is the the midpoint of the segment BC, we conclude that and the triangles EXP and BXM
are also similar. Therefore, ∠XP E = ∠XM B and so
∠XP D = ∠XP E + 90◦ = ∠XM B + 90◦ = ∠XM D .
Thus the points X, P, M, D are concyclic.
Let Y be the second intersection point of the circumcircle of the triangle AEF and the circle
passing through the points X, P, M, D. We will prove that AM passes through Y . Since
∠AY X = ∠AF X, it is enough to prove that ∠XY M = ∠XF C.
We have
∠XY M = ∠XP M = 180◦ − ∠XDM = 180◦ − (∠BDM − ∠BDX)
1 1
= 180◦ − ∠BDC + ∠BAX = 180◦ − (180◦ − ∠BAC) + ∠EF X
2 2
= 90 + ∠P AF + ∠EF X = 180 − ∠AF X = ∠XF C .
◦ ◦
Shortlisted Problems with Solutions 33
Let Y be the second intersection point of the circumcircles of the quadrilaterals (AEF X) and
(P M DX). We will prove that AM passes through Y .
Since spiral similarities come in pairs and f1 maps M C to P F , there exists another spiral
similarity f2 , with the same center X, mapping M P to CF . Therefore, the triangles XM P
and XCF are similar and so ∠XP M = ∠XF C. We now have
So Y ∈ AM as required.
34 BMO 2022, Cyprus
NUMBER THEORY
N1. Let n be a positive integer. What is the smallest sum of digits of 5n + 6n + 2022n ?
Proposed by ................................
Solution 1. We will prove that the smallest sum is equal to 8. One case when it is achieved is
for n = 1. Suppose that for some n > 1 it is possible to obtain a smaller sum of 8. Observing
the last digit of the number 5n + 6n + 2022n , we can easily conclude that
1
2
2 7 mod 10, if n ≡ 0 mod 4
2
2
33 mod 10, if n ≡ 1 mod 4
5n + 6n + 2022n ≡
2
2 5 mod 10, if n ≡ 2 mod 4
2
2
49 mod 10, if n ≡ 3 mod 4
From here, due to the last digit being equal to 3, it is only possible for the sum of the digits to
be equal to 5. Since 5n + 6n + 2022n ≡ 1 mod 4, the penultimate digit must be equal to 1, and
all other digits (except the first) are equal to 0. So the last digits of 5n + 6n + 2022n are 0013
and therefore 5n + 6n + 2022n ≡ 13 mod 16. On the other hand, since n > 1 and n ≡ 1 mod 4
we have 5n + 6n + 2022n ≡ 5 · 54k ≡ 5 mod 16, a contradiction.
Case 2: If n = 4k + 2, then
1
2
37 mod 9, if k ≡ 0 mod 3
5n + 6n + 2022n ≡ 1 mod 9, if k ≡ 1 mod 3
2
4
4 mod 9, if k ≡ 2 mod 3
Due to the last digit, the only possibility is k ≡ 0 mod 3 so n = 12s+2 for some s ∈ N0 . Now the
sum of the digits is 7, and the last digit is 5. Let’s use the divisibility criterion with 37. (A number
when divided by 37 gives the same remainder as the sum of its three-digit blocks that are formed
from right to left.) Since 6n + 5n + 2022n must be equal to one of 20 · · · 05 or 10 · · · 010 · · · 05,
according to othe above criterion 6n +5n +2022n ≡ 205, 25, 7, 115, 106, 16 mod 37. I.e. congruent
to 20, 25, 7, 4, 32, 16 mod 37.
On the other hand, since it is easy to check that 612 ≡ 1 mod 37, 512 ≡ 10 mod 37 and 202212 ≡
2412 ≡ 10 mod 37 we have that
1
2
38 mod 37, if s ≡ 0 mod 3
n n n 2 2 2 s
5 + 6 + 2022 ≡ 25 · 10 + 36 + 24 · 10 ≡ 36 + 9 · 10 ≡ 15 mod 37, if s ≡ 1 mod 3
2
4
11 mod 37, if s ≡ 2 mod 3
This is a contradiction.
Shortlisted Problems with Solutions 35
2022n ≡ −3, 9, −2, 6, 7, 4, 13, 11, 17, −1, 3, −9, 2, −6, −7, −4, −13, −11, −17, 1 mod 25
An ≡ 3, 20, 14, 27, 8, 10, 24, 27, 38, 0, 9, 2, 18, 15, −6, 2, −2, 5, 4, 2 mod 25
An ≡ 53, 45, 89, 77, 33, 85, 49, 77, 13, 25, 9, 77, 93, 65, 69, 77, 73, 5, 29, 77 mod 100
The only possibilities for the sum of the digits of An to be less than 8 are n ≡ 5, 9, 18 mod 20
where the last two digits of An are 33, 13, 05 respectively. (The case n ≡ 10 mod 20 is rejected
since then we must have An = 25 which is impossible.)
Now for n > 1 and n ≡ 1, 2, . . . , 6 mod 6 we have An ≡ 5, 7, 8, 4, 2, 1 mod 9. Looking modulo
60, the only possibilities are n ≡ 5, 9, 18, 25, 29, 38, 45, 49, 58 mod 60 and in those cases the the
last two digits of An are 33, 13, 05, 33, 13, 05, 33, 13, 05 respectively and the sum of digits of An
are 2, 8, 1, 5, 2, 7, 8, 5, 4 mod 9 respectively.
So the only possibilites are n ≡ 38, 49 mod 60 where the last two digits of An are 05 and 13
respectively, and the sum of digits of An are 7 and 5 respectively.
The only possibilities are therefore for An to be equal to a number of the form 20 · · · 05 or
10 · · · 010 · · · 05 or 10 · · · 013. In particular, using the alterrnating sum of digits criterion for
divisibility by 11 we have that the first number is congruent to 3, 7 mod 11, the second congruent
to 3, 5, 7 mod 11 and the third congruent to 1, 3 mod 11.
We now look at An mod 11. It can be easily checked that for n ≡ 8 mod 10 we have
An ≡ 4 + 4 + 3 ≡ 0 mod 11
An ≡ 9 + 2 + 5 ≡ 5 mod 11
Solution 1. Write a = dr and b = ds where d = gcd(a, b) and (r, s) = 1. Then d2021 r2021 s2021
divides n. Furthermore 2 · 3 · 337 | d(r − s).
Case 1: Assume 337|d. Since (r, s) = 1, we may assume that r is odd. Then
works. Indeed each of these six divisors of n is congruent to 1 mod 4 so their sum is a multiple
of 2 but not of 4. If 3 | r then the sum is 0 mod 3 while if 3 ∤ r then each of these divisors is
1 mod 3 so the sum is again 0 mod 3. Therefore the sum is a multiple of 2022 but not of 20222 .
Case 2: Assume 337 ∤ d. Then 337|r − s and since (r, s) = 1 then 337 ∤ rs. Consider the
20222 divisors of n of the form rk sℓ where k, ℓ ∈ {0, 1, 2, . . . , 2021}. Since none of them is a
multiple of 337, they have at most 2 · 3 · 336 distinct remainders modulo 2022. Therefore at
20222
least 2·3·336 > 2022 of them have the same remainder modulo 2022.
Pick 2023 out of those, say d1 , d2 , . . . , d2023 . Let S be their sum. We claim that there is a subset
of 2022 of them that will work. Note that the sum of any such subset is a multiple of 2022. It
is enough to show that there is such a subset whose sum is not divisible by 3372 . If this is not
the case then S − di ≡ 0 mod 3372 for each i = 1, 2, . . . , 2023. In particular, all di are congruent
mod 3372 . Say that di ≡ k mod 3372 for each i. Then 337 ∤ k and so the sum of any 2022 of
them is congruent to 2022k ∕≡ 0 mod 3372 .
−b 2022 2022
On the other hand, the last sum is equal to a a−b . We will prove that this is not divisible
t 1
by 9. Indeed, if 3 || a − b then, since 3 || 2022, by the Lifting the Exponent Lemma, we have
that 3t+1 || a2022 − b2022 . This implies that S is not divisible by 9, therefore, 20222 doesn’t
divide S.
Shortlisted Problems with Solutions 37
N3. For every natural number x, let P (x) be the product of the digits of the number x. Is
there a natural number n such that the numbers P (n) and P (n2 ) are non-zero squares of natural
numbers, where the number of digits of the number n is equal to
(a) 2021
(b) 2022
Proposed by ................................
+ ,2 - .2
2 102021 − 1 102021 + 104
n = + 35 =
3 9
104042 + 208 · 102021 + 10816
=
9
10 4042 − 102021 102021 − 1
= + 209 · + 1225
9 9
= 15 ·67
· · 18 0
5 ·67
· · 08 + 25 ·67
· · 28 00 + 95 ·67
· · 98 + 1225
2021 2021 2021 2021
2021
= 15 ·67
· · 18 33 25 ·67
· · 28 00 + 10 + 1224
2019 2019
= 15 ·67
· · 18 34 25 ·67
· · 28 3424 .
2019 2017
= 128 4...4
5678 36 8...8
5678 9 .
2018 2019
5 ·67
Remark. In part (a) we can also take n = 66 · · 668 1 or n = 1 33
5 ·67
· · 338 28.
2020 2018
38 BMO 2022, Cyprus
N4. A hare and a tortoise run in the same direction, at constant but different speeds, around
the base of a tall square tower. They start together at the same vertex, and the run ends when
both return to the initial vertex simultaneously for the first time. Suppose the hare runs with
speed 1, and the tortoise with speed less than 1. For what rational numbers x is it true that, if
the tortoise runs with speed x, the fraction of the entire run for which the tortoise can see the
hare is also x?
Proposed by ................................
Solution. Suppose that x = pq where p, q are positive integers with p < q and gcd(p, q) = 1.
Suppose that the hare takes p minutes for a full turn about the tower. Then the tortoise takes q
minutes for a full turn. They will meet again at the same vertex pq minutes when the hare will
make q full turns and the tortoise will make p full turns. In particular, the hare will overtake
the tortoise exactly k = q − p times taking into account the start of the race but not the end of
the race as an overtake.
(k−1)pq
The overtakes should occur at minutes 0, pq 2pq
k , k ,..., k . In those minutes the tortoise
p 2p (k−1)p
would have made 0, k , k , . . . , k full turns about the tower. Since (p, q) = 1, then (p, k) = 1
and therefore at these meeting points the tortoise would have in some order made some full
turns about the tower plus another 0, k1 , k2 , . . . , k−1
k fraction of a full turn.
then 4(i′ − i) = k(j ′ − j) and since (for i′ > i say) j ′ − j ∈ {1, 2, 3}, then 2|k, a contradiction.
Now if the hare meets the tortoise at a fraction of ki of the side, then the tortoise can see
p
the hare for k−i
k · 4 minutes. I.e. the time it takes the hare to reach the endpoint of the side.
Furthermore, if i is large enough, it is possible for the tortoise to also reach the endpoint before
the hare reaches the next endpoint and thus see the hare for a little bit more. The tortoise
q 2k−i p
takes k−i
k · 4 minutes to reach the endpoint. The hare takes k · 4 minutes in total to reach
the next endpoint. So the tortoise can see the hare for another
Case 2: Suppose k = 2r where r is odd. We claim that the 0, k1 , k2 , . . . , k−1 k fractions of a full
turn correspond, in some order to 0, 0, 1r , 1r , . . . , r−1
r , r−1
r fractions of a side. The proof is similar
4i−k(j−i) 2i−r(j−i)
to Case 1 with the meeting points being at fractions k = r of the sides. Two of
′ ′ ′
these fractions are equal if and only if 4(i − i) = k(j − j) which (for i > i say) can occur when
j ′ = j + 2 and i′ = i + r.
Shortlisted Problems with Solutions 39
i r−i p
If they meet at a fraction of r of the side, the tortoise meets that hare for r · 4 minutes plus
possibly another
(2r − i)p − q(r − i) p (p − q)(r − i) p + 2i − 2r
= + =
4r 4 4r 4
minutes provided this is non-negative. So (noting that p is odd in this case) the tortoise can
see the hare for
+ ,
2p 1 2 r 2 p(r + 1) (p − 1)2
+ + ··· + + (1 + 3 + · · · + (p − 2)) = +
4 r r r 4 4 8
minutes. This is equal to
Solution 2. If we run the process in reverse, the dynamics are the same except that the toirtoise
can see the hare at some time in the reversed process precisely if the hare could see the tortoise
at the same time in the original process. From this observation, the proportion of the race for
which the tortoise can see the hare is precisely half the proportion of the race for which the two
runners are on the same side of the square. It suffices to show that this proportion is:
40 BMO 2022, Cyprus
1
(a) 4, when p − q is odd;
1 1
(b) 4 + 4pq when p − q is even but not divisible by 4;
1 3
(c) 4 + 4pq when 4 | p − q.
n = a + mq = b + m′ p . (1)
T and H are on the same side of the square precisely when 4 | m′ − m and are on the same side
or on opposite sides of the square precisely when 2 | m′ − m, equivalently when 2 | m′ + m.
Now, after pq steps, both runners are again at a vertex of the square. We return to the case
distinction introduced earlier.
(a) Here, the two vertices are adjacent. Therefore, for any time 0 " t < pq, T and H are
on the same side of the square at exactly one of the times {t, t + pq, t + 2pq, t + 3pq}. It
follows that across the entire run, T and H will be on the same side exactly 14 of the time.
(c) Here, the two vertices are the same. It then suffices to study the proportion of times the
runners are on the same side before timestep pq. Note that by the Chinese Remainder
Theorem, every (a, b) ∈ [0, q − 1] × [0, p − 1] occurs exactly once as the indexing of the
runners’ locations (ap, bq) for n = 0, . . . , pq − 1. But, from (1),
By considering the number of times each congruence class appears for a and for b, we find,
for p ≡ q ≡ 1: + ,
p+3 q+3 p−1 q−1
K(p, q) = × +3 × ,
4 4 4 4
and for p ≡ 1, q ≡ 3,
+ ,
p+3 q+1 p−1 q+1 p−1 q−3
K(p, q) = × +2 × + × .
4 4 4 4 4 4
K(p,q) 1 3
In both cases, a calculation shows pq = 4 + 4pq , with an obvious symmetric argument
for p ≡ 3, q ≡ 1.
Shortlisted Problems with Solutions 41
(b) We combine aspects of the two previous cases. Here, the two vertices are opposite. There-
fore, for any time 0 " t < pq, T and H are on the same side or on opposite sides of the
square at time t iff they are on the same side or on opposite sides of the square at time
t + pq. Furthermore, on this event, they are on the same side at precisely one of times
{t, t + pq}.
So we calculate the proportion of times the runners are on the same side or opposite sides
before timestep pq. Again from (1), using p ≡ −q modulo 4,