I'm trying to understand why $$~3y \equiv -1 \mod 2 \implies y \equiv 1 \mod 2~$$ I know that if $a \equiv b \pmod m$ then $a-b=km$ where $k$ is an integer.
And if you subtract a multiple of m you still have a multiple of m. But I'm still struggling to see this.
Can anybody fill in the steps very explicitly so I can try to understand why this implication is true?
Thanks so much.
$$3y \equiv -1 \equiv 1 \mod 2 \implies 2y + y \equiv 1 \mod 2 \implies y \equiv 1 \mod 2$$
because $1 - (-1) = 1\cdot 2$ and $2y \equiv 0 \mod 2$.