Middle European Mathematical Olympiad 2023 Problem T-8
Let and be positive integers. Consider a sequence of positive integers such that
Prove that the sequence attains only finitely many different values.
Remark. We denote by the greatest common divisor of positive integers and .