Problem 1
There are integers greater than written on a blackboard, not necessarily different. In a move, Confucius chooses two integers and from different places on the blackboard and replaces these two integers with and . 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 . (b) Prove that the value of does not depend on the choices of Confucius.
Step 4 of 4: Part (b): the invariant fixes M uniquely
Detailed analysis
Let be the initial numbers on the blackboard. At the end of the game the board consists of and ones, whose -adic valuations are and zeros; the greatest common divisor of these terminal valuations is . By the invariance of step 3, this must equal the initial greatest common divisor for every prime . Since a positive integer is uniquely determined by its -adic valuations across all primes , depends only on the initial numbers and not on Confucius's choices.