Let $n$ be an integer. Prove that if $2|(n^2-1)$ then $4|(n^2-1)$.
I know that $n^2=2k$ for some integer $k$. Please help me continue.
Let $n$ be an integer. Prove that if $2|(n^2-1)$ then $4|(n^2-1)$.
I know that $n^2=2k$ for some integer $k$. Please help me continue.
On
$n^2-1$ factors into $(n+1)(n-1)$. If $2$ divides $n^2-1$, since $2$ is prime, it has to divide either $n+1$ or $n-1$. However, if one of them is even, so is the other. From here, you should be able to conclude that $4$ divides $(n+1)(n-1)$.
$n^2-1=(n+1)(n-1)$. Either these are both even or both odd; however if they are both odd then $n^2-1$ is odd.