IMO 2026

math

Introduction

As part of my journey to catch up with proof-based contest experience I missed during high school, I am attempting some problems from the 67th International Mathematical Olympiad (IMO). Unfortunately, life has not been permitting me to sit down for 4.5 hours a day to do math problems, so I’ve just been solving problems one by one casually. Here, I will document some of my thought processes and solutions to some of the problems from the IMO this year.

Confucius and His Number Theory Game

Question 1. There are 2026 integers greater than 1 written on a blackboard, not necessarily different. In a move, Confucius chooses two integers π‘š>1 and 𝑛>1 from different places on the blackboard and replaces these two integers with

He continues to make moves while it is possible to do so.

(a) Prove that, regardless of the choices of Confucius, after finitely many moves, exactly one integer 𝑀 on the blackboard is greater than 1.

(b) Prove that the value of 𝑀 does not depend on the choices of Confucius.

My thought process for part (a). These types of problem usually contain a creative invariant (i.e. a property that never changes throughout the course of the game).

The first idea that came to mind was considering the product of the numbers. The two new numbers’ product is lcm(π‘š,𝑛), which is at most π‘šπ‘›, and equality is reached if and only if gcd(π‘š,𝑛)=1, so this might be useful.

Since the product is always positive and nonincreasing, to solve part (a), we only need need to show that Confucius can pick two coprime numbers a finite number of times. Let’s see what happens when Confucius chooses two coprime numbers. Suppose gcd(π‘š,𝑛)=1. Then Confucius replaces them by 1 and π‘šπ‘›. Ah, the number of integers greater than 1 decreases by 1! Since there are only 2026 integers at the start, Confucius can only do this at most 2025 times before ending up with one integer.

Now we have all the tools to solve the problem.

My thought process for part (b). To solve (b), we just need to find another invariant on the game.

Trying out about ten examples on scratch paper, I made a few small observations. For example, any prime factor must stay, and 𝑀 must be between gcd(π‘Ž1,…,π‘Ž2026) and lcm(π‘Ž1,…,π‘Ž2026).

One significant observation I made was that it suffices to consider the numbers by the exponents of each prime factor. Let 𝑝 be a prime. Notice that πœˆπ‘(gcd(π‘š,𝑛))=min(πœˆπ‘(π‘š),πœˆπ‘(𝑛)) and πœˆπ‘(lcm(π‘š,𝑛)gcd(π‘š,𝑛))=max(πœˆπ‘(π‘š),πœˆπ‘(𝑛))βˆ’min(πœˆπ‘(π‘š),πœˆπ‘(𝑛)). This looks quite complicated. Let’s replace the common parts with some variables. WLOG suppose π‘Ž=πœˆπ‘(π‘š)β‰€πœˆπ‘(𝑛)=𝑏. Then, we essentially replace π‘Ž and 𝑏 with π‘Ž and π‘βˆ’π‘Ž.

Now I asked myself: what is invariant under this operation? This replacement reminds me of the Euclidean algorithm. Indeed, gcd(π‘Ž,π‘βˆ’π‘Ž)=gcd(π‘Ž,𝑏). Since gcd is associative and transitive, what this tells us is that, for all primes 𝑝, the gcd of the exponents of 𝑝 in the prime factorizations of all the numbers on the blackboard remains the same.

With this important observation, we are ready to write up the proof.

My Solution.

Proof of part (a).

Claim 1. The product of the integers on the blackboard never increases after any move. Furthermore, this product decreases whenever the choices of π‘š and 𝑛 are not coprime.

Proof of Claim 1. Let 𝑃 denote the product of the integers currently on the blackboard. Suppose that Confucius chooses two integers π‘š>1 and 𝑛>1 on different locations on the blackboard. Then, the product of the integers of blackboard changes from 𝑃 to

Furthermore, lcm(π‘š,𝑛)=π‘šπ‘› if and only if gcd(π‘š,𝑛)=1. Therefore, the product remains the same if π‘š and 𝑛 are coprime, and strictly decreases if they are not. ∎

Corollary 2. Confucius can make a move with two non-coprime numbers a finite number of times.

Proof of Corollary 2. Let 𝑃 be the product of the 2026 integers initially written on the blackboard. Note that 𝑃>1 and 𝑃 is a positive integer. By Claim 1, each move with non-coprime numbers decreases this product by at least 1, so such a move can be made at most π‘ƒβˆ’1 times. ∎

