Problem

Source: USA TSTST 2019 Problem 7

Tags: number theory, greatest common divisor, algebra, functional equation, tstst 2019, Hi



Let $f: \mathbb Z\to \{1, 2, \dots, 10^{100}\}$ be a function satisfying $$\gcd(f(x), f(y)) = \gcd(f(x), x-y)$$for all integers $x$ and $y$. Show that there exist positive integers $m$ and $n$ such that $f(x) = \gcd(m+x, n)$ for all integers $x$. Ankan Bhattacharya