As $n$ takes each positive integer value in turn (that is, $n=1$, $n=2$, $n=3$...) how many different values are obtained for the remainder when $n^2$ is divided by $n+4$?

If you liked this problem, here is an NRICH task which challenges you to use similar mathematical ideas.

*This problem is taken from the UKMT Mathematical Challenges.**View the archive of all weekly problems grouped by curriculum topic*

View the current weekly problem