$
\newcommand{even}[1]{#1\text{ is even}}
$Many answers already, but I would write down the solution for this yet differently, using the rules
\begin{eqnarray}
\tag{0} \even{k + m} \;\equiv\; \even k \equiv \even m \\
\tag{1} \even{k \times m} \;\equiv\; \even k \lor \even m \\
\end{eqnarray}
Obviously I'm writing this down in a lot of detail for this question.
We start with the most complex side, and calculate
\begin{align}
& \even{n^2 + 1} \\
\equiv & \qquad \text{"using $(0)$ and the fact that 1 is not even"} \\
& \lnot(\even{n^2}) \\
\equiv & \qquad \text{"write $\;n^2\;$ as $\;n \times n\;$; rule $(1)$"} \\
& \lnot(\even n \lor \even n) \\
\equiv & \qquad \text{"logic: add one more $\;\even n\;$ -- so that we can introduce $\;n^3\;$"} \\
& \lnot(\even n \lor \even n \lor \even n) \\
\equiv & \qquad \text{"rule $(1)$, twice; write $\;n \times n \times n\;$ as $\;n^3\;$"} \\
& \lnot(\even{n^3}) \\
\end{align}
This proves the required statement. (It actually also proves the other direction.)