Problem

Source: IMO 1987, Day 2, Problem 4

Tags: function, algebra, functional equation, IMO, IMO 1987, algebra solved, fe



Prove that there is no function $f$ from the set of non-negative integers into itself such that $f(f(n))=n+1987$ for all $n$.