Definition: An integer $n$ is throdd if $n=3k+1$ for some $k\in\Bbb Z$.
Proposition: For all integers $n$, if $n^2$ is throdd, then $n$ is throdd.
direct proof:
let $n$ be a particular but arbitrarily chosen throdd integer
then $n = 3k + 1$ for some $k \in \mathbb{Z}$
then $n^2 = (3k + 1)^2 = 9k^2 + 6k + 1 = 3(3k^2 + 2k) + 1$
$3k^2 + 2k$ is an integer by closure, $n^2$ meets the definition of threeven.
Wouldn't there be a counter example, or is there a way to prove it by contrapositive?