Problem

Source: 2022 USA TSTST #4

Tags: function, number theory, USA TSTST



Let $\mathbb N$ denote the set of positive integers. A function $f\colon\mathbb N\to\mathbb N$ has the property that for all positive integers $m$ and $n$, exactly one of the $f(n)$ numbers \[f(m+1),f(m+2),\ldots,f(m+f(n))\]is divisible by $n$. Prove that $f(n)=n$ for infinitely many positive integers $n$.