Table of contents
1
Selected problems from camps
9
2
Solution of Preselection tests
15
3
Solution of EGMO TST
27
4
Solution of JBMO TST
34
5
Solution of IMO TST
40
6
Selected problems from training
55
1
3
AK QË@ HA
®K . AÓ
éK XñªË@ éJ K. QªË@ éºÊÒÒÊË
HAJ
SAUDI ARABIAN
MATHEMATICAL COMPETITIONS 2025
Copyright @ Mawhiba 2024-2025. All rights reserved.
The King Abdulaziz and His Companions Foundation for
Giftedness and Creativity organization, Saudi Arabia.
www.mawhiba.org.sa
SAUDI ARABIAN IMO Booklet 2025
4
This booklet was prepared by
Sultan Albarakati, Safwat Altanany,
Smbat Gogyan, Lê Phúc Lữ
Local Trainers & Former Olympiad Students
Tarek Shehata, Safwat Altanany,
Alzubair Habibullah, Majid Almarhoumi, Elsiddig Awad Elkarim.
Visitor Trainers
Smbat Gogyan (Armenia), Navid Safaei (Iran), Miroslav Marinov
(Bulgaria), Regis Prado Barbosa (Brazil), David Zmiaikou (Belarus),
Alexander Antropov (Russia), Dren Neziri (Kosovo), Dominik Burek,
Jakub Franciszek Piotrowicz (Poland), Dušan Djukić (Serbia),
Lê Phúc Lữ (Vietnam).
SAUDI ARABIAN IMO Booklet 2025
5
The Saudi Arabian team at IMO 2025
Abdulsalam Alsulami
Ahmed Alkhalawi
Mohammed AlGhamdi
Muath ALQahtani
Yousif Bakheet
Ahmad Alshehri
SAUDI ARABIAN IMO Booklet 2025
6
INTRODUCTION
Team Training Administrators
Sultan Albarakati
Badr M. Al-Majrathi
Tarek Shehata
Observers of Saudi Arabia IMO team 2025
Safwat Altanani
Majid Almarhoumi
SAUDI ARABIAN IMO Booklet 2025
Introduction
This booklet contains the qualifying questions for the Balkan Mathematics Olympiad,
the Junior Balkan Mathematics Olympiad, European Girls’ Mathematical Olympiad
and team selection test for the International Mathematics Olympiad 2025.
The team’s training was supported by the Ministry of Education in cooperation
with the King Abdulaziz and His Companions Foundation for Giftedness and Creativity “Mawhiba”, the main establishment in Saudi Arabia that cares for the gifted
students, and a number of scientific people that supported our team.
It is worth noting that the participating students have obtained an average number
of training hours exceeding three thousand hours since joining the International
Olympiad program organized by Mawhiba, and these hours were over the course of
four years through training camps that exceeded ten long training camps.
The excellent students participated in many regional competitions, including: the
Asian Pacific Mathematical Olympiad, the European Girls’ Mathematical Olympiad
in Kosovo, the Balkan Olympiad in Bosnia and Herzegovina, and the Junior Olympiad
for the Balkan countries in North Macedonia. We thank all the trainers who participated in this booklet and contributed to enriching the training.
We hope that the content of this booklet will be our contribution to strengthening
the bonds of cooperation and exchanging experiences between us and the countries
participating in the International Mathematical Olympiad in Australia.
Dr. Sultan Albarakati,
Leader of the Saudi Arabia team in IMO 2025.
7
8
INTRODUCTION
SAUDI ARABIAN IMO Booklet 2025
Selected problems from camps
1. Preselection tests
Test 1
Problem 1. Let a, b, c be nonnegative numbers such that a ≥ b ≥ c. Prove that
9
a3 + b3 + c3 − 3abc ≥ (a − b)(b2 − c2 ).
2
Problem 2. The monic polynomial P (x) is called “nice” if its coefficients are in
{−1; 0; 1}. Given a nice polynomial P (x) of degree 2025 and it is divisible by x7 − 1,
what is the maximum number of non-zero coefficients in P (x)?
Problem 3. A large rectangle is subdivided into smaller rectangles, each of which
has at least one pair of sides of integer length. Prove that the large rectangle also
has at least one pair of sides of integer length.
Problem 4. Let ABC be a triangle inscribed in circle (O) with ∠A = 45◦ . Two
rays BO, CO intersect AC, AB at E, F respectively. The circumcircles of triangles
BOC and EOF intersect at K. Let J be circumcenter of triangle AEF . Prove that
JK passes through the orthocenter of triangle ABC.
Test 2
Problem 5. Find the smallest real number c > 0 such that
{x} + {y} < c + xy
for all real numbers x, y > 0 and xy < 1.
Problem 6. Find all functions f : R+ → R such that for all x, y > 0 we have
f (x2 + xf (y) + y) = 2x + f (y).
Problem 7. Let ABC be a non-isosceles triangle with centroid G and inscribed in
circle (O). Let M, N, P be the midpoints of BC, CA, AB respectively. Let D, E, F
be the reflection points of the foot of the internal bisector of angles A, B, C through
M, N, P respectively. Prove that the orthocenter of triangle DEF lies on line OG.
Problem 8. Suppose G is a simple planar graph with minimum degree at least 5.
Prove that G contains an edge {x, y} such that deg(x) + deg(y) ⩽ 11.
9
10
Selected problems from camps
Test 3
Problem 9. Let ABC be a triangle. Point D lies on side BC, such that the incircles
of triangles ABD and ACD are congruent. Let ΩB be the circle with diameter AB,
and let ΩC be the circle with diameter AC. Prove that line AD is perpendicular to
one of the common tangents to the circles ΩB and ΩC .
Problem 10. Let positive integer n is given. The cube of size 2n + 1 consists of
(2n + 1)3 unit cubes. Each cube is either colored green or orange. It is know that
within any 8 unit cubes that form a cube 2 × 2 × 2, there are at most 4 green cubes.
Find the maximum number of green cubes.
Problem 11. Find all pairs (b, c) of positive integers, such that the sequence defined
by a1 = b, a2 = c and
an+2 = |4an+1 − 3an | , ∀n ≥ 1
has only finite number of composite terms.
Problem 12. Let x1 , x2 , ..., xn be positive real numbers. For each positive integer
K, define Sk = xk1 + xk2 + ... + xkn .
(i) Prove that if S1 < S2 the sequence S1 , S2 , S3 , ... is strictly increasing;
(ii) Prove that it is possible that S1 > S2 and yet the sequence S1 , S2 , S3 , ... is not
strictly decreasing.
Test 4
Problem 13. On the board is written a (not necessarily positive) integer. In a
move, if the current number on the board is a, one erases it and replaces it by either
a2 + 2a + 3 or 5a2 + 2 or a − 119. Is there a starting number s such that for any
positive integer f one can reach f from s with finitely many moves?
Problem 14. Find all functions f : R+ → R+ satisfying
f (f (xy) + 1) = xf (x + f (y)), ∀x, y > 0.
Problem 15. Given an acute triangle ABC inscribed in (O) with ∠A = 60◦ and
symmedian point L. The tangents at B, C of (O) intersect CA, AB at E, F . Prove
that the line OL, two circumcircles of triangles AEF and BOC pass through the
same point.
Problem 16. Let P (x) be a polynomial with integer coefficients, the leading one
being positive. Prove that there are finitely many positive integers n such that n!+1
is a power of P (n).
2. EGMO Team selection tests
Test 1
Problem 1. Let A1 , A2 , . . . , A20 be 20 distinct subsets of size 3 of the set X =
{1, 2, . . . , 10}. We say that a subset S of X is a covering subset if for every 1 ≤ i ≤
20, it holds that S ∩ Ai ̸= ∅. What is the minimum possible value of k, such that
there always exists a covering subset of size k?
SAUDI ARABIAN IMO Booklet 2025
Selected problems from camps
Problem 2. Let ABC be a triangle inscribed in circle (O) with angle ∠A = 45◦ and
AB < AC. Let AD, AH be the angle bisector and altitude of triangle ABC with
D, H are on BC. Suppose that OD intersects AH at E and K is the circumcenter
of triangle EBC. Prove that HK ∥ AD.
Problem 3. Let a1 ≤ a2 ≤ . . . ≤ a50 be real numbers such that
(i) a1 + a2 + . . . + a50 = 0,
(ii) |a1 | + |a2 | + . . . + |a50 | = 624.
Find the minimum value for S = a50 − a1 and maximum value of T = a1 a2 . . . a50 .
Test 2
Problem 4. Find all positive integers n < 2027 that satisfy the following conditions:
(i) For every positive divisor d of n, numbers 1d , 2d , . . . , 2026d all have distinct
remainders when divided by 2027.
(ii) τ (n)2 |n with τ (n) is the number of positive divisors of n.
Problem 5. Find all functions f : R → R satisfying the following conditions:
(i) there is at most one number a such that f (a) = 0,
(ii) f f (x + y)f (x − y) + 25xy + y 2 = 24yf (x) + xf (x + y) for all real x, y.
Problem 6. Let ABC be an acute, non-isosceles triangle that inscribed in circle
(O) and the orthocenter H. The rays AO, BO, CO intersect the sides BC, CA, AB
respectively at A1 , B1 , C1 . The rays AH, BH, CH intersect (O) respectively at points
D, E, F . Prove that the circumcircles of triangles ADA1 , BEB1 , CF C1 have two
common points.
3. JBMO Team selection tests
Test 1
Problem 1. Let ABC be a triangle with ∠BAC = 90◦ with the altitude AH
(H ∈ BC). A circle (ω) passes through B, C and cuts the segments AB, AC at
M, N respectively. Circle√(ω) also cuts the line AH at D, E (D lies between A, H).
Suppose that DE = AH 5, prove that the circumcircle of triangle HM N is tangent
to BC.
Problem 2. Let x1 , x2 , x3 and y1 , y2 , y3 are 6 positive real numbers such that
x1 + x2 + x3 = y1 y2 y3 and y1 + y2 + y3 = x1 x2 x3 .
Find the minimum value of T = x1 y1 + x2 y2 + x3 y3 .
Problem 3. Determine all pairs (m, n) of non-negative integers such that
2n! = m!(m! + 2).
Problem 4. Let n > 2 be an integer and let S be a set of k points in the plane whose
coordinates both lie in {1, 2, . . . , n}. Find the minimal number of k for which one
can choose four points from S that are the vertices of a nondegenerate parallelogram.
SAUDI ARABIAN IMO Booklet 2025
12
Selected problems from camps
Test 2
Problem 5. Given a square board of 8 × 8 and one colors exactly 7 squares of the
board. Prove that for every way of coloring, there always exists a sub-square size
2 × 2 of the board on which exactly one square is colored.
Problem 6. Given two circles (O), (O′ ) with different radii and intersecting at A, B.
Circle of center A, radius AB intersects (O), (O′ ) again at C, D respectively. Let EF
be the common tangent closer to B of the two circles with E ∈ (O), F ∈ (O′ ). Rays
AE, AF intersect BC, BD at M, N respectively. Prove that the internal bisector of
∠CBD passes through the circumcenter of triangle AM N.
Problem 7. Determine all triples (a, b, c) of integers such that
a3 + b3 + c3 = 25(abc + a2 b + b2 c + c2 a).
Problem 8. Find the smallest positive integer k ≥ 2 such that for all x, y, z ̸= 1
satisfying x + y + z = 3 and xyz = 1 then the k−th root of numbers |x| , |y| and |z|
are the side lengths of some triangle.
4. IMO Team Selection Tests
Test 1
Problem 1.
Let P (x) = a2025 x2025 + a2024 x2024 + · · · + a1 x + a0 be the real coefficient polynomial
with a2025 = 22025 + 2025 and suppose that P (x) has 2025 real roots (not necessarily
distinct) belong to (0; 1). It is given that P (0) and P (1) are both integers, find all
possible values of P (1).
Problem 2. (N3, IMO Shortlist 2024)
Determine all infinite sequences a1 , a2 , . . . of positive integers such that for any
positive integers n and k
an + an+1 + · · · + an+k−1
√
and k an an+1 · · · an+k−1
k
are integers.
Problem 3. (G7, IMO Shortlist 2024)
LLet ABC be a triangle with incentre I such that AB < AC < BC. The second
intersections of AI, BI and CI with the circumcircle of triangle ABC are MA , MB
and MC , respectively. Lines AI and BC intersect at D and lines BMC and CMB
intersect at X. Suppose the circumcircles of triangles XMB MC and XBC intersect
again at S ̸= X. Lines BX and CX intersect the circumcircle of triangle SXMA
again at P ̸= X and Q ̸= X, respectively. Prove that the circumcentre of triangle
SID lies on P Q.
SAUDI ARABIAN IMO Booklet 2025
Selected problems from camps
Test 2
Problem 4. (G1, IMO Shortlist 2024)
Let ABCD be a cyclic quadrilateral such that AC < BD < AD and ∠DBA < 90o .
Point E lies on the line through D parallel to AB such that E and C lie on opposite
sides of line AD, and AC = DE. Point F lies on the line through A parallel to CD
such that F and C lie on opposite sides of line AD, and BD = AF . Prove that
the perpendicular bisectors of segments BC and EF intersect on the circumcircle
of ABCD.
Problem 5. (C3, IMO Shortlist 2024)
Let n be a positive integer. There are 2n knights sitting at a round table. They
consist of n pair of partners, each pair of which wishes to shake hands. A pair
can shake hands only with next to each other. Every minute, on pair of adjacent
knights swaps places. Find the minimum number of exchanges of adjacent knights
such that, regardless of the initial arrangement, every knight can meet her partner
and shake hands at some moment.
Problem 6.
Prove that there are infinitely many primes p such that each of them divides an
integer of the form 3n − 2, but does not divide any integer of the form 2m − 3, where
m and n are positive integers.
Test 3
Problem 7.
The sequence of positive integers {an }n≥1 is such that
√
an ≤ 10001000
log2 n
, ∀n = 1, 2, 3, ...
It is known that any number appears in the sequence at most 5000 times. Prove
that there are infinitely many primes, each of which divides at least one member of
the sequence.
Problem 8. (A5, BMO Shortlist 2024)
Find all non-negative real numbers c ≥ 0 such that there exists a function f
(0, +∞) → (0, +∞) with the property
:
f y 2 f (x) + y + c = xf (x + y 2 )
for all x, y > 0.
Problem 9. (C5, IMO Shortlist 2024)
Let N be a positive integer. Ali and Hadi play a game in which they start by writing
the numbers 1, 2, . . ., N on a board. They then take turns to make a move, starting
with Ali. Each move consists of choosing a pair of integers (k, n), where k ≥ 0 and
n is one of the integers on the board, and then erasing every integer s on the board
such that 2k |n − s. The game continues until the board is empty. The player who
erases the last integer on the board loses.
Determine all values of N for which Ali can ensure that he wins, no matter how
Hadi plays.
SAUDI ARABIAN IMO Booklet 2025
14
Selected problems from camps
Test 4
Problem 10. (C1, IMO Shortlist 2024)
Let n be a positive integer. A class of n students run n races, in each of which
they are ranked with no draws. A student is eligible for a rating (a, b) for positive
integers a and b if they come in the top b places in at least a of the races. Their
final score is the maximum possible value of a − b across all ratings for which they
are eligible. Find the maximum possible sum of all the scores of the n students.
Problem 11. (G4, IMO Shortlist 2024)
Let ABCD be a quadrilateral with AB is parallel to CD and AB < CD. Lines AD
and BC intersect at a point P . Point X ̸= C on the circumcircle of triangle ABC
is such that P C = P X. Point Y ̸= D on the circumcircle of triangle ABD is such
that P D = P Y . Two lines AX and BY intersect at the point Q. Prove that P Q is
parallel to AB.
Problem 12. (A5, IMO Shortlist 2024)
Find all periodic sequences a1 a2 , . . . of real numbers such that the following conditions hold for all n ≥ 1:
an+2 + a2n = an + a2n+1
and
|an+1 − an | ≤ 1.
SAUDI ARABIAN IMO Booklet 2025
Solution of Preselection tests
Test 1
Problem 1
Let a, b, c be nonnegative real numbers such that a ≥ b ≥ c. Prove that
9
a3 + b3 + c3 − 3abc ≥ (a − b)(b2 − c2 ).
2
Solution. Write the inequality as
9
(a + b + c)(a2 + b2 + c2 − ab − bc − ca) ≥ (a − b)(b − c)(b + c).
2
Since a + b + c ≥ 23 (b + c), it suffices to show that
a2 + b2 + c2 − ab − bc − ca ≥ 3(a − b)(b − c).
This is equivalent to the obvious inequality (a − 2b + c)2 ≥ 0. The equality holds
for a = b = c.
Problem 2
The monic polynomial P (x) is called “nice” if its coefficients are in {−1; 0; 1}.
Given a nice polynomial P (x) of degree 2025 and it is divisible by x7 − 1, what
is the maximum number of non-zero coefficients in P (x)?
Solution. Let f (x) = x7 − 1, we have x7k+r ≡ xr (modf (x)) for all r = 0, 1, ..., 6
and k is a positive integer. We will group together all exponents divided by 7 with
remainder r. We have
P (x) = a2025 x2025 + · · · + a2 x2 + a1 x + a0
≡ (a0 + a7 + · · · + a2023 ) + (a1 + a8 + · · · + a2024 )x + · · ·
+ (a6 + a13 + · · · + a2022 )x6 (mod f (x)).
We see that RHS is a polynomial of degree not exceed 6, so to have congruence 0
modulo f (x), we need the RHS is identical to 0. From that, we will get
289
X
i=0
a7i =
289
X
i=0
a7i+1 =
289
X
i=0
a7i+2 =
288
X
a7i+3 =
i=0
288
X
i=0
a7i+4 =
288
X
i=0
a7i+5 =
288
X
a7i+6 = 0.
i=0
We see that in the first three sums, there are 290 terms and in the remaining sums,
there are 289 terms. So in the first three sums, we choose 145 number 1 and 145
15
16
Solution of Preselection tests
number −1, and the remaining sums have at least one 0 (otherwise the sum of 289
odd numbers can not be zero). Thus, there are at least 4 coefficients equal to 0, so
there are at most 2026 − 4 = 2022 non-zero coefficients.
To construct, we just choose the coefficients base on the above idea with a2025 ̸= 0.
The answer is 2022.
Problem 3
A large rectangle is subdivided into smaller rectangles, each of which has at
least one pair of sides of integer length. Prove that the large rectangle also has
at least one pair of sides of integer length.
Solution. Label the large rectangle by R and place it in the plane so that its lowerleft corner is at (0, 0) with sides parallel to Ox, Oy.
Let S be the set of vertices of the small rectangles whose both coordinates are
integers, and let T be the set of all the small rectangles. We form a bipartite graph
on the vertex set S ∪ T by joining each point in S to every rectangle in T of which
it is a vertex. Observe that each small rectangle has either 0, 2, or 4 vertices in S
(because of integer length side), so it contributes an even number of edges. Hence
the total number of edges in this bipartite graph is even. On the other hand, each
point in S that is not a corner of R is a vertex of exactly 2 or 4 small rectangles,
and so also has even degree.
Since (0, 0) is in S and is a corner of exactly one small rectangle, it has odd degree.
Therefore there must be another vertex in S of odd degree. The only vertices of odd
degree can be corners of R, so at least one other corner of R lies in S. In particular,
either the width or the height of R is an integer.
Problem 4
Let ABC be a triangle inscribed in circle (O) with ∠A = 45◦ . Two rays BO, CO
intersect AC, AB at E, F respectively. The circumcircles of triangles BOC and
EOF intersect at K. Let J be circumcenter of triangle AEF . Prove that JK
passes through the orthocenter of triangle ABC.
Solution. We have
∠BOC + ∠EOF = 90◦ + 90◦ = 180◦
so according to the familiar property of isogonal conjugates in quadrilaterals, we see
that there exists a point O′ which is the isogonal conjugate of O in BF EC. On
the other hand, BH, BO and CH, CO are isogonal pairs in the angles ∠B, ∠C so
clearly O′ ≡ H. It follows that ∠BF H = ∠OF E and ∠CEH = ∠OEF.
Suppose JH intersects the circle (EJF ) at point K.
SAUDI ARABIAN IMO Booklet 2025
Solution of Preselection tests
We will prove that K belongs to the circle (BOC). Indeed, we have ∠HBF = 45◦ =
∠JEF = ∠JKF so F, K, H, B are congruent. Similarly, E, K, H, C are congruent.
It follows that
∠BKC = ∠BKH + ∠CKH = ∠BF H + ∠CEH = ∠OF E + ∠OEF = 90◦ .
From here it follows that K belongs to BOC.
Test 2
Problem 5
Find the smallest real number c > 0 such that
{x} + {y} < c + xy
for all real numbers x, y > 0 and xy < 1.
n+1
n
n
Solution. First, choose x = n+2
, y = n+1
with n ∈ Z+ then xy = n+2
< 1. Substituting into the given inequality, we have
n+1
n
n
n+1
n
n
+
<c+
⇐⇒
+
<c+
n+2
n+1
n+2
n+2 n+1
n+2
n
1
⇐⇒ c >
+
.
n+1 n+2
Here, for n → +∞ we have c ≥ 1. Next, we will prove the inequality with c = 1:
{x} + {y} < 1 + xy for all x, y > 0 and xy < 1. Indeed, we have
(1 − {x})(1 − {y}) > 0 =⇒ {x} + {y} < 1 + {x}{y} ≤ 1 + xy.
This inequality is true. Therefore, the minimum value we need to find is c = 1.
SAUDI ARABIAN IMO Booklet 2025
18
Solution of Preselection tests
Problem 6
Find all functions f : R+ → R such that for all x, y > 0 we have
f (x2 + xf (y) + y) = 2x + f (y).
Solution. Let r > s be two positive real numbers. Then, there would be a positive
real number t such that t2 + f (s)t + s − r = 0. Now, put (x, y) = (t, s) it follows
that
f (r) = f (t2 + f (s)t + s) = 2t + f (s) > f (s).
, y) it follows
So, f is strictly increasing and hence injective. Plugging (x, y) = ( f (z)
2
that
f (z) + f (y) = f (f (z)2 /4 + f (z)f (y)/2 + y) = f (f (y)2 /4 + f (z)f (y)/2 + z)
√
That is, f (z)2 /4 − z = C. Hence, f (z) = 4z + C, for some C ≥ 0.
Problem 7
Let ABC be a non-isosceles triangle with centroid G and inscribed in circle (O).
Let M, N, P be the midpoints of BC, CA, AB respectively. Let D, E, F be the
reflection points of the foot of the internal bisector of angles A, B, C through
M, N, P respectively. Prove that the orthocenter of triangle DEF lies on line
OG.
Solution. Suppose EF intersects BC at D′ . Let (ωA ) be the circle with diameter
DD′ . By the angle bisector theorem, one can get
DB
AC EC
AB F A
BC
=
,
=
,
=
.
DC
AB EA
BC F B
CA
Base on Ceva’s theorem, AD, BE, CF are concurrent and (DD′ , BC) = −1. If
AU, AV are the internal, external angle bisectors of triangle ABC, then (U V, BC) =
SAUDI ARABIAN IMO Booklet 2025
Solution of Preselection tests
−1. Through the reflection over the center M , then (DV ′ , CB) = −1 with V ′ being
the symmetric point to V through M. From there, D′ ≡ V ′ so (ωA ) is the reflection
of the A−Apollonius circle through the perpendicular bisector of BC.
Suppose that A−Apollonius circle intersects (O) at K then KB
= AB
so ABKC
KC
AC
is harmonic, entailing AK is the symmetric line of triangle ABC. Therefore, (ωA )
intersects (O) at A′ , R will be the points symmetric to A, K through the perpendicular bisector BC. Therefore, KR ∥ BC so AK, AR are isogonal in angle A, which
implies that AR is the median of triangle ABC or R ∈ AM. Suppose AR intersects
(ωA ) at S, then by the property of power of a point and Newton’s formula, we have
M R · M S = M D · M D′ = M B 2 = −M B · M C = −M R · M A.
From there, we deduce M S = −M A or M is the midpoint of AS. Here we have
PG/(O)
GR · GA
GA
2/3 · M A
1
=
=
=
=− .
PG/(ωA )
2
GR · GS
GS
4/3 · M S
Therefore PG/(ωA ) = −2PG/(O) is equal between vertices A, B, C. Therefore we have
G has the same power to the three circles (ωA ), (ωB ), (ωC ).
On the other hand, OA is tangent to the Apollonius circle at vertex A so OA′ is
tangent to (ωA ). From there we have
2
PO/(ωA ) = OA′ = R2
with R being the radius of (O). Also because of this symmetry, G has the same
power to the three circles (ωA ), (ωB ), (ωC ). Let X be the projection of D onto EF
then X ∈ DH and X ∈ (ωA ). Then, PH/(ωA ) = HX · HD. Obviously, this quantity
is also symmetric between the vertices D, E, F in triangle DEF , so H also has the
same power to the three circles (ωA ), (ωB ), (ωC ). From that we immediately have
H ∈ OG.
Problem 8
Suppose G is a simple planar graph with minimum degree at least 5. Prove that
G contains an edge {x, y} such that deg(x) + deg(y) ⩽ 11.
Solution. By adding edges we can assume that G is a triangulation (note that if we
add edges the minimum degree only increases and if we find an edge {x, y} such
that deg(x) + deg(y) ⩽ 11 in the new graph, this edges will also be present in the
original graph, since otherwise one of its endpoint would have degree smaller than
5 in the original graph). Let V be the set of vertices, E the set of edges, and F the
set of faces of our triangulation. Let d(v) be the degree of v ∈ V and let d(f ) be the
number of edges on the boundary of f . Here, if e ∈ E is on the boundary of only
one face, then we count it two times. Hence,
X
X
d(f ) = 2|E| =
d(v)
v∈V
f
Thus, by Euler’s formula, we have
X
X
X
(6 − d(v)) =
(6 − 2d(f )) +
(6 − d(v)) = 6|F | − 4|E| + 6|V | − 2|E| = 12
v∈V
f
v∈V
SAUDI ARABIAN IMO Booklet 2025
20
Solution of Preselection tests
since for every face d(f ) = 3. Let us give a charges 6 − d(v) to every vertex v ∈ V .
The total charge is 12 . The only vertices with positive initial charge are vertices
satisfying d(v) = 5. Now we discharge the system using a single rule: every vertex
of degree 5 gives charge 15 to each of its neighbors. Clearly the total final charge
is still 12. Thus there are vertices with positive final charge. Suppose v is such a
vertex. Then its final charge c(v) satisfies
1
4
0 < c(v) ⩽ 6 − d(v) + d(v) = 6 − d(v).
5
5
Thus d(v) ⩽ 7. Now we consider three cases.
(i) Suppose v with positive final charge satisfies d(v) = 6. Then its initial charge
was 0 and thus this vertex must have gained some charge. So, one of its
neighbors u has degree 5 and {u, v} is the desired edge.
(ii) Suppose v with positive final charge satisfies d(v) = 5. Then in the discharging
process this vertex gave all its charge to its five neighbors. But since the final
charge is positive, it must have gained some charge from a vertex of degree 5.
Thus, one of its neighbors u has degree 5 and so {v, u} is the desired edge.
(iii) Suppose v with positive final charge satisfies d(v) = 7. Since the initial charge
of v was −1, v gained charge from at least 6 of its neighbors, so it has at least
6 neighbors with degree 5. There is one more neighbor of v whose degree we
do not control. Since G is a triangulation, the neighbors of v form a cycle and
clearly on this cycle there are two adjacent vertices u1 and u2 of degree 5 .
Thus {u1 , u2 } is the desired edge.
Test 3
Problem 9
Let ABC be a triangle. Point D lies on side BC, such that the incircles of
triangles ABD and ACD are congruent. Let ΩB be the circle with diameter AB,
and let ΩC be the circle with diameter AC. Prove that line AD is perpendicular
to one of the common tangents to the circles ΩB and ΩC .
Solution. Denote AH as the altitude of triangle ABC then clearly H ∈ ΩB , ΩC so
AH is the common chord of the two circles. Let EF be the common tangent near
A of the two circles with E ∈ ΩB , F ∈ ΩC . According to the familiar property, AH
passes through the midpoint K of EF. Draw Ax ∥ EF then A(Kx, EF ) = −1.
We redefine D as a point on BC such that AD⊥EF. Let I, J be the two incenters
of ABD, ACD respectively and let AI, AJ intersect BC at M, N respectively. Let
R, S be the centers of the circles ΩB , ΩC (which are also the midpoints of AB, AC)
then RE ∥ AM (because they are both perpendicular to EF ) so
1
1
∠ABE = ∠ARE = ∠DAB = ∠M AB,
2
2
which implies BE ∥ AM or AE⊥AM. Similarly, AF ⊥AN .
SAUDI ARABIAN IMO Booklet 2025
Solution of Preselection tests
Now draw Ay ∥ M N then AK⊥Ay. From there, according to the orthogonality
property of two harmonic bundles, we immediately have A(Dy, M N ) = −1. Thus,
DM = DN. Then, according to the property of the angle bisector,
IM
DM
DN
JN
=
=
=
=⇒ IJ ∥ M N.
IA
DA
DA
JA
Therefore, the distances from I, J to the line BC are equal implies that the radius
of the circle inscribed in triangles ABD, ACD are equal. So in other words, D is
the given point in the problem.
Problem 10
Let positive integer n is given. The cube of size 2n + 1 consists of (2n + 1)3 unit
cubes. Each cube is either colored green or orange. It is know that within any
8 unit cubes that form a cube 2 × 2 × 2, there are at most 4 green cubes. Find
the maximum number of green cubes.
Solution. (Solution of Yousif Alkhalawi, IMO 2025 team’s candidate)
Since each cube 2 × 2 × 2, there are at least 4 orange unit cubes (here we call it by
square) so we want to minimize the number of orange squares.
Construction: let number the layer n × n of cubes from 1 → n (bottom to top). For
each layer, consider the coordinate of a single squares as (x, y) for 1 ≤ x, y ≤ n.
• For the odd layers, we color squares at (x, y) orange if x, y are both even. The
number of orange squares is n2 .
• For the even layers, we color square at (x, y) orange if xy is even. The number
of orange squares is (2n + 1)2 − (n + 1)2 = n(3n + 2).
SAUDI ARABIAN IMO Booklet 2025
22
Solution of Preselection tests
The cube 2 × 2 × 2 will have 1 orange square in odd layer and 3 orange squares in
even layers so it always have 4 orange squares as desired. The total orange squares
is (n + 1)n2 + n2 (3n + 2) = n2 (4n + 3). Thus the number of green squares is
(2n + 1)3 − n2 (4n + 3) = 4n3 + 9n2 + 6n + 1.
We will prove this is the maximum number of green unit cubes by induction on n.
For the base case n = 1, in the cube of size 3, consider some 3 sub-cubes of size 2
at 3 opposite corners. The number of orange squares on these sub-cubes is at least
4 × 3 = 12. Note that there is at most 1 square appears in all of 3 sub-cubes, and
there are at most 3 other squares appear in 2 of 3 sub-cubes. So the number of
orange square in big-cube is at least 12 − 2 − 3 = 7.
For a cube of size 2n + 1, we consider the sub-cube of size 2n − 1 in the top corner,
denote it as Ω and the square in the opposite corner with it as X. By induction, Ω
need at least 4(n − 1)3 + 3(n − 1)3 orange squares so we need to prove in the rest of
the big-cube, there are at least (4n3 + 3n2 ) − (4(n − 1)3 + 3(n − 1)2 ) = 12n2 − 6n + 1
orange squares. Note that to build up the original cubes, one can place n2 sub-cubes
of size 2 on each face of Ω and one sub-cubes of size 2 touching X. So there are
3n2 + 1 sub-cubes leads to the sum of orange square is at least 12n2 + 4. To estimate
the duplication, for each of 2n squares on the edge containing X, it can be in 2
sub-cubes of size 2 and for square X, it can be in 3 so the minimum is
4(3n2 + 1) − 3 × 2n − 1 × 3 = 12n2 − 6n + 1.
This finishes the proof.
Problem 11
Find all pairs (b, c) of positive integers, such that the sequence defined by a1 = b,
a2 = c and
an+2 = |4an+1 − 3an | , ∀n ≥ 1
has only finite number of composite terms.
Solution. Suppose firstly that there exists a k ≥ 2 such that ak+1 > ak . Then
by induction we have an+1 > an for all n ≥ k (when taking out the modulus the
expression does not change sign) and so an+2 = 4an+1 − 3an for all n ≥ k. Solving
the characteristic equation t2 − 4t + 3 = 0 implies that
an = C1 + C2 · 3n , ∀n ≥ k.
Since the sequence is strictly increasing, we must have C2 > 0 and in particular
any prime divisor p of some am ≥ 2 will also be a prime divisor of am+k(p−1) for
SAUDI ARABIAN IMO Booklet 2025
Solution of Preselection tests
any k ≥ 0 as 3m+k(p−1) ≡ 3m (mod p) by Fermat’s Little theorem. In particular,
infinitely many terms would be composite.
Therefore ak+1 ≤ ak for all k ≥ 2. Since ak > 0, we must have an = p where p is a
prime for all n ≥ n0 with some positive integer n0 . Thus
p = |4p − 3an−1 | =⇒ an−1 ∈ {p, 3p}.
The former case gives us (b, c) = (p, p) which indeed satisfying the condition. Let’s
consider the latter case: an−1 = 3p, so we can find out that an−2 = 4p ± p3 . We
consider some cases:
• If there is no an−2 , then (b, c) = (3p, p) are the first two terms.
• If p is divisible 3, thus p = 3, an−1 = 9, an−2 = 11 or 13, which implies an−3
being not integer.
So, finally we get (b, c) ∈ {(11, 9), (13, 9), (p, p), (3p, p)} where p is any prime.
Problem 12
Let x1 , x2 , ..., xn be positive real numbers. For each positive integer K, define
Sk = xk1 + xk2 + ... + xkn .
(i) Prove that if S1 < S2 the sequence S1 , S2 , S3 , ... is strictly increasing;
(ii) Prove that it is possible that S1 > S2 and yet the sequence S1 , S2 , S3 , ...
is not strictly decreasing.
Solution. We will actually prove a stronger statement: if for some k it is true that
Sk < Sk+1 , then Sj < Sj+1 for all j ≥ k (i.e., the sequence is strictly increasing starting from that point). For our proof, we will use the following key observation. For any positive real number x and positive integer m, the inequality
xm+2 − xm+1 ≥ xm+1 − xm holds. Indeed, dividing everything by xm we obtain the
equivalent inequality x2 − x ≥ x − 1, that is x2 − 2x + 1 ≥ 0, which is true because
the left hand side equals (x − 1)2 .
Now it suffices to see that by letting m fixed and adding up all these inequalities
for each number xi , we conclude that Sm+2 − Sm+1 ≥ Sm+1 − Sm . In particular, if
for some k it happens that Sk+1 > Sk , then for all j ≥ k we have that
Sj+1 − Sj ≥ Sj − Sj−1 ≥ . . . ≥ Sk+1 − Sk > 0
as claimed. To construct a counterexample for part (b), we can take n = 2, x1 = 1.1
and x2 = 0.5. For these numbers,
S1 = 1.6 and S2 = 1.21 + 0.25 = 1.46 < S1 .
However, the sequence is not strictly decreasing, because for a large enough n we
have that
Sn > (1.1)n > 1.6 = S1 .
SAUDI ARABIAN IMO Booklet 2025
24
Solution of Preselection tests
Test 4
Problem 13
On the board is written a (not necessarily positive) integer. In a move, if the
current number on the board is a, one erases it and replaces it by either a2 +2a+3
or 5a2 + 2 or a − 119. Is there a starting number s such that for any positive
integer f one can reach f from s with finitely many moves?
Solution. Note that all of numbers of form 119k and 119k − 1 cannot be represented
as a2 + 2a + 3 or 5a2 + 2. We can check this claim by consider modulo 7 and 17.
Indeed,
• If 119k = a2 + 2a + 3 = (a + 1)2 + 2 then −2 is quadratic residue modulo 7,
clearly absurd since quadratic residue modulo 7 are 0, 1, 2, 4.
• If 119k = 5a2 + 2 then 3 is a quadratic residue modulo 17, also absurd.
• If 119k − 1 = a2 + 2a + 3 then −3 is quadratic residue modulo 17, also absurd.
• If 119k − 1 = 5a2 + 2 then −2 is quadratic residue modulo 7, also absurd.
So if we consider the first number in one of the above forms in which we run into
when going backwards, it turns out that we can only shift by multiples of 117 and
hence cannot obtain any number of the other form.
Problem 14
Find all functions f : R+ → R+ satisfying
f (f (xy) + 1) = xf (x + f (y)), ∀x, y > 0.
Solution. First, replace x → yz then
z
f (f (z) + 1) = f
y
z
+ f (y) , ∀y, z > 0.
y
(1)
In (1), continue to set z = 1 and set f (f (f (1) + 1) = c, we have f y1 + f (y) = cy
for all y > 0. The right-hand side takes on any values on R+ , so the function f (y)
is surjective on R+ .
Now suppose that there exists 0 < y1 < y2 such that f (y1 ) < f (y2 ). We choose z0
such that
z0
z0
f (y2 ) − f (y1 )
+ f (y1 ) =
+ f (y2 ) ⇐⇒ z0 = y1 y2
> 0.
y1
y2
y2 − y1
In (1), replace z = z0 and let y = y1 , y = y2 respectively, we have
z0
z0
z0
z0
f (f (z0 ) + 1) = f
+ f (y1 ) = f
+ f (y2 ) .
y1
y1
y2
y2
SAUDI ARABIAN IMO Booklet 2025
Solution of Preselection tests
Base on the choice of z0 , we have
z0
z0
f
+ f (y1 ) = f
+ f (y2 ) ,
y1
y2
it follows that y1 = y2 . This contradiction shows that with 0 < y1 < y2 , there
must be f (y1 ) ≥ f (y2 ) so f is a non-increasing function. Thus, f is both surjective
and monotone on R+ so it will be continuous on R+ . Since f is continuous and
non-increasing, there exists lim f (x) = c ≥ 0. However, if c > 0 then f (x) ≥ c >
x→+∞
0, ∀x ∈ R+ , which contradicts surjectiveness. Therefore c = 0.
Finally, in the given condition, for each x > 0, given y → +∞ then f (f (xy) + 1) →
f (1) and f (x + f (y)) → f (x). These imply that f (1) = xf (x) or f (x) = xc with
c = f (1) > 0. It is easy to check that this function satisfies the problem.
Problem 15
Given an acute triangle ABC that inscribed in (O) with ∠A = 60◦ and the
symmedian point L. The tangents at B, C of (O) intersect CA, AB at E, F .
Prove that the line OL and two circumcircles of triangles AEF, BOC pass
through the same point.
Solution. Let D be the midpoint of the minor arc BC of (O) and P be the intersection point of the tangents at B, C of (O). We will show that D and P lie on (AEF ).
SAUDI ARABIAN IMO Booklet 2025
26
Solution of Preselection tests
Indeed, we have
∠AEP = ∠AEB = ∠BAC − ∠ABE = ∠ODB − ∠ADB = ∠ADO
so (ADP ) passes through E. Similarly, (ADP ) passes through F . Now, let J be
the center of (AEF ), and we will show that JD ∥ OL.
From here, since D is the center of circle (BOC) then JD ⊥ P X and OX ⊥ P X,
it follows that O, X, L lie on the same line parallel to JD. Since (ABC) intersects
(AEF ) at D other than A, then ∆DBE ∼ ∆DCF but DB = DC so DE = DF .
On the other hand, JE = JF since J is the center of (AEF ) so JD ⊥ EF. According
to the familiar result, EF ⊥ OL, so JD ∥ OL which finishes the proof.
Problem 16
Let P (x) be a polynomial with integer coefficients, the leading one being positive. Prove that there are finitely many positive integers n such that n! + 1 is
a power of P (n).
Solution. For each positive integers n such that n! + 1 is a power of P (n), we write
n! + 1 = P (n)kn and in this case call n good. Due to the left-hand side and P (x) ≥ x
for x big enough, we have kn < n and P (n) must be odd for n ≥ 2. Hence, using
the LTE, we obtain
ν2 P (n)kn − 1 ≤ ν2 (P (n) − 1) + ν2 (P (n) + 1) + ν2 (kn ) .
Hence at least one of {ν2 (P (n) − 1), ν2 (P (n) + 1), ν2 (kn )} is at least 31 ν2 (n!) for
good n. As there are infinitely many n, by pigeonhole principle, we now know that
one of the following assertions is true:
• There are infinitely many n such that ν2 (P (n) − 1) ≥ 31 ν2 (n!).
• There are infinitely many n such that ν2 (P (n) + 1) ≥ 31 ν2 (n!).
• There are infinitely many n such that ν2 (kn ) ≥ 31 ν2 (n!).
We also know that ν2 (n!) ≥ n2 . So if the first or the second assertion is true we
n
know that for infinitely many n we must have P (n) > 2 6 which contradicts the
polynomial asymptotic behavior. If the last assertion is true then we also have for
n
sufficiently large n, we have kn > 2 6 > n.
SAUDI ARABIAN IMO Booklet 2025
Solution of EGMO TST
Test 1
Problem 1
Let A1 , A2 , . . . , A20 be 20 distinct subsets of size 3 of the set X = {1, 2, . . . , 10}.
We say that a subset S of X is a covering subset if for every 1 ≤ i ≤ 20, it holds
that S ∩ Ai ̸= ∅. What is the minimum possible value of k, such that there
always exists a covering subset of size k?
Solution. First, we select all the 3-element subsets of X1 =
{1, 2, 3, 4, 5} and of
X2 = {6, 7, 8, 9, 10}. Then, the number of subsets will be 53 + 53 = 20. Suppose
there is a covering set of size k ≤ 5, then one of the two sets X1 , X2 will have no
more than 2 elements, which means that there are 3 elements belonging to either
X1 or X2 that are not selected. Clearly, the given condition is not satisfied. Thus,
k ≥ 6.
We will prove that there always exists a covering set of size 6. We will show that
there are 4 numbers a, b, c, d ∈ X of which at most 2 of these 4 numbers are selected
into the given subsets. Suppose by contradiction that for every set of 4 numbers
taken from X, there is always a subset of them chosen. We count in two ways the
number of connections between the 4 sets of numbers (a, b, c, d) taken from X and
the given subsets.
• Counting by tuple (a, b, c, d): there are at least 10
= 210 connections.
4
• Counting by subsets: each subset of 3 elements will belong to 7 different tuples
of 4 numbers, there are 20 subsets are given, so the number of connections is
7 · 20 = 140 < 210.
From here we see that there is an absurdity, so there should always be 4 numbers
a, b, c, d as stated. At this point, we choose the remaining 6 numbers in X. Then,
each subset of 3 elements in the 20 given sets will always have at least one number
belonging to these 6 values. So the minimum value to find is kmin = 6.
Problem 2
Let ABC be a triangle inscribed in circle (O) with angle ∠A = 45◦ and AB <
AC. Let AD, AH be the angle bisector and altitude of triangle ABC with D, H
are on BC. Suppose that OD intersects AH at E and K is the circumcenter of
triangle EBC. Prove that HK ∥ AD.
27
28
Solution to EGMO TST
Solution. Let P, N be the projections of O, K on AE and M, T be the midpoints of
BC and the minor arc BC of (O). Let AH = h and R, R′ be the radii of (O), (K)
respectively.
By Thales’ theorem, we have
√
√
MO
MO
HE
=
=
= 2 + 1 =⇒ HE = ( 2 + 1)h.
HA
MT
OT − OM
According to the Pythagorean theorem, BK 2 − BO2 = KM 2 − OM 2 so
2
2
R′ − R2 = KM 2 − OM 2 =⇒ KM 2 = R′ −
R2
.
2
Similarly,
AO2 − (AH − OM )2 = OP 2 = KN 2 = KE 2 − (EH − M K)2
2
√
2
R
2
2
⇐⇒ R − h − √
= R′ − ( 2 + 1)h − M K
2
√
√
√
2
R2
2
⇐⇒ M K 2 + h · R 2 = R′ −
− ( 2 + 1) h2 + (2 + 2 2)h · M K
2√
√
√
⇐⇒ R 2 = (2 + 2 2)h + (2 + 2 2)M K
√
R 2
√ = h + M T.
⇐⇒ M K = h +
2+2 2
Thus KT = M K − M T = h = AH, proving that AHKT is a parallelogram.
Therefore, AD ∥ HK.
SAUDI ARABIAN IMO Booklet 2025
Solution to EGMO TST
Problem 3
Let a1 ≤ a2 ≤ . . . ≤ a50 be real numbers such that
(i) a1 + a2 + . . . + a50 = 0,
(ii) |a1 | + |a2 | + · · · + |a50 | = 624.
Find the minimum value for S = a50 −a1 and maximum value of T = a1 a2 . . . a50 .
Solution. Suppose that k is the maximum index such that ak ≤ 0 then ak ≤ 0 <
ak+1 . Thus ak+1 + · · · + a50 = −(a1 + a2 + · · · + ak ) and then
|a1 | + |a2 | + · · · + |ak | = |a1 + a2 + · · · + ak | = ak+1 + ak+2 + · · · + a50 =
We have
−312 = a1 + a2 + · · · + ak ≥ k · a1 =⇒ a1 ≤
624
= 312.
2
−312
,
k
312 = ak+1 + ak+2 + · · · + a50 ≤ (50 − k) · a50 =⇒ a50 ≥
312
.
50 − k
Hence,
312
312
a50 − a1 ≥
+
= 312
50 − k
k
1
1
+
k 50 − k
≥ 312 ·
624
4
=
.
k + 50 − k
25
The minimum value of S = 624
, the equality case when
25
a1 = a2 = ... = a25 = −
312
312
and a26 = a27 = ... = a50 =
.
25
25
We will continue with T. If there is some ak = 0 then T = 0. Now suppose that all of
given numbers are non-zero and there are k negative numbers among a1 , a2 , ..., a50 .
If k is odd then T < 0. Thus to find the maximum value of T , we consider k is even.
Put h = 50 − k. By AM-GM inequality, we have
k h
a1 + a2 + · · · + ak
ak+1 + ak+2 + · · · + a50
T ≤
·
k
h
k h
312
312
31250
312h+k
=
= k h = k h.
k
h
k ·h
k ·h
We need to prove that
k k · hh ≥ 2424 · 2626 .
WLOG, k ≤ h then k ≤ h − 2 since k, h are even. Suppose that k ≤ h − 4 then we
can use local modification to prove that
k k · hh > (k + 1)k+1 · (h − 1)h−1 ⇐⇒ h · (1 +
1 h−1
1
)
> (k + 1) · (1 + )k
h−1
k
Consider the function f (x) = (x + 1) · (1 + x1 )x with x > 1 and
1
g(x) = ln f (x) = ln(x + 1) + x · ln(1 + ).
x
SAUDI ARABIAN IMO Booklet 2025
(∗)
30
Solution to EGMO TST
We have
g ′ (x) =
1
1
1
1
+ ln(1 + ) −
= ln(1 + ) ≥ 0.
1+x
x
1+x
x
Thus g(x) increasing and then (∗) is prove. Therefore, the maximum value of T is
1324 · 1226 . The equality case when
a1 = a2 = ... = a24 = −13, a25 = a26 = ... = a50 = 12.
Test 2
Problem 4
Find all positive integers n < 2027 that satisfy the following conditions:
(i) For every positive divisor d of n, numbers 1d , 2d , . . . , 2026d all have distinct
remainders when divided by 2027.
(ii) τ (n)2 |n with τ (n) is the number of positive divisors of n.
Solution. Let call the numbers satisfying the given condition as “good” number.
Consider some good number n. One can see that if n is even, then d = 2 is a divisor
of 2, however, then 12 and 20262 both divide 2027 with remainder 1, which does not
satisfy. Therefore, n is odd. We see that n = 1 satisfies the given condition.
Now consider n > 1 and set n = pa11 pa22 . . . pakk with p1 , p2 , . . . , pk being distinct odd
primes and a1 , a2 , . . . , ak positive integers. Since τ (n)2 |n, τ (n) is also odd.
We have τ (n) = (a1 +1)(a2 +1) · · · (ak +1) which is odd, so a1 , a2 , . . . , an are all even.
Therefore, n must be a perfect square. Note that if k ≥ 3 then n ≥ (3 · 5 · 7)2 > 2027,
is not satisfied. Hence k ∈ {1; 2}. We consider the following cases.
1. If k = 1 then n = p2m with p being an odd prime and m ∈ Z+ . Note that
if 2m ≥ 6 then τ (n) ≥ 7 so p ≥ 7 and n ≥ 76 > 2027, does not satisfy.
Therefore, we reduce to considering if 2m = 2 then p = 3 so n = 9; and if
2m = 4 then τ (n) = 5 so p = 5, which implies n = 54 = 625. We can check
that the numbers n = 9, n = 625 all satisfy condition (ii).
2. If k = 2 then n = p2a q 2b with p, q being distinct odd primes and a, b ∈ Z+ .
Note that if both 2a and 2b ≥ 4 then n ≥ (3 · 5)4 > 2027, is not satisfied.
Therefore, we can assume 2b = 2, which implies that 3|τ (n) so p = 3 or q = 3.
(a) If q = 3 then n = 9p2a , then if 2a = 2 then τ (n) = 9 so 92 |n, is not
satisfied; therefore 2a ≥ 4 so n ≥ 9 · 54 > 2027, is also not satisfied.
(b) If p = 3 then n = 32a q 2 ; if 2a = 2 then the same absurdity exists, so
2a > 2. But if 2a ≥ 6 then n ≥ 36 · 52 > 2027, is not satisfied. Therefore
2a = 4 and 5|τ (n) so q = 5, implies n = 2025. We see that this number
satisfies condition (ii).
SAUDI ARABIAN IMO Booklet 2025
Solution to EGMO TST
Therefore n ∈ {9; 625; 2025}. We will prove that these numbers are good.
Consider an arbitrary positive divisor d of n then d is odd. Suppose there exist
u, v ∈ {1; 2; . . . ; 2026} and u ̸= v such that ud ≡ v d (mod 2027). Let s be the
inverse of v modulo 2027 then let t = us, we have td ≡ 1 (mod 2027). Next, let
h = ord2027 (t) then h|d and by Fermat’s little theorem h|2026 so h| gcd(d, 2026).
Note that 2026 = 2 · 1013 with 1013 being a prime number, it is easy to see that
gcd(d, 2026) = 1 and h = 1. Then, we will have
t≡1
(mod 2027) ⇐⇒ us ≡ 1
(mod 2027).
Multiplying both sides of this congruence by v gives u ≡ v (mod 2027), which is
absurd. Thus, all positive divisors d of these n satisfy condition (i).
So all the good numbers are 1, 9, 625, 2025.
Problem 5
Find all functions f : R → R satisfying the following conditions:
(i) there is at most one number a such that f (a) = 0,
(ii) f f (x + y)f (x − y) + 25xy + y 2 = 24yf (x) + xf (x + y) for all reals x, y.
Solution. First, setting y = 0 to give f (f (x)2 ) = xf (x).
Then setting x = 0 to get f (f (y)f (−y) + y 2 ) = 24yf (0) . Now change y by −y then
the LHS does not change, so we will get
24yf (0) = −24yf (0), ∀y =⇒ f (0) = 0.
From f (f (y)f (−y) + y 2 ) = 0, one can get f (y)f (−y) = −y 2 .
Setting y = −x to get f (−24x2 ) = −24xf (x), change x to −x will implies that f (x)
is odd. Thus f (y)2 = y 2 . We have two solutions: f (x) = x for all x and f (x) = −x
for all x.
Now we need to handle the point-wise trap. Let A = {a ∈ R\{0} | f (a) = a} and
B = {a ∈ R\{0} | f (b) = −b}, suppose that these sets are non-empty. Take a ∈ A
and b ∈ B.
Let x = a, y = b − a to gives f (x + y) = f (b) = −b and f (x − y) = f (2a − b). Thus
LHS = f (−bf (2a − b) + 2a(b − a) + (b − a)2 ) = ±(−b ± (2a − b) + b2 − a2 ).
RHS = (b − a)a + a(−b) = −a2 .
Thus ±(±(2a − b)(−b) + b2 − a2 ) = −a2 . For each pair of a, b, there are 4 ways to
choose the sign so for some fixed value a, there are at most 8 ways to choose b which
implies that |B| ≤ 8. Similarly, |A| ≤ 8, this is contradiction since A ∪ B = R\{0}.
Hence, f (x) = x for all x and f (x) = −x for all x.
SAUDI ARABIAN IMO Booklet 2025
32
Solution to EGMO TST
Problem 6
Let ABC be an acute, non-isosceles triangle that inscribed in circle (O) and
the orthocenter H. The rays AO, BO, CO intersect the sides BC, CA, AB respectively at A1 , B1 , C1 . The rays AH, BH, CH intersect (O) respectively at
points D, E, F . Prove that the circumcircles of ADA1 , BEB1 , CF C1 have two
common points.
Solution. Let R be the radius of (O) and AO intersect (BOC) at A2 , then according
to the shooting lemma with notice that O is the midpoint of the arc BC, we have:
OA1 · OA2 = R2
so A2 is the image of A1 through the inversion Ω of center O with power R2 . By
Ω, the points A, D are fixed so Ω : (ADA1 ) ↔ (ADA2 ). Define similarly with
B2 , C2 . According to the property of the inversion, we need to prove that three
circles (ADA2 ), (BEB2 ), (CF C2 ) have two common points. It is easy to see that
they already have the same radical center of H (with negative power), so we only
need to prove that the centers of three circles above are collinear.
Suppose that the circle (OBC) cuts AB, AC at K, L respectively, then
∠KA2 O = ∠ABO = ∠OAB
so KA = KA2 . Similarly LA = F A2 so KL is perpendicular to AA2 . Thus, the
intersection O1 of KL and the line through O, parallel to BC will be the center
of (ADA2 ). The same definition for O2 , O3 . Suppose that thee images of O1 , O2 , O3
SAUDI ARABIAN IMO Booklet 2025
Solution to EGMO TST
through Ω is P1 , P2 , P3 respectively, then to prove that O1 , O2 , O3 are collinear,
we left to prove the circle (P1 P2 P3 ) passes through O, which equivalent to the
perpendicular bisectors of OP1 , OP2 , OP3 are concurrent. Let OK, OL cut BC at
K ′ , L′ , then also according to the shooting lemma, we have
OK · OK ′ = OL · OL′ = R2
so K ′ , L′ are images of K, L through Ω. Let X be the midpoint of K ′ L′ , then notice
that O, O1 , P1 are collinear and OK ′ L′ P1 is an isosceles trapezoid which implies that
X belongs to the perpendicular bisector of OP1 . Notice that two triangles HBC and
OK ′ L′ have parallel sides, so HM ∥ OX. Similar define for Y, Z, then we reduce to
the proof that the lines through X, Y, Z perpendicular to BC, CA, AB will concur,
respectively. Using Carnot’s theorem, we need to prove that
X
(BX 2 − CX 2 ) = 0.
sym
We have
BX 2 − CX 2 = BC(BX − XC) = 2M X · BC.
Since the two triangles OXM and HM D are similar,
XM
OM
AH
=
=
.
MD
HD
2HD
From that
2M X · BC =
AH
AH 2 · 2DM · BC
AH 2 · (AC 2 − AB 2 )
.
· DM · BC =
=
HD
2AH · HD
PH/(O)
Since AC 2 − AB 2 = CD2 − BD2 we need to prove
P
AH 2 (CD2 − BD2 ) = 0.
sym
However, this is true because
X
X
AH 2 (CD2 − BD2 ) = 4
([HAB]2 − [HAC]2 ) = 0.
A,B,C
A,B,C
The problem is completely solved.
SAUDI ARABIAN IMO Booklet 2025
Solution of JBMO TST
Test 1
Problem 1
Let ABC be a triangle with ∠BAC = 90◦ with the altitude AH (H ∈ BC). A
circle (ω) passes through B, C and cuts the segments AB, AC at M, N respectively. Circle (ω)√also cuts the line AH at D, E (D lies between A, H). Suppose
that DE = AH 5, prove that the circumcircle of HM N is tangent to BC.
2
Solution. Base on the power from H to
√the circle (ω), HD · HE = HB · HC = AH .
Moreover, HD + HE = DE = AH 5. Thus, the lengths HD, HE will be the
solutions of the quadratic equation
√
x2 − AH 5 · x + AH 2 = 0.
Since D is inside triangle ABC, HD < AH, entails HE > AH and will have
HE > HD. From there, solving the above equation, we get
√
√
−1 + 5
1+ 5
HD =
AH and HE =
AH.
2
2
Hence,
√
√
3− 5
3+ 5
AD = AH − HD =
AH and AE = AH + HE =
AH.
2
2
34
Solution to JBMO TST
It follows that
AD · AE =
√ !
3− 5
2
√ !
3+ 5
AH 2 = AH 2 .
2
Furthermore, according to the power from A to the circle (ω), AD · AE = AM ·
AB = AN · AC. Therefore AH 2 = AM · AB = AN · AC, which implies that
HM ⊥AB, HN ⊥AC so the quadrilateral AM HN is a rectangle. Therefore, the
circle circumscribing triangle HM N is also the circle with diameter AH so it will
be tangent to BC.
Problem 2
Let x1 , x2 , x3 and y1 , y2 , y3 are 6 positive real numbers such that
x1 + x2 + x3 = y1 y2 y3 and y1 + y2 + y3 = x1 x2 x3 .
Find the minimum value of T = x1 y1 + x2 y2 + x3 y3 .
Solution. Using AM-GM, we have
√
√
x1 + x2 + x3 ≥ 3 3 x1 x2 x3 =⇒ y1 y2 y3 ≥ 3 3 x1 x2 x3 .
√
Similarly, x1 x2 x3 ≥ 3 3 y1 y2 y3 . Multiplying these inequalities, side-by-side, we get
q
3
(x1 x2 x3 · y1 y2 y3 )2 ≥ 9 =⇒ x1 x2 x3 · y1 y2 y3 ≥ 27.
Now applying AM-GM for the given expression
√
√
3
T ≥ 3 3 x1 x2 x3 · y1 y2 y3 ≥ 3 27 = 9.
Hence, the minimum value is 9, equality occurs when
x1 = x2 = x3 = y1 = y2 = y3 =
√
3.
Problem 3
Determine all pairs (m, n) of non-negative integers such that
2n! = m!(m! + 2).
Solution. The answer is (3, 4).
For m = 0, 1 or 2, we obtain the impossible 2n! = 3 and 2n! = 8. However, m = 3
works with n = 4.
Now let m ≥ 4. Clearly, 2n! > 2m!, which implies n > m, so we can write n = m + a
for some positive integer a. The equation transforms into
2(m + 1)(m + 2)(m + a) = m! + 2,
SAUDI ARABIAN IMO Booklet 2025
36
Solution to JBMO TST
and further simplifies to
(m + 1)(m + 2)(m + a) =
m!
+ 1.
2
For m ≥ 4, the right-hand side is odd, but for a ≥ 2, the left-hand side is even.
Therefore, we have no solutions for m ≥ 4 and a ≥ 2.
Finally, if n = m+1, then we have 2(m+1) = m!+2, which simplifies to (m−1)! = 2.
This is impossible for m ≥ 4.
Problem 4
Let n > 2 be an integer and let S be a set of k points in the plane whose
coordinates both lie in {1, 2, ..., n}. Find the minimal number of k for which
one can choose four points from S that are the vertices of a nondegenerate
parallelogram.
Solution. If k = 2n − 1, we can choose all points with x−coordinate, y−coordinate
are 1. Then, clearly there is no parallelogram. Thus, any k ≤ 2n − 1 does not satisfy
the condition. Next, we will prove that k = 2n satisfies. Indeed, let x1 , x2 , ..., xn be
the number of points whose x−coordinate are 1, 2, ..., n respectively. Clearly
x1 + x2 + · · · + xn = 2n.
Consider the segments formed by connecting 2 points with the same x−coordinate.
If there are x points, then at least x − 1 segments with different lengths will be
generated (we take the point with the lowest ordinate and connect it to the remaining
x − 1 points). Thus, with 1 ≤ i ≤ n, among the points with the same x−coordinate
i, we can choose a set Si with size xi − 1 consists of segments with different lengths.
If in S1 , S2 , ..., Sn there are two segments have the same length, it is easy to see that
the four corresponding vertices will form a parallelogram, satisfying the problem.
Conversely, if there are no segments with the same length, then notice that
|S1 | + |S2 | + · · · + |Sn | = (x1 − 1) + (x2 − 1) + · · · + (xn − 1) = n,
but the values in these sets are smaller than n, because the their length is the difference between two y−coordinate, and these coordinate only belong to {1, 2, ..., n}.
Obviously this is a contradiction.
Therefore the minimum value to find is kmin = 2n.
Test 2
Problem 5
Given a square board of 8 × 8 and one colors exactly 7 squares of the board.
Prove that for every way of coloring, there always exists a sub-square size 2 × 2
of the board on which exactly one square is colored.
SAUDI ARABIAN IMO Booklet 2025
Solution to JBMO TST
Solution. We number rows numbered from 1 to 8 (from top to bottom), and columns
numbered from 1 to 8 (from left to right). Suppose by contradiction that each 2 × 2
square board does not contain exactly one colored square.
Obviously there must also be an empty column, let’s say it is the i column with
1 ≤ i ≤ 8. Let’s consider the left column (if any) of this i column, that is, the
(i − 1)−th column. If on that (i − 1)−th column, there is a colored square. Let’s
consider the corresponding 2 × 2 square containing 2 squares on i−th column (which
are two uncolored squares) and also containing the × cell. Thus, the remaining cell
in (i − 1)−th column must also be colored because otherwise the 2 × 2 table contains
exactly 1 colored cell, which contradicts the assumption.
Continuing like that, consider the squares containing 2 cells in column i and containing a colored cell in column i − 1, then by similar reasoning, the remaining cell
is also colored. This shows that the entire column i − 1 must be colored, that is,
there are 8 colored cells, which is absurd. From there, we can deduce that column
i − 1 is an empty column. The same reasoning goes for column i + 1. From there, we
can continue to expand to columns i − 2, i − 3, . . . , 1 and columns i + 2, i + 3, . . . , 8,
which are also empty columns. Therefore, the entire table is not colored, which is
also absurd. This proves the given assertion.
Problem 6
Given two circles (O), (O′ ) with different radii and intersecting at A, B. Circle
of center A, radius AB intersects (O), (O′ ) again at C, D respectively. Let EF
be the common tangent closer to B of the two circles with E ∈ (O), F ∈ (O′ ).
Rays AE, AF intersect BC, BD at M, N respectively. Prove that the internal
bisector of ∠CBD passes through the circumcenter of triangle AM N.
Solution. Since AB = AC, in circle (O), we have ∠ABC = ∠AEB so ABM, AEB
are two similar triangles. This implies that
AM
AB
=
=⇒ AB 2 = AM · AE.
AB
AE
SAUDI ARABIAN IMO Booklet 2025
38
Solution to JBMO TST
Similarly, one could get AB 2 = AN · AF so AM · AE = AN · AF, thus EM N F is
cycle. Hence, ∠AM N = ∠AF E. On the other hand
∠AF E = ∠AF B + ∠BF E = ∠ABD + ∠BAF = ∠BN F
so ∠AM N = ∠BN F = ∠AN D, this means that BD in tangent to (AM N ). Similarly, BC is also tangent to (AM N ), so the center of (AM N ) is equidistant from
the two segments BC and BD. In other words, the angle bisector of ∠CBD passes
through the center of (AM N ).
Problem 7
Determine all triples (a, b, c) of integers such that
a3 + b3 + c3 = 25(abc + a2 b + b2 c + c2 a).
Solution. We will show that there is no solution other than the trivial a = b = c = 0.
For any other triple, we can write a = dx, b = dy, c = dz, where gcd(x, y, z) = 1
and d is a positive integer. After dividing out d, we obtain the same equation but
for x, y, and z. We will demonstrate that each of x, y, and z must be divisible by 3,
which leads to a contradiction.
Assume first that none of x, y, or z is divisible by 3. Then x2 ≡ y 2 ≡ z 2 ≡ 1
(mod 3), which implies that
x + y + z ≡ xyz + y + z + x (mod 3),
meaning xyz ≡ 3 (mod 3), a contradiction. Thus, we may assume that, for example,
z is divisible by 3. Then 3 also divides x3 + y 3 − 25x2 y. Note that we always have
3 | x3 − x, 3 | y 3 − y thus we get 3 | x + y(1 − x2 ). Now, if 3 does not divide x, then
it would not divide y(1 − x2 ), which is a contradiction since 3 | 1 − x2 . Therefore,
3 | x, and consequently also y, as required.
Problem 8
Find the smallest positive integer k ≥ 2 such that for all x, y, z ̸= 1 satisfying
x + y + z = 3 and xyz = 1 then the k−th root of numbers |x| , |y| and |z| are
the side lengths of some triangle.
Solution. Suppose that x = max{x, y, z}. We see that if x, y, z > 0 then base on
√
AM-GM inequality, we have x + y + z ≥ 3 3 xyz = 3 and the equality must occur,
which means that x = y = z = 1, is not satisfied. Next, consider y, z < 0 and put
u = −y > 0, v = −z > 0. One can rewrite the given conditions as x = 3 + u + v and
xuv = 1. Thus x is always greater than the sum of the remaining two numbers, we
need to find k such that
√
√
√
k
x < k u + k v.
Checking with u = v, one can solve given condition to get (x, u, v) = (4, 12 , 12 ). Then,
by substituting this tuple to above inequality, one can get
√
√
2
k
k
4< √
=⇒
8 < 2.
k
2
SAUDI ARABIAN IMO Booklet 2025
Solution to JBMO TST
From this we have k > 3 or k ≥ 4. Now we will prove that k = 4 satisfies the given
condition, that is,
√
4
√
√
√
√
√
√
√
√
2
x < 4 u + 4 v ⇐⇒ x < u + v + 2 4 uv = u + v + √
.
4
x
We will prove that stronger inequality
√
Since x ≥ 4 then
√
√
√
√
√
2
2
u + v + √ ⇐⇒ x − √ < u + v.
x
x
x<
√
x − √2x > 0 and squaring up both sides gives
x+
√
2
4
4
− 4 < u + v + 2 uv ⇐⇒ < 1 + √ .
x
x
x
The final inequality is true because x > 3. Therefore kmin = 4.
Remark. We also can prove that if x = max{x, y, z} then x ≥ 4.
SAUDI ARABIAN IMO Booklet 2025
Solution of IMO TST
Test 1
Problem 1
Let P (x) = a2025 x2025 + a2024 x2024 + · · · + a1 x + a0 be the real coefficient polynomial with a2025 = 22025 + 2025 and suppose that P (x) has 2025 real roots (not
necessarily distinct) belong to (0; 1). It is given that P (0) and P (1) are both
integers, find all possible values of P (1).
Solution. (Solution of Abdulsalam Alsulami, IMO 2025’s team member)
40
Solution of IMO Team selection tests
Problem 2
(N3, IMO Shortlist 2024) Determine all infinite sequences a1 , a2 , . . . of positive
integers such that for any positive integers n and k
an + an+1 + · · · + an+k−1
√
and k an an+1 · · · an+k−1 are integers.
k
Solution. (Solution of Yousif Bakheet, IMO 2025’s team member)
SAUDI ARABIAN IMO Booklet 2025
42
Solution of IMO Team selection tests
SAUDI ARABIAN IMO Booklet 2025
Solution of IMO Team selection tests
Problem 3
(G7, IMO Shortlist 2024) Let ABC be a triangle with incentre I such that AB <
AC < BC. The second intersections of AI, BI and CI with the circumcircle of
triangle ABC are MA , MB and MC , respectively. Lines AI and BC intersect
at D and lines BMC and CMB intersect at X. Suppose the circumcircles of
triangles XMB MC and XBC intersect again at S ̸= X. Lines BX and CX
intersect the circumcircle of triangle SXMA again at P ̸= X and Q ̸= X,
respectively. Prove that the circumcentre of triangle SID lies on P Q.
Solution. Let O be the circumcentre of triangle ABC. First we note from standard
properties of the Miquel point S, we have:
• △SMC MB ∼ △SBC ∼ △SP Q; (*)
SAUDI ARABIAN IMO Booklet 2025
44
Solution of IMO Team selection tests
• I and S are inverses with respect to circle ABC;
• ∠OSX = 90◦ .
From the above we have △OMA I ∼ △OSMA and
∠MA P B = ∠MA SX = 90◦ + ∠MA SO = 90◦ + ∠OMA I = ∠MA BA = ∠CDA.
Observe that ∠P MC MA = ∠BMC MA = ∠DAC and ∠MC MA B = ∠ICD. Combining these with ∠MA P B = ∠CDA shows MC P MA B ∼ ADCI. Therefore, we
AI
AI
CB
BC
have MBP
= ID
. Similarly, MCQ
= ID
. Thus we get
MB C
AI
MC B
=
=
.
(∗∗)
BP
CQ
ID
Now, observe that ∠ICB = ∠AMB MC and ∠CBI = ∠MB MC A which gives that
△IBC ∼ △AMC MB . This, combined with (∗∗), is enough to show △DP Q ∼
DP
△IBC by linearity, thus DQ
= IB
.
IC
IP
Combining △IBMC ∼ △ICMB with (∗∗) shows IBMC P ∼ ICMB Q, thus IQ
=
IB
. Finally, we have that
IC
SP
SB
BMC
IB
=
=
=
SQ
SC
CMB
IC
from (∗) and △IBMC ∼ △ICMB . Putting this together with above ratios, we have
IB
DP
IP
SP
=
=
=
IC
DQ
IQ
SQ
which shows that circle SID is an Apollonius circle with respect to P and Q, giving
the desired conclusion.
SAUDI ARABIAN IMO Booklet 2025
Solution of IMO Team selection tests
Test 2
Problem 4
(G1, IMO Shortlist 2024) Let ABCD be a cyclic quadrilateral such that AC <
BD < AD and ∠DBA < 90o . Point E lies on the line through D parallel to
AB such that E and C lie on opposite sides of line AD, and AC = DE. Point
F lies on the line through A parallel to CD such that F and C lie on opposite
sides of line AD, and BD = AF . Prove that the perpendicular bisectors of
segments BC and EF intersect on the circumcircle of ABCD.
Solution. (Solution of Muath AlQahtani, IMO 2025’s team member)
Problem 5
(C3, IMO Shortlist 2024) Let n be a positive integer. There are 2n knights
sitting at a round table. They consist of n pair of partners, each pair of which
wishes to shake hands. A pair can shake hands only with next to each other. Every minute, on pair of adjacent knights swaps places. Find the minimum number
of exchanges of adjacent knights such that, regardless of the initial arrangement,
every knight can meet her partner and shake hands at some moment.
Solution. (Solution of Ahmad Alshehri, IMO 2025’s team member)
SAUDI ARABIAN IMO Booklet 2025
46
Solution of IMO Team selection tests
SAUDI ARABIAN IMO Booklet 2025
Solution of IMO Team selection tests
Problem 6
Prove that there are infinitely many primes p such that each of them divides an
integer of the form 3n − 2, but does not divide any integer of the form 2m − 3,
where m and n are positive integers.
Solution. We show the stronger result that the set of prime p ≡ ±5 (mod 12) such
that p | 9n − 2 for some n (since 9 = 32 , we can work with 9 instead of 3, by
restricting to even exponents), but p ∤ 2m − 3 for any m, is infinite.
Note that if p | 9n − 2 for some n, then 9nm ≡ 2m ≡ 3 (mod p) would imply that 3
is a quadratic residue mod p, which contradicts p ≡ ±5 (mod 12). (The latter can
be easily checked using the law of quadratic reciprocity.)
Thus, it suffices to justify that the set of primes p ≡ ±5 (mod 12) that divide 9n − 2
for some n is infinite. Suppose these primes are finite, say p1 , . . Q
. , pk (there is at least
one such prime, for instance, p = 7 for n = 1). Then, for n = ki=1 (pi − 1) > 1, we
have 9n ≡ 1 (mod pi ) by Fermat’s little theorem, which implies pi ∤ 9n − 2 for each
i. However, 9n − 2 ≡ 7 (mod 12) must have a prime divisor q ≡ ±5 (mod 12) (if all
prime factors were ±1 (mod 12), their product with multiplicities yields 9n −2 ≡ ±1
(mod 12), a contradiction), distinct from each pi . The desired result follows.
Test 3
Problem 7
√
1000 log2 n
, ∀n ≥ 1.
The sequence of positive integers {an }n≥1 satisfies an ≤ 1000
It is known that any number appears in the sequence at most 5000 times. Prove
that there are infinitely many primes, each of which divides at least one term
of the sequence.
Solution. (Solution of Ahmed Alkhalawi, IMO 2025’s team member)
SAUDI ARABIAN IMO Booklet 2025
48
Solution of IMO Team selection tests
Problem 8
(A5, BMO Shortlist 2024) Find all non-negative real numbers c ≥ 0 such that
there exists a function f : (0, +∞) → (0, +∞) with the property
f y 2 f (x) + y + c = xf (x + y 2 )
for all x, y > 0.
Solution. (Solution of Yousif Bakheet, IMO 2025’s team member)
SAUDI ARABIAN IMO Booklet 2025
Solution of IMO Team selection tests
SAUDI ARABIAN IMO Booklet 2025
50
Solution of IMO Team selection tests
Problem 9
(C5, IMO Shortlist 2024) Let N be a positive integer. Ali and Hadi play a game
in which they start by writing the numbers 1, 2, . . ., N on a board. They then
take turns to make a move, starting with Ali. Each move consists of choosing
a pair of integers (k, n), where k ≥ 0 and n is one of the integers on the board,
and then erasing every integer s on the board such that 2k |n − s. The game
continues until the board is empty. The player who erases the last integer on
the board loses.
Determine all values of N for which Ali can ensure that he wins, no matter how
Hadi plays.
Solution. The answer is that Geoff wins when N is of the form 2n for n odd or of
the form t2n for n even and t > 1 odd.
Common remarks. We will say that a set S wins if the current player wins given S
as the current set of integers on the board. Otherwise, we will say that S loses. We
will let J(S, T ) = (2S − 1) ∪ (2T ). Note that every subset of Z can be written as
J(S, T ) for some unique pair ( S, T ) of subsets of Z. We will let [n] denote the set
{1, 2, . . . , n}.
Lemma 1. For any set S, S wins if and only if J(S, ∅) wins. Similarly, S wins if
and only if J(∅, S) wins.
Proof. Let (k, m) be a move on S, and let T be the result of applying the move.
Then we can reduce J(S, ∅) to J(T , ∅) by applying the move (k + 1, 2m − 1).
Conversely, let (k, m) be a move on J(S, ∅). We can express the result of this
move as J(T , ∅) for some T . Then we can reduce S to T by applying the move
(max(k − 1, 0), (k + 1)/2).
This gives us a natural bijection between games starting with S and games starting
with J(S, ∅) and thus proves the first part of the lemma. The second part follows
by a similar argument.
Lemma 2. If S, T are nonempty and at least one of them loses, then J(S, T ) wins.
Proof. If S is losing, then we can delete J(∅, T ) using the move (1, t) for some
t ∈ J(∅, T ), which leaves the losing set J(S, ∅). Similarly, if T is losing, then we
can delete J(S, ∅) using the move ( 1, s ) for some s ∈ J(S, ∅), leaving the losing
set J(∅, T ).
Lemma 3. If S is nonempty and wins, then J(S, S) loses.
Proof. From this position, we can convert any sequence of moves into another valid
sequence of moves by replacing ( k, 2n − 1 ) with ( k, 2n ), and vice versa. Thus
we may assume that the initial move (k, m) has m odd. We want to show that any
such move results in a winning position for the other player.
The move (0, m) loses immediately. Otherwise, the move results in the set J(T , S)
for some set T . There are three cases. If T is empty then the other player gets
the winning set J(∅, S). If T is losing then the other player can choose the move
(1, s) for some s ∈ J(∅, S), which leaves the losing set J(T , ∅). If T is nonempty
SAUDI ARABIAN IMO Booklet 2025
Solution of IMO Team selection tests
winning then the other player can choose the move ( k, m + 1 ), which results in the
position J(T , T ). We can do induction on |S| to show that this is a losing set.
Lemma 4. [2n] wins if and only if [n] loses.
Proof. Note that [2n] = J([n], [n]), the result follows directly from Lemma 2, 3.
Lemma 5. For any integer n ⩾ 1, [2n + 1] wins.
Proof. By Lemma 4, either [n] or [2n] loses. If [n] loses, then by Lemma 2 we have
that [2n + 1] = J([n + 1], [n]) wins. Otherwise, [2n] loses, and therefore [2n + 1] wins
by choosing the move (k, 2n + 1) for k big enough so only 2n + 1 is eliminated.
It remains to verify the original answer. We have two cases to consider:
• Suppose N = 2n for some n. For N = 1, every move is an instant loss for
Geoff. Then by Lemma 4, Geoff wins for N = 2n if and only if Geoff loses for
N = 2n−1 , and thus by induction we have that Geoff wins for N = 2n if and
only if n is odd.
• Otherwise, N = t2n , for some n and some t > 1 with t odd. By Lemma 5,
Geoff wins when n = 0. Then by Lemma 4, Geoff wins for N = t2n if and
only if Geoff loses for N = t2n−1 , and thus by induction on n we have that
Geoff wins for N = t2n if and only if n is even.
Test 4
Problem 10
(C1, IMO Shortlist 2024) Let n be a positive integer. A class of n students run
n races, in each of which they are ranked with no draws. A student is eligible
for a rating (a, b) for positive integers a and b if they come in the top b places in
at least a of the races. Their final score is the maximum possible value of a − b
across all ratings for which they are eligible. Find the maximum possible sum
of all the scores of the n students.
Solution. (Solution of Mohammed AlGhamdi, IMO 2025’s team member)
SAUDI ARABIAN IMO Booklet 2025
52
Solution of IMO Team selection tests
Problem 11
(G4, IMO Shortlist 2024) Let ABCD be a quadrilateral with AB is parallel to
CD and AB < CD. Lines AD and BC intersect at a point P . Point X ̸= C
on the circumcircle of triangle ABC is such that P C = P X. Point Y ̸= D on
the circumcircle of triangle ABD is such that P D = P Y . Two lines AX and
BY intersect at the point Q. Prove that P Q is parallel to AB.
Solution. (Solution of Ahmed Alkhalawi, IMO 2025’s team member)
SAUDI ARABIAN IMO Booklet 2025
Solution of IMO Team selection tests
SAUDI ARABIAN IMO Booklet 2025
54
Solution of IMO Team selection tests
Problem 12
(A5, IMO Shortlist 2024) Find all periodic sequences a1 a2 , . . . of real numbers
such that the following conditions hold for all n ≥ 1:
an+2 + a2n = an + a2n+1
|an+1 − an | ≤ 1.
and
Solution. Answer: The sequences satisfying the conditions of the problem are:
c, −c, c, −c, . . .
d, d, d, d, . . .
where c ∈ − 21 , 12 and d is any real number. We rewrite the first condition as
an+2 + an+1 = (an+1 + an ) (an+1 − an + 1)
If there exists a positive integer m such that am+1 + am = 0, then from equation (1)
we have an+1 + an = 0 for all positive integers n ⩾ m. By the fact that the sequence
( ai+1 + ai ) is periodic, we get ai+1 + ai = 0 for every positive integer i. Thus the
sequence ( ai ) is of the form c, −c, c, −c, . . . for some |c| ⩽ 21 .
Now suppose that an+1 + an ̸= 0 for every positive integer n. Let T be the period
of the sequence. From equation (1) we have
1=
T
Y
ai+2 + ai+1
i=1
ai+1 + ai
=
T
Y
(ai+1 − ai + 1)
i=1
Combining with the second condition |ai+1 − ai | ⩽ 1, we have ai+1 − ai + 1 > 0.
Using the AM-GM inequality we get
1=
T
Y
PT
(ai+1 − ai + 1) ⩽
i=1
i=1 (ai+1 − ai + 1)
T
!T
= 1.
So the equality holds, and thus we get
a2 − a1 = a3 − a2 = · · · = aT +1 − aT
which means that (ai ) is a constant sequence. So all sequences satisfying the conditions of the problem are those listed above.
SAUDI ARABIAN IMO Booklet 2025
Selected problems from training
Problem 1. If a, b, c ≥ 0 with a + b + c = 3. Prove that
(ab + c)(ac + b) ≤ 4.
Problem 2. Let k be a positive integer. Determine all k−tuples (n1 , n2 , ..., nk ) of
positive integers such that
(n1 ! − 1)(n2 ! − 1) · · · (nk ! − 1) − 16
is a perfect square of a positive integer.
Problem 3. A circle that passes through the vertex A of a rectangle ABCD intersects the side AB at a second point E different from B. A line passing through
B is tangent to this circle at a point T, and the circle with center B and passing
through T intersects the side BC at the point F. Show that if ∠CDF = ∠BF E,
then ∠EDF = ∠CDF.
Problem 4. 100 stones are placed next to each other in a row: black, white, black,
white,..., black, white. In each move, it is allowed to choose two black stones between
which all stones are white and paint those white stones black, or choose two white
stones with all stones between them black and paint those black stones white. Is it
possible after several moves to get a situation where the first 50 stones in the row
are black and the last 50 are white?
Problem 5. Find n ∈ N for which 5n + n4 + 20 is a perfect square.
Problem 6. Bank is planning to produce and grant a special credit card to its loyal
costumers. Each of these credit cards has a unique ID-number that has 16 digits and
satisfies the following properties:
(i) The first four digits of the ID-numbers is fixed and is equal to 2024.
(ii) For each pair of cards their corresponding ID-numbers must differ in at least
two digits.
Prove that the maximal possible number of cards that can be produced is 1011 .
Problem 7. Let ABC be a non-isosceles triangle with M is midpoint of BC. Take
a point D ̸= M on the segment BC and the circumcircles of triangles ABD, ACD
intersect AC, AB again at E, F respectively. Line BE, CF meet at K and AK, EF
meet at I. Denote O as the circumcenter of triangle AEF and suppose that (ω)
is some circle passing through B, C and external tangent to (O). Prove that the
common tangent of (ω) and (O) passes through the orthocenter of triangle IM O.
55
56
Problems without solution
Problem 8. Each student in the class wrote down in his notebook a geometric
progression consisting of different positive numbers. Let A be the sum of the first
terms of all these progressions, B the sum of their second terms, and C the sum of
their third terms. Prove that the sequence A, B, C is not an arithmetic progression.
Problem 9. Let n be a positive integer and A = {n, n + 1, . . . , 2n − 1}. Prove that
there is a number a ∈ A such that the sum of elements of the set A \ {a} is not
divisible by any element of A.
Problem 10. Let △ABC be an acute triangle and ω be its circumcircle. Points F
on AC, E on AB, and P and Q on ω are given such that
∠AF B = ∠AEC = ∠AP E = ∠AQF = 90◦ .
Prove that the lines BC, EF , and P Q are concurrent.
Problem 11. Let n be a positive integer. In a family of finite sets, let a splitting
element be an element that belongs to at least two of the sets and is omitted by at least
two of the sets. Determine the maximum size of a family of subsets of {1, . . . , n}
for which there is no splitting element.
Problem 12. Find all positive integers n such that there exist n consecutive positive
integers whose sum is a perfect square.
Problem 13. Let ABC be an acute triangle, Γ is its circumcircle and O is its
circumcenter. Let F be the point on AC such that the ∠COF = ∠ACB, such that
F and B lie in opposite sides with respect to CO. The line F O cuts BC at G. The
line parallel to BC through A intersects Γ again at M . The lines CO and M G meet
at K. Show that the circumcircles of the triangles BGK and AOK meet on AB.
Problem 14. Let p ⩾ 5 be a prime number and a be an integer with 1 < a < p − 1.
Let a1 , a2 , . . . , an be all possible remainders that powers of a (that is, 1, a, a2 , a3 , . . . )
can leave when divided by p. If the remainders a1 .a2 , . . . , an form an arithmetic
sequence modulo p in some order, prove that n = p − 1. (Note that, for example,
6, 1 and 3 form an arithmetic progression modulo 7.)
Problem 15. Given a set S of n elements, Ali wants to color all 2n subsets of S
using m colors such that if two different subsets X and Y are colored the same, the
subset X ∪ Y must be colored in a color different from the color of X and Y . What
is the smallest m for which Ali can achieve this?
Problem 16. Let ABC be a triangle, its incircle (I) touches its sides BC, CA,
AB at D, E, F respectively. The bisector of angle BIC intersects BC at M . The
line AM intersects EF at N . Prove that DN bisects angle EDF .
Problem 17. Let m, n be positive integers. Prove that
√
√
√
⌊n 2⌋ · ⌊m 7⌋ < ⌊mn 14⌋.
Problem 18. Find all positive integers n that cannot be written in the form
n=
a a+1
+
,
b
b+1
where a and b are positive integers.
SAUDI ARABIAN IMO Booklet 2025
Problems without solution
Problem 19. An 8 × 8 chessboard is initially colored in a checkerboard pattern.
Dark, semi-transparent L-shaped tiles, each covering three cells, can be placed on the
board. To make the entire board a uniform shade, each white square must be covered
by exactly one more layer of tiles than each black square. What is the minimum
number of tiles required to make the board uniform in tone?
Problem 20. Let n be a positive integer and P (x) be a polynomial of degree n with
real coefficients. Prove that all the roots of the polynomial x3 P (x) + 1 can not be
real at the same time.
Problem 21. Find all non-constant functions f : R → R such that:
(i) f (x)f (x + y) = f (x)2 + x · f2025 (y) for all x, y ∈ R,
(ii) f2025 (cos x) + f2025 (cos(π − x)) = 0 for all x ∈ R.
with fn (x) = f (f (. . . (x) . . .)) is the union n times of the function f.
Problem 22. Amina has a deck of cards numbered from 1 to 101. Initially, she
holds 50 cards in her hand, while the remaining cards are laid face up on the table.
In one move, she can swap all 50 cards in her hand for any 50 cards from the table.
Amina wants to obtain all the cards numbered from 1 to 50 in her hand in at most
N moves. What is the minimum N that guarantees she can always achieve this,
regardless of her starting hand?
Problem 23. Determine all paris (P, d) of polynomial P (X) with integer coefficients
and an integer d such that the equation P (x) − P (y) = d, where x ̸= y are integers,
has infinitely many solutions (x, y) in integers.
Problem 24. Let a > b be odd positive integers and k be a positive integer such
that a1001 + k and b1001 + k are powers of 2. Prove that a > b1001 + b.
Problem 25. Find all functions f : R → R such that
f (xy) = xf (y) + f (y − x) + y − x f (x)
for all x, y ∈ R.
Problem 26. The incircle ω of the triangle ABC is tangent to BC, CA and AB at
points D, E and F , respectively. The line perpendicular to BC that passes through
B cuts the line EF at M , and the line perpendicular to BC that passes through C
cuts EF in N . The lines DM and DN cut again ω at points P and Q, respectively.
Show that the segments DP and DQ have the same length.
Problem 27. The set M of pairwise different positive integers is given. It is known
that within any 3 of them one can choose 2 numbers such that their sum is power of
2. Find the maximal number of elements M may contain.
Problem 28. Let D be an interior point on the side BC of an acute-angled triangle
ABC. Let the circumcircle of triangle ADB intersect the side AC again at E( ̸= A)
and the circumcircle of triangle ADC intersect the side AB again at F ( ̸= A). Let
AD, BE and CF intersect the circumcircle of triangle ABC again at D1 (̸= A), E1
(̸= B) and F1 (̸= C), respectively. Let I and I1 be the incenters of triangles DEF
and D1 E1 F1 , respectively. Prove that E, F , I, I1 are concyclic.
SAUDI ARABIAN IMO Booklet 2025
58
Problems without solution
Problem 29. Determine all triples (a, b, p) of positive integers a, b and a prime
number p ≥ 3, such that 2a + p2b is a (p − 1)-st power of a positive integer.
Problem 30. Each of numbers 1, 2, . . ., 100 is colored in one of k given colors such
that all colors are used. It occurs that for each color X the following condition holds:
if N is the smallest number colored X then there are exactly N numbers colored X.
Find the biggest possible value for k.
Problem 31. For a composite integer n ≥ 6 let an be the smallest positive integer
an
.
k, such that k! is divisible by n. Determine the largest possible value of
n
Problem 32. The circles ω1 and ω2 centred at O1 and O2 respectively, meet at
points A and B. A line through B meets ω1 again at C, and ω2 again at D. The
tangents to ω1 and ω2 at C and D, respectively, meet at E. The line AE meets the
circle ω through A, O1 , O2 again at F . Prove that the length of the segment EF is
equal to the diameter of ω.
Problem 33. Determine all positive integers d, for which there exists an integer
k ≥ 3, such that the numbers d, 2d, . . . , kd can be arranged in a sequence, so that
the sum of every two consecutive of them is a perfect square.
Problem 34. Let n > 1 be a positive integer. Prove that for any real numbers
a0 , a1 , . . . , an+1 the following equality holds
n
X
(a0 − an )(a1 − an ) · · · (ai−1 − an ) · (ai+1 − a1 )(ai+2 − a1 ) · · · (an+1 − a1 ) = 0.
i=1
Problem 35. Determine all pairs (a, b) of positive integers such that
a2 + b = pm and b2 + a = pn
for some prime p and positive integers m, n.
Problem 36. Let ABC be a triangle with AC > AB > BC and angle bisector AD
(D ∈ BC). Denote by ω1 and ω2 the circumcircles of triangles ABD and ACD,
respectively. The line AC intersects ω1 again at F and the line AB intersects ω2
again at E. The line DE intersects ω1 again at G and the line DF intersects ω2
again at H. Prove that the circumcircles of triangles ABC, AEF and AGH have a
second common intersection point.
Problem 37. There are 30 students in a mathematics competition. We wish to give
them a total of N candies so that the following hold:
(i) Each student gets at least one candy.
(ii) Any student with larger score gets more candies than any student with lower
score.
(iii) Any two students with the same score get the same amount of candies.
Determine the smallest possible value of N , for which the candies can be given in
some way, no matter what is the ranking of the students.
SAUDI ARABIAN IMO Booklet 2025
Problems without solution
Problem 38. On the extensions of the sides CA and AB of triangle ABC beyond
points A and B, points E and F are chosen such that AE = BC and BF = AC.
The A-excircle is tangent to segment BF at point N . Let M be the midpoint of
segment EF . Prove that M N is parallel to the internal angle bisector of angle A.
Problem 39. For two sets of integers X and Y we define X · Y as the set of all
products of an element of X and an element of Y .
For example, if X = {1, 2, 4} and Y = {3, 4, 6} then X · Y = {3, 4, 6, 8, 12, 16, 24}.
We call a set S of positive integers good if there do not exist sets A, B of positive
integers, each with at least two elements and such that the sets A · B and S are the
same. Prove that the set of all perfect powers greater than or equal to 2025 is good.
Problem 40. Let a grid 2m × 2n is given. Lamin colors each cell of the grid either
black or white such that the cells of each color form a polygon. Then Yamal covers
the whole grid by 2mn dominoes of size 1 × 2. The domino is called combined if
it covers 1 black and 1 white cell. Find the maximal number of combined dominoes
Lamin may guarantee regardless to the strategy of Yamal.
Problem 41. Different numbers a, b and c are such that the equations
x2 + ax + 1 = 0 and x2 + bx + c = 0
have a common real root. In addition, the equations
x2 + x + a = 0 and x2 + cx + b = 0
have a common real root. What values can the sum a + b + c take?
Problem 42. Define the function S : Z+ → Z+ to be the sum of prime of divisors
(not neccessary distinct) of n (if vp (n) = a then add p · a to the sum). Prove that
4S(n)
τ (n!)
≤
.
τ ((n − 1)!)
n
SAUDI ARABIAN IMO Booklet 2025
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )