2023 OIM Problems/Problem 2

Problem

Let $\mathbb{Z}$ be the set of integers. Find all functions $f: \mathbb{Z} \to \mathbb{Z}$ such that:

\[2023f(f(x))+2022x^2=2022f(x)+2023[f(x)]^2+1\]

for each integer $x$.

Solution

This problem needs a solution. If you have a solution for it, please help us out by adding it.

See also

https://sites.google.com/associacaodaobm.org/oim-brasil-2023/pruebas