Claim 3. The number of integers greater than 1 on the blackboard never increases after any move. Furthermore, this number decreases by exactly 1 whenever the choices of π‘š and 𝑛 are coprime.

Proof of Claim 3. A move removes two entries greater than 1 and inserts two positive integers, at most two of which can be greater than 1. Hence the number of entries greater than 1 cannot increase. Furthermore, suppose that Confucius chooses π‘š>1 and 𝑛>1, where gcd(π‘š,𝑛)=1. Note that lcm(π‘š,𝑛)=π‘šπ‘›gcd(π‘š,𝑛)=π‘šπ‘›. Therefore, with this move, π‘š and 𝑛 are replaced with 1 and π‘šπ‘›. Since π‘š, 𝑛, and π‘šπ‘› are each greater than 1, but 1 isn’t, the total number of integers greater than 1 on the blackboard decreases by 1 after this move. ∎

Corollary 4. Confucius can make a move with two coprime numbers a finite number of times.

Proof of Corollary 4. By Claim 3, after 2025 moves using two coprime numbers, at most one integer greater than one remains on the blackboard, so it is impossible to make more than 2025 such moves. ∎

For each move, π‘š and 𝑛 are either coprime or not coprime. By Corollary 2, there can only be a finite number of moves with non-coprime numbers; by Corollary 4, there can only be a finite number of moves with coprime numbers. Therefore, there can only be a finite number of moves throughout any game.

Furthermore, the game ends if and only if there are no two integers both greater than 1 on the blackboard. Also, lcm(π‘š,𝑛)>1 for any two π‘š>1 and 𝑛>1, so at least one of the two replacement integers for a given move is greater than 1. Initially, all 2026 entries are greater than 1. At termination, the number of integers greater than 1 on the blackboard is less than two, so there is exactly one. Hence exactly one integer greater than one remains on the blackboard at the end of the game. ∎


Proof of part (b). At any point in time, let the numbers written on the blackboard be π‘Ž1,π‘Ž2,…,π‘Ž2026. Let 𝒫︀ denote the set of all prime numbers that divide at least one of these π‘Žπ‘–. Define πœˆπ‘(𝑛) as the nonnegative integer π‘˜ such that π‘π‘˜βˆ£π‘› (in particular, πœˆπ‘(1)=0). Let

Consider

Let 𝑄0 be this quantity for the numbers initially on the blackboard.

I claim that 𝑀=𝑄0 regardless of Confucius’ choices.

To show this, I will show that this quantity 𝑄 does not change over any move.

Claim 5. The set 𝒫︀ does not change after a move.

Proof of Claim 5. Before any move with π‘š and 𝑛, let 𝒫︀ be the set of all primes that divide at least one number on the blackboard. Let 𝑝 be any prime number.

If π‘βˆ€π‘š and π‘βˆ€π‘›, then π‘βˆ€gcd(π‘š,𝑛) and π‘βˆ€lcm(π‘š,𝑛)gcd(π‘š,𝑛). Therefore, if this 𝑝 divides some other integer on the blackboard, it remains in 𝒫︀, and if it doesn’t, then it is not added to 𝒫︀.

Otherwise, π‘βˆ£π‘š or π‘βˆ£π‘›. Then π‘βˆˆπ’«οΈ€. If both of these hold, π‘βˆ£gcd(π‘š,𝑛). Otherwise, since π‘βˆ£lcm(π‘š,𝑛) but π‘βˆ€gcd(π‘š,𝑛), we have π‘βˆ£lcm(π‘š,𝑛)gcd(π‘š,𝑛). In either case, 𝑝 still divides at least one number on the blackboard. ∎

Suppose that Confucius chooses two integers π‘š and 𝑛 from different places on the blackboard, where π‘š>1 and 𝑛>1. Let 𝑝 be any prime number that divides at least one number currently on the blackboard. Without loss of generality, suppose πœˆπ‘(π‘š)β‰€πœˆπ‘(𝑛). Notice that

and

Let 𝑐1,…,𝑐2024 be the 𝑝-adic valuations of the 2024 entries not changed by the move.

Before the move,

and after the move,

where in the second-to-last step we use the equality gcd(π‘Ž,π‘βˆ’π‘Ž)=gcd(π‘Ž,𝑏) by the Euclidean algorithm.

Since the set of prime numbers on the blackboard remains the same after each move by Claim 5, and 𝑒(𝑝) remains the same for each such prime 𝑝, the expression 𝑄=βˆπ‘βˆˆπ’«οΈ€π‘π‘’(𝑝) remains the same after a move.

