Problem

Source:

Tags: function, algebra, functional equation, IMO Shortlist, IMO, IMO 1987



Does there exist a function $f : \mathbb N \to \mathbb N$, such that $f(f(n)) =n + 1987$ for every natural number $n$? (IMO Problem 4) Proposed by Vietnam.