Suppose for all $n\in\mathbb Z$, we have $(x + 4n)^2\equiv x^2\bmod m$. Find all $m\in\mathbb N$ for which this is a true statement.
I have no idea how to go about finding m. I tried to use the fact that $(x+4n)^2 - x^2$ should be divisible by m, and then used the well defined-ness of $+$ and $×$ operations to deduce something but I failed.