I am trying to write a proof of the following-
Prove that $[a]_n=[b]_n$ if and only if $a \equiv b\pmod{n}$
I am not sure how to start or how to get to the final product. Any help will be appreciated.
I am trying to write a proof of the following-
Prove that $[a]_n=[b]_n$ if and only if $a \equiv b\pmod{n}$
I am not sure how to start or how to get to the final product. Any help will be appreciated.
Welcome to MSE! Maybe you mean that the classes of $a$ and $b$ are equal iff $a\equiv b\mod n$. The class of $a$ is $\bar a = \{b\mid a\equiv b\mod n\}$.
First, let $a\equiv b\mod n$. One needs to show that $\bar a= \bar b$. For this, let $c\in\bar a$. Then $c\equiv a\mod n$. By transitivity, $c\equiv b\mod n$ and so $c\in\bar b$. Thus $\bar a\subseteq \bar b$. Similarly, $\bar b\subseteq \bar a$. Hence, $\bar a=\bar b$.
Conversely, if $\bar a= \bar b$, then $b\in\bar b=\bar a$ and so $a\equiv b\mod n$. Done.