[Math] Proof: If n is a perfect square, $\,n+2\,$ is NOT a perfect square

discrete mathematics

"Prove that if n is a perfect square, $\,n+2\,$ is NOT a perfect square." I'm having trouble picking a method to prove this. Would contraposition be a good option (or even work for that matter)? If not, how about contradiction?

Best Answer

Hint: Every perfect square is either $0$ or $1$ modulo $4$.