The following is my approach:
Since we're using contraposition approach, we assume that $n + 2$ is a perfect square.
We assume that $√(n+2)=p$
Then $p$ may be even or odd
Let $p = 2q$ (for even) or $p = 2q+1$ (for odd)
Now $p² = (2q)^2 = 4q^2 = 2k, k = 2q^2 ∈ Z$ OR
$p² = (2q+1)^2 = (4q²+4q+1) = 2(2q^2+2q) + 1 = 2k+1, k ∈ Z$ ;
So, any perfect square will be one of the forms $2k$ or $2k + 1$
If $n + 2 = 2k$, then $n = 2k – 2$ which is not a perfect square
If $n + 2 = 2k + 1$, then $n = 2k -1$ which is not a perfect square either
In whatever form a perfect square $n + 2$ may be, $n$ is not perfect square.
I was told that my approach is wrong and that odd and even does not matter in this context. May I please some feedbacks of the public?
I think this might be harder to see here because you're using the same variable to represent two different values: one which is arbitrary (the $2k$ and $2k + 1$ forms for your squares) and one which is fixed based on your choice of $n.$ ($n = 2k$ or $2k + 1$)
– Stephen Donovan Jul 26 '21 at 04:48