Problem

Source:

Tags: IMO Shortlist, algebra, functional equation



Find all functions $f : \mathbb{Z} \to\mathbb{ Z}$ such that \[ n^2+4f(n)=f(f(n))^2 \] for all $n\in \mathbb{Z}$. Proposed by Sahl Khan, UK