Prove that if $n^{2} - \left(n - 2\right)^{2}$ is not divisible by $8$ then $n$ is even

464 Views Asked by At

Let $n$ be an integer. Prove that if $n^{2} -\left(n - 2\right)^{2}$ is not divisible by $8$ then $n$ is even.

Can anyone help me step by step to understand this?

3

There are 3 best solutions below

0
On BEST ANSWER

We have $n^2-(n-2)^2 = n^2-(n^2-4n+4) = 4n-4$. $$\text{$8$ does not divide $4(n-1)$ $\iff$ $2$ does not divide $(n-1)$ (Why?)}$$ Now conclude what you want.

0
On

Hint: expand $(n-2)^2$. After you subtract, factor the result.

0
On

It may be easier to prove the contrapositive: if $n$ is odd, then $n^2 - (n-2)^2$ is divisible by $8$.

You can do this using casework on the remainder when $n$ is divided by $8$. There are four possibilities.