Problem

Source: 2009 Dutch IMO TST P4

Tags: functional equation, functional equation in Z, algebra



Find all functions $f : Z \to Z$ satisfying $f(m + n) + f(mn -1) = f(m)f(n) + 2$ for all $m, n \in Z$.