How can I show this is an equivalence relation:
$$ n \operatorname{R} m \Longleftrightarrow n^2 - m^2 \textrm{ is divisible by } 5 $$
I know equivalence relations are symmetric, reflexive and transitive. I'm just not sure how to use this knowledge to prove it.
Recall that the binary relation $ \operatorname{R} $ on $\mathbb{N}^2$ is an equivalence relation iff it is symmetric, reflexive and transitive.
Fix any $n,m\in\mathbb{N}$.
Reflexive ($n \operatorname{R} n$): $n^2-n^2=0$ and $5|0$
Symmetric (if $n \operatorname{R} m$ then $m \operatorname{R} n$): if $5|n^2-m^2=0$ then $5|-(n^2-m^2)=m^2-n^2$
Transitive (if $(n \operatorname{R} m)$ and $(m \operatorname{R} \ell)$ then $n \operatorname{R} \ell$): if $5|n^2-m^2=0$ and $5|m^2-\ell^2=0$ then $5|(n^2-m^2+m^2-\ell^2)=n^2-\ell^2$