Problem

Source: International Zhautykov Olympiad 2012 - D2 - P1

Tags: function, induction, number theory proposed, number theory



Do there exist integers $m, n$ and a function $f\colon \mathbb R \to \mathbb R$ satisfying simultaneously the following two conditions? $\bullet$ i) $f(f(x))=2f(x)-x-2$ for any $x \in \mathbb R$; $\bullet$ ii) $m \leq n$ and $f(m)=n$.