Prove the following either by Direct Proof or by Contraposition:
Suppose $a\in\mathbb{Z}$, if $a\equiv 1\pmod 5$, then $a^2\equiv 1\pmod5$
Suppose $a\equiv 1\pmod 5$
Then $5|\left(a-1\right)$, therefore $a-1=5k$
$a^2-1=\left(a-1\right)\left(a+1\right)=5k\left(a+1\right)$
Thus, $a^2-1=5m$ where $m=k\left(a+1\right)$
Hence $a^2\equiv1\pmod5$
So, that is basically a proof by Contraposition, right?
If $ a \equiv 1 (mod 5) $, then multiplying both sides by $a$ we get $ a^2 \equiv a (mod 5) $.
So $a^2$ is congruent to $a$, and by hypothesis $a$ is congruent to 1.