By part (a), the game terminates after a finite number of moves, and 𝑀 is the only integer greater than 1 on the blackboard. Thus 𝒫︀ becomes exactly the prime factors of 𝑀, and 𝑒(𝑝)=gcd(πœˆπ‘(1),πœˆπ‘(1),…,πœˆπ‘(1),πœˆπ‘(𝑀))=gcd(0,0,…,0,πœˆπ‘(𝑀))=πœˆπ‘(𝑀), we have

Therefore, the value of 𝑀 does not depend on the choices of Confucius. ∎

Remark. I really enjoyed this problem! I spent about 15 minutes on part (a). I was stuck on part (b) for the next 15 minutes, so I decided to take a shower, during which I made an important observation, and the problem took me a total of about an hour.

Shan-Yu, Mulan, and Triangles

Question 4. Shan-Yu and Mulan are playing a game. Let πœƒ be an angle with 0Β°<πœƒ<180Β° known to both players. Initially, Shan-Yu makes a paper triangle 𝒯︀ with measurements of his choice. They repeatedly form the following steps.

If 𝒯︀ has at least one angle measuring exactly πœƒ, then the game stops and Mulan wins.

Otherwise, Mulan chooses a point 𝑃 on the perimeter of 𝒯︀, different from its three vertices. She then makes a straight cut from 𝑃 to the opposite vertex of 𝒯︀.

Shan-Yu discards one of the two triangles. The remaining triangle becomes the new 𝒯︀.

For which real values of πœƒ can Mulan guarantee her victory in finitely many steps, no matter how Shan-Yu plays?

My Solution. I claim the answer is

Lemma 1. If before Mulan’s move, one of the three angles has measure π‘˜πœƒ for some positive integer π‘˜, then Mulan wins after a finite number of moves.

Proof of Lemma 1. We will prove this by induction.

For the base case, consider when π‘˜=1. Then, there is an angle with measure πœƒ, so Mulan wins immediately.

For the inductive step, let π‘˜β‰₯2, and assume for our inductive hypothesis that, if before Mulan’s move, one of the three angles has measure (π‘˜βˆ’1)πœƒ, then Mulan wins after a finite number of moves. Suppose that one of the three angles has measure π‘˜πœƒ. Mulan will divide the angle into one angle with measure πœƒ and another with measure (π‘˜βˆ’1)πœƒ, creating two triangles. If Shan-Yu keeps the triangle with the angle of measure πœƒ, then Mulan wins immediately. Otherwise, if Shan-Yu keeps the triangle with the angle of measure (π‘˜βˆ’1)πœƒ, then Mulan wins after a finite number of moves by our inductive hypothesis.

By the principle of mathematical induction, for all positive integers π‘˜, if before Mulan’s move, one of the three angles has measure π‘˜πœƒ, then Mulan wins after a finite number of moves. ∎

Claim 2. If there exists an integer 𝑛β‰₯2 such that πœƒ=180°𝑛, then Mulan wins after a finite number of moves.

Proof of Claim 2. Firstly, no matter what triangle Shan-Yu chooses, Mulan can always force Shan-Yu to reduce the triangle to a right triangle by choosing 𝑃 as the foot of the altitude from the vertex with the largest angle (𝑃 lies on the opposite side because the other two angles must both be acute). Then, both of the triangles Shan-Yu could choose are right triangles, so after Shan-Yu’s move, the paper triangle must be a right triangle.

If 𝑛=2 (πœƒ=90Β°), Mulan wins. Now suppose 𝑛β‰₯3, so πœƒ<90Β°.

Let 𝑂 be the vertex with the right angle. Let the other two vertices 𝐴 and 𝐡 have ∠𝐴=𝛼 and ∠𝐡=𝛽, and without loss of generality suppose 𝛼≀𝛽.

If πœƒβˆˆ{𝛼,𝛽}, then Mulan wins. Otherwise, there are two exhaustive cases:

Case 1. Suppose 𝛼<πœƒ<90Β°. Then, Mulan picks the vertex 𝐡 with angle 𝛽, and picks the point 𝑃 on the opposite side such that βˆ π΅π‘ƒπ‘‚=πœƒ. This is possible because 𝛼<πœƒ<90Β°.

Since βˆ π΅π‘ƒπ‘‚=πœƒ, Mulan wins if Shan-Yu keeps triangle 𝐡𝑃𝑂. Suppose otherwise that Shan-Yu keeps triangle 𝐴𝑃𝐡.

