I'm trying to prove that the relation R on $\mathbb{Z}$ is an equivalence relation, where R is defined by:
$$\{(x,y)\in \mathbb{Z}\times\mathbb{Z}: x^2\equiv y^2 \!\!\!\mod \!\!4\}$$
I know I need to show that it is reflexive, symmetric, and transitive, but I'm not sure how to do that when working with congruence. Thank you.
I answered my own question below but I'm not sure if I did it correctly. Any feedback would be really helpful. Thanks.
Hint : Try that $\equiv$ is a relation on $\mathbb{Z}$ and $R$ will be a straightfoward consequence.