The sequence $a_1 ,a_2 ,a_3 ,...$ of positive integers satisfies $\text{gcd}(a_i ,a_j ) = \text{gcd} (i, j)$ for $i \neq j$. Prove that $a_i = i$ for all $i$.
Source: Russian Mathematical Olympiad, 1995.
Are there any simple solutions to this problem that you can suggest?
For any integer $m$, we have $\text{gcd}(a_m, a_{2m}) = \text{gcd} (2m, m) = m$, and so $m$ divides $a_m$. Then, it follows that for any other integer $n$, $m$ divides $a_n$ if and only if it divides $\text{gcd}(a_m, a_n) = \text{gcd}(m, n)$. Thus $a_n$ has exactly the same divisors as $n$. Hence it must equal $n$, for all $n$.
References:
R. Gelca and T. Andreescu, Putnam and Beyond, Springer, 2007.