Problem:
Several positive integers are written on the blackboard. You can erase any two numbers and write their greatest common divisor (GCD) and least common multiple (LCM) instead. Prove that eventually the numbers will stop changing.
Problem:
Several positive integers are written on the blackboard. You can erase any two numbers and write their greatest common divisor (GCD) and least common multiple (LCM) instead. Prove that eventually the numbers will stop changing.
Solution:
First of all, since
for all positive integers and , the product of the numbers on the board does not change.
Second, we claim that at each step in which the numbers change, their sum increases. Suppose we pick two numbers and () and replace them with and . If , then and the numbers do not change, so and therefore . The change in the sum of the numbers is
Since each number on the blackboard cannot exceed the product of the numbers that were originally there, the sum cannot increase unboundedly, and thus the numbers must stop changing.