Maths Olympiad Prep

Library / /79 of 101

Combinatorics Difficulty 6.9 National olympiad Prove it Estonia

Anu and Bert each play the following game with ChatGPT. Anu's game starts with the number 2023!2023! on the board, Bert's game with 2024!2024! on the board. Each move consists of two parts. First the active player divides the number on the board by one of its composite factors dd. Then their opponent must do one of the following actions:
(1) multiply the number on the board by any factor dd' of dd satisfying 1<d<d1 < d' < d;
(2) multiply the number on the board by 77;
(3) divide the number on the board by 1010 and multiply the result by 20232023 (this option cannot be chosen if the result is not an integer).
On the next move, players interchange their roles. The player who cannot make the required action loses the game. ChatGPT starts both games. Prove that ChatGPT can win at least one of the games.

Solution

As 2024!=2023!20242024! = 2023! \cdot 2024 and 2024=231112312024 = 2^3 \cdot 11^1 \cdot 23^1, the sum of the exponents of all primes in the prime factorisation of the number on the board is odd in one of the games and even in the other. We will show that ChatGPT can win the game where the sum is even.

On any of its moves, ChatGPT chooses dd to be a product of exactly two (not necessarily distinct) primes dividing the number on the board. Then, no matter what its opponent does, the sum of exponents will increase by 11. This is obvious for the first two choices; for the third choice we notice that 10=2510 = 2 \cdot 5 has two prime factors and 2023=71722023 = 7 \cdot 17^2 has three prime factors. Thus the move as a whole decreases the sum of exponents by 11.

Whatever the opponent chooses as dd, ChatGPT chooses the first option with

d'=dp = \frac{d}{p}, where pp is any prime factor of dd. Thus the move as a whole decreases the sum of exponents by 11.

Continuing with this strategy, ChatGPT ensures that at the beginning of each of its turns the sum of exponents is even. As the sum of exponents decreases by one during every move, there will eventually be a situation where ChatGPT's opponent will start its move with the sum of exponents being 11, i.e. with a prime on the board. Thus the player cannot make their move, meaning that ChatGPT wins.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.