Problem

Source: Dutch IMO TST3 2019 p3

Tags: Functional inequality, Find all functions, algebra



Find all functions $f : Z \to Z$ satisfying the following two conditions: (i) for all integers $x$ we have $f(f(x)) = x$, (ii) for all integers $x$ and y such that $x + y$ is odd, we have $f(x) + f(y) \ge x + y$.