# IMO 2019, Problem 1

Find all functions $f:\Bbb{Z}\to \Bbb{Z}$ such that $f(2a)+2f(b)=f(f(a+b))$.
The right hand side is symmetric in $a,b$. Clearly, $f(f(a+b))=f(f(b+a))$. Hence, symmetrizing the left side as well, we get $f(2a)+2f(b)=f(2b)+2f(a)$. This implies that $f(2a)-f(2b)=2(f(a)-f(b))$. Assuming $b=0$, we get $f(2a)=2f(a)-f(0)$.
Now use $a=x+y$ and $b=0$ to show that $f(x)-f(0)$ is linear. This shows us that $f(x)=2x-f(0)$ or $f(x)=0$ are the only solutions to this question.