Problem
There are integers greater than written on a blackboard, not necessarily distinct. In a move, Confucius chooses two integers and from different places on the blackboard and replaces them with
He continues to make moves while possible.
- Prove that, regardless of Confucius's choices, after finitely many moves exactly one integer on the blackboard is greater than .
- Prove that does not depend on Confucius's choices.
Here denotes the greatest common divisor and denotes the least common multiple.
Solution
Let the current entries be . Call an entry active if it is greater than .
Termination
Every entry remains positive after a move. Moreover, at least one of the two new entries is active: if , then the new gcd entry is active; if , then the other new entry is
Consider the integer-valued rank
Suppose a move is made using and , and put . The product of the two old entries is
whereas the product of the two new entries is
Thus the old total product is times the new total product. If , the product drops by at least , so the first term in drops by at least ; meanwhile the active count can change by at most . Hence decreases. If , the product is unchanged, but the gcd entry becomes , while the lcm entry stays active. The two selected active entries are therefore replaced by only one active entry, so again decreases.
The rank is a natural number, so an infinite sequence of moves is impossible. At a terminal position there cannot be two active entries, since any two such entries would permit another move. On the other hand, the positivity argument above shows that an active entry always remains. Therefore every play terminates with exactly one entry greater than .
Independence of the final value
Fix a prime , and write for the exponent of in . For the two selected entries, set
After the move, their two exponents become
Consequently,
All other entries are unchanged. It follows that
is invariant under every move.
At a terminal position all entries except the unique active entry equal , so all their -adic exponents are zero. Hence
for every prime . Therefore the final value is forced to be
where only primes dividing the product of the initial entries contribute. This expression depends only on the initial board, so is independent of every choice made during the process.