Skip to content / Đến nội dung
ThichHocToan.com

MathNet 2023-part-03 — 191 problems (EN–VI) Question 127

Math Olympiad Vault · MathNet 2023-part-03 — 191 problems (EN–VI)

Question 127

Let $A$ and $B$ be positive integers. Consider a sequence of positive integers $(x_{n})_{n \geq 1}$ such that
$$
x_{n+1} = A \cdot \operatorname{gcd}(x_{n}, x_{n-1}) + B \quad \text{ for every } n \geq 2
$$
Prove that the sequence attains only finitely many different values.

Remark. We denote by $\operatorname{gcd}(a, b)$ the greatest common divisor of positive integers $a$ and $b$.