Problem

Source: Dutch IMO TST2 2019 p4

Tags: number theory, function, Find all functions, prime numbers, functional equation



Find all functions $f : Z \to Z$ satisfying $\bullet$ $ f(p) > 0$ for all prime numbers $p$, $\bullet$ $p| (f(x) + f(p))^{f(p)}- x$ for all $x \in Z$ and all prime numbers $p$.