Problem

Source: IMOC 2017 A2

Tags: algebra, number theory, fe, functional equation



Find all functions $f:\mathbb N\to\mathbb N$ such that \begin{align*} x+f(y)&\mid f(y+f(x))\\ f(x)-2017&\mid x-2017\end{align*}