Maths Olympiad Prep

Track / Stage 6 / 139 of 400 #1139 of 1964

Problem 1139

National olympiad, first round
Number theory Difficulty 6.2 Prove it

Alice and Bob play the following game: Alice writes a strictly positive integer on the board. On each of his turns, Bob chooses an integer a1a \geqslant 1, and replaces the integer nn written on the board with na2n-a^{2}. On each of her turns, Alice chooses an integer k1k \geqslant 1, and replaces the integer mm with mkm^{k}. Bob starts: he wins if after a finite number of turns, he manages to write 0 on the board, otherwise Alice wins. Which of the two players has a winning strategy?

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

Here a good idea is to decompose any strictly positive integer nn as a square times a squarefree number: we replace each pp-adic valuation of nn by the smallest even integer less than or equal to it to obtain a square denoted a2a^{2} which divides nn and such that na2\frac{n}{a^{2}} is squarefree. Moreover, this decomposition is unique: if n=a2×b=c2×dn=a^{2} \times b=c^{2} \times d with bb and dd squarefree, we have Vp(d)Vp(n)Vp(b)(mod2)V_{p}(d) \equiv V_{p}(n) \equiv V_{p}(b)(\bmod 2) for all prime pp, so since bb and dd are squarefree, b=db=d and a2=c2a^{2}=c^{2}. We will now denote for all n1,sf(n)n \geqslant 1, s f(n) its squarefree part.

Here, if m>0m>0 is written on the board, Alice's moves can either transform s(m)s(m) into 1 if kk is even, or leave it as s(m)s(m) if kk is odd because mk=m×(m(k1)/2)2m^{k}=m \times\left(m^{(k-1) / 2}\right)^{2}, and the number will always remain strictly positive. Therefore, Bob needs to manage to reduce the squarefree part of the number written (and keep the number strictly positive: thus after a finite number of turns, the squarefree part will be 1, and the number will be a square, allowing Bob to simply remove the number itself. For this, if m=a2bm=a^{2} b is written on the board, with bb its squarefree part and b>1b>1 (otherwise Bob wins directly by removing a2a^{2}), Bob can remove a2a^{2} and obtain a2(b1)=a2×b1sf(b1)sf(b1)a^{2}(b-1)=a^{2} \times \frac{b-1}{s f(b-1)} s f(b-1) whose squarefree part is therefore sf(b1)b1<bs f(b-1) \leqslant b-1<b, which concludes.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.