Assume towards a contradiction that $n+2$ is a perfect square.
If $n=4=2*2$ then $n+2 = 6$ is a perfect square. Contradiction! QED.
Is this a valid proof? Can I show a contradiction by finding only one example?
Assume towards a contradiction that $n+2$ is a perfect square.
If $n=4=2*2$ then $n+2 = 6$ is a perfect square. Contradiction! QED.
Is this a valid proof? Can I show a contradiction by finding only one example?
No, you cannot: you must show that $n+2$ is never a perfect square when $n$ is. One counterexample just tells you that $n=4$ doesn’t happen to work; it doesn’t tell you anything about $n=9$, or $n=16$, or any other perfect square.
HINT: Suppose that $n=a^2$ and $n+2=b^2$. Then
$$2=(n+2)-n=b^2-a^2=(b-a)(b+a)\;.$$
Why is this impossible if $a$ and $b$ are integers?
Hint Assume by contradiction that $n$ and $n+2$ are perfect squares.
Then $$n=a^2 \,;\, n+2=b^2 \Rightarrow 2=b^2-a^2=(b-a)(b+a)$$
Can you get a contradiction from here?
$1^2$ and $2^2$ are separated by 3. Now consider $n^2$ and $(n+1)^2=n^2+2n+1$, for $n>1$. Now the difference is at least $2n+1=5$. So there cannot be two squares with 2 as difference.
There are many ways to prove this. Here's another:
If N is a perfect square, then it must be equal to 0, 1 or 4 Mod 8 (because those are the only quadratic residues mod 8). Thus N+2 would be equal to 2, 3, or 6 mod 8, and therefore cannot be a perfect square.