Let $\mathbb{Z}_8$ be the ring containing elements integer modulo 8 with operation $+$ and $.$ being addition and multiplication modulo 8 resp. I want to find $a$ for every $0\neq b \in \mathbb{Z}_8$ such that $$a.b+b=0.$$
PS- I can write $a.b+b=(a+1).b=0$, which gives $a+1=0$ implies $a=-1=8-1=7$ over $\mathbb{Z}_8$. But when I check element wise, for $b=2,4,6$ we can have also $a=3$ as a solution. I didn’t expect 2 solutions when I am solving the equation $a.b+b=(a+1).b=0$. I see this is happening with non unit elements but Why is it so?
The property $xy=0\implies x=0 \text{ or }y=0$ is only valid in integral domains. If this is not true, we call $x$ and $y$ zero divisors.
A fairly elementary theorem in ring theory says that $\mathbf{Z}/p\mathbf{Z}$ is an integral domain if and only if $p$ is prime, and $8$ is not prime.