I know it is true that, if for example, $a \equiv b \equiv 1 \bmod 2$, then $$a^3 + ab^2 + b^3 \equiv 1^3 + 1 \cdot 1^2 + 1^3 \equiv 1 \bmod 2.$$ (I hope this notation is fine, but if not, someone please correct me.)
I'm trying to understand exactly why this is the case. If I worked purely with equivalence classes, I can say that $[a] = [b] = [1]$, so $$ [a^3] + [ab^3] + [b^3] = [a]^3 + [a][b]^3 + [b]^3 = [1]^3 + [1][1]^3 + [1]^3 = [1] $$ by the rules for adding and multiplying equivalence classes. Alternatively, I could use the following rules iteratively: $$(a \equiv b \bmod n) \wedge (c \equiv d \bmod n) \implies a + c \equiv b + d \bmod n$$ $$(a \equiv b \bmod n) \wedge (c \equiv d \bmod n) \implies ac \equiv bd \bmod n.$$ So the proof would look like this. We have $a \equiv 1 \bmod 2$. Applying the second rule twice, I get $a^3 \equiv 1 \bmod 2$. Similarly, $b^3 \equiv 1 \bmod 2$. By the first rule, $a^3 + b^3 \equiv 0 \bmod 2$. By the second rule, $b^2 \equiv 1 \bmod 2$ so $ab^2 \equiv 1 \bmod 2$. By the first rule again, $a^3 + ab^2 + b^3 \equiv 1 \bmod 2$.
My question is: is there another way to understand the shorthand I wrote down in the second line above, or are these the ways to understand it?