Now, βˆ π΄π‘ƒπ΅=180Β°βˆ’πœƒ=180Β°β‹…π‘›βˆ’1𝑛=(π‘›βˆ’1)πœƒ. Note that π‘›βˆ’1 is a positive integer, so by Lemma 1, Mulan wins in a finite number of moves.

Case 2. Suppose 0<πœƒ<𝛼. Let π‘˜ be the greatest positive integer such that π‘˜πœƒβ‰€π›Ό. If π‘˜πœƒ=𝛼, then Mulan wins in a finite number of moves by Lemma 1. Otherwise, Mulan picks a point 𝑃 on side 𝐡𝑂 such that βˆ π΅π΄π‘ƒ=π‘˜πœƒ, and makes this move (which is legal since π‘˜πœƒ<𝛼, so 𝑃 does not coincide with 𝑂).

If Shan-Yu keeps triangle 𝐴𝐡𝑃, then since βˆ π΅π΄π‘ƒ=π‘˜πœƒ, Mulan wins in a finite number of moves by Lemma 1. Suppose otherwise that Shan-Yu keeps triangle 𝐴𝑂𝑃. By maximality of π‘˜, we have βˆ π‘‚π΄π‘ƒ<πœƒ and βˆ π‘‚π‘ƒπ΄>𝛽, so we are now back in case 1, for which we showed Mulan wins in a finite number of moves.

That concludes all cases. Therefore, if there exists an integer 𝑛β‰₯2 such that πœƒ=180°𝑛, then Mulan wins in a finite number of moves. ∎

Claim 3. If there does not exist an integer 𝑛β‰₯2 such that πœƒ=180°𝑛, then Shan-Yu can prevent Mulan from winning indefinitely.

Proof of Claim 3. Shan-Yu chooses an initial triangle with angles πœƒ2, πœƒ2, and 180Β°βˆ’πœƒ. Note that none of the three angles is equal to an integer multiple of πœƒ.

Firstly, if none of the three angles is equal to an integer multiple of πœƒ, then none of the angles is πœƒ, so Mulan does not immediately win.

Next, I can show that Shan-Yu can always maintain this invariant. Let the triangle be 𝐴𝐡𝐢 and without loss of generality Mulan picked a point 𝑃 on side 𝐡𝐢.

If neither βˆ π΅π΄π‘ƒ nor βˆ π΅π‘ƒπ΄ is equal to an integer multiple of πœƒ, or neither βˆ π‘ƒπ΄πΆ nor βˆ πΆπ‘ƒπ΄ is equal to an integer multiple of πœƒ, then Shan-Yu can keep a triangle in which neither of these two angles is equal to an integer multiple of πœƒ, ensuring that the resulting triangle satisfies the invariant.

Furthermore, since neither ∠𝐡𝐴𝐢 nor 180Β° is equal to an integer multiple of πœƒ, at most one of (βˆ π΅π΄π‘ƒ, βˆ π‘ƒπ΄πΆ) can be equal to an integer multiple of πœƒ, and at most one of (βˆ π΅π‘ƒπ΄, βˆ πΆπ‘ƒπ΄) can be equal to an integer multiple of πœƒ.

The only possible remaining case at this point is where βˆ π΅π΄π‘ƒ and βˆ πΆπ‘ƒπ΄ are each equal to an integer multiple of πœƒ, or βˆ π΅π‘ƒπ΄ and βˆ π‘ƒπ΄πΆ are each equal to an integer multiple of πœƒ. However, these cases are impossible. If βˆ π΅π΄π‘ƒ and βˆ πΆπ‘ƒπ΄ are each equal to an integer multiple of πœƒ, then ∠𝐡=βˆ πΆπ‘ƒπ΄βˆ’βˆ π΅π΄π‘ƒ would also be equal to an integer multiple of πœƒ, a contradiction. A similar argument holds for the other symmetric case.

Therefore, there must be one triangle in which no angle is equal to an integer multiple of πœƒ, so Shan-Yu can keep that triangle. The invariant can be maintained indefinitely, so Shan-Yu can prevent Mulan from winning indefinitely. ∎

By Claim 2 and Claim 3, we have proven our answer. ∎

Remark. This problem took me about 40 minutes to solve, but there were some minor construction details I had to reconsider while writing this solution up. Overall, I had lots of fun trying different constructions for this problem.