To prove
βIf
\(n^2\) is even, then
\(n\) is even.β
it is sufficient to prove the contrapositive
βIf
\(n\) is odd, then
\(n^2\) is odd.β
Suppose
\(n\) is odd.
Then there exists an integer \(k\) such that \(n = 2k + 1\text{.}\) With this we get
\begin{equation*}
n^2 = (2k + 1)^2 = 4k^2 + 4k + 1 = 2(2k^2 + 2k) + 1.
\end{equation*}
Since \(k\) is an integer, we have that \(m=2k^2 + 2k\) is an integer, and so
\begin{equation*}
n^2=2m+1
\end{equation*}
is odd.
We have proven βIf
\(n\) is odd, then
\(n^2\) is oddβ is true and thus the original proposition βIf
\(n^2\) is even, then
\(n\) is even.β also is true.