Problem

Source: Own

Tags: algebra, functional equation, Divisibility



Find all functions $f: \mathbb{N} \to \mathbb{N}$ such that $$m+f(n) \mid f(m)^2 - nf(n)$$for all positive integers $m$ and $n$. (Here, $f(m)^2$ denotes $\left(f(m)\right)^2$.)