Problem

Source: IMO Shortlist 2007, N5, AIMO 2008, TST 3, P3

Tags: function, modular arithmetic, number theory, Divisibility, IMO Shortlist



Find all surjective functions $ f: \mathbb{N} \to \mathbb{N}$ such that for every $ m,n \in \mathbb{N}$ and every prime $ p,$ the number $ f(m + n)$ is divisible by $ p$ if and only if $ f(m) + f(n)$ is divisible by $ p$. Author: Mohsen Jamaali and Nima Ahmadi Pour Anari, Iran