Prove or disprove: For all positive integers $n$ and for all integers $a$ and $b$, if $a \equiv b \mod n$, then $a^2 \equiv b^2 \mod n$.
Prove or disprove: For all positive integers $n$ and for all integers $a$ and $b$, if $a^2 \equiv b^2 \mod n$, then $a \equiv b \mod n$.
If you disprove, you should give an explicit counterexample.
To prove or disprove these would I just need to plug in a set of numbers for $a$ and $b$ and $n$, and if it works then it's true otherwise it's false?