Problem

Source: 2016 Belarus Team Selection Test 6.1

Tags: functional equation, algebra



a) Determine all functions $f:\mathbb{Z}\rightarrow\mathbb{Z}$ such that\[f(x-f(y))=f(f(x))-f(y)-1\]holds for all $x,y\in\mathbb{Z}$. (It is 2015 IMO Shortlist A2 ) b) The same question for if \[f(x-f(y))=f(f(x))-f(y)-2\]for all integers $x,y$