I am reading about equivalence classes and I would like to make sure I understood thins properly.
My book says:
The set of equivalence classes under this equivalence relation [$\pmod n$] will be denoted by $\mathbb{Z}/ n \mathbb{Z}$
Is the following true?
$$\displaystyle \text{ } \mathbb{Z}/ 3 \mathbb{Z}=\{\{0, 3, 6, ...\}, \{1, 4, 7,...\}, \{2, 5, 8, ... \}\}$$
The book proceeds:
We shall dennote the equivalence class of $a$ by $\bar a$
$\vdots$
We can define addition an multiplication for the elements of $\mathbb{Z}/ n \mathbb{Z}$, defining modular arithmetic as follows: for $\bar a, \bar b \in \mathbb{Z}/ n \mathbb{Z}$, define their sum and product by
$$ \bar a+ \bar b = \overline {a+b} \text{ } \text{ } \text{ } \text{ } \text{ } \text{ }\text{ and } \text{ } \text{ } \text{ } \text{ } \text{ } \bar a \cdot \bar b = \overline {a b}$$
The problem that I have with this statement is that what I think it tries to capture is (I think) different from what it literally says. I will use $\mod 3$ again as an example.
What I think i tries to capture is this: we have $3$ classes under this equivalence relation, $C_1 = \{0, 3, 6, ... \}$, $C_2 = \{1, 4, 7, ... \}$, and $C_3 = \{2, 5, 8, ...\}$. Let's say we want to add an element of $a \in C_1$ to an element $b \in C_2$, and we want to know in which class the result will be. To find this, we can take any element of $x \in C_1$ and add it to any element of $y \in C_2$. The number $x+y$ will always lie in the same class as $a+b$.
What I think the statement is literally saying is this (for example):
$$\{0, 3, 6, ... \} + \{1, 4, 7, ...\} = \overline {3+1} = \overline {4} = \{1, 4, 7...\}$$
which I guess is fine as a definition of $+$ on these sets, but seems rather useless.
Your example is correct, I think you are very close to having it understood fully. Just note that in mod 3 calculations, $\bar{3} = \bar{0}$, so it makes sense that in your particular example, the addition of (the equivalence class of) 3 does not change anything. Similarly, for example $$ \bar{2} + \bar{2} = \overline{2+2} = \bar{4} = \bar{1}, $$ which does make sense as $2+2 = 4 = 1 + 3 = 1 \mod 3$.