Middle European Mathematical Olympiad 2022 Problem I-4
Initially, two positive integers and with are written on a blackboard. At each step, Andrea picks two numbers and on the blackboard with and writes the number
on the blackboard as well. Let be a positive integer. Prove that, regardless of the values of and , Andrea can perform a finite number of steps such that a multiple of appears on the blackboard.
Remark. If and are two positive integers, then denotes their greatest common divisor and their least common multiple.