Prove that for any integer $n$, $(n^2)$ or $(n^2 - 1)$ is divisible by $4$
Do you have any suggestions for solving this problem?
I can see it works in the following examples:
n = 3 (9 is not divisible by 4, but 8 is divisible by 4)
n = 5 (25 is not divisible by 4, but 24 is divisisble by 4)
My idea was to multiply the two conditions $(n^2)$ and $(n^2-1)$ together and then prove that the result was somehow divisible by 4, but I don't know how to prove this.
Thank you very much for any help or guidance you can offer on this.
If $n $ is even, then $n^2$ is divisible by $4$. Else, $n $ is odd. Remark then that $n^2-1 = (n-1)(n+1) $, and $n-1$, $n+1$ are both even.