Problem

Source: 2022 Taiwan TST Round 1 Independent Study 1-A

Tags: algebra, functional equation, Taiwan



Find all $f:\mathbb{Z}\to\mathbb{Z}$ such that \[f\left(\left\lfloor\frac{f(x)+f(y)}{2}\right\rfloor\right)+f(x)=f(f(y))+\left\lfloor\frac{f(x)+f(y)}{2}\right\rfloor\]holds for all $x,y\in\mathbb{Z}$. Proposed by usjl