Precisely,what must be true about n for there to be zero divisors in $ℤ_$ (i.e. elements $[a]_n$ and $[b]_n$ such that $[a]_n[b]_n=[0]_n$ but $[a]_n,[b]_n≠[0]_n$? State your theorem as an 'if and only if' statement. [hint: Consider gcd(a,n) and/or gcd(b,n)]-------This is the problem I posted before.
I figured that $\mathbb{Z}_2$,$\mathbb{Z}_3$,$\mathbb{Z}_4$,$\mathbb{Z}_5$,$\mathbb{Z}_7$ don't have zeor divisors. I think for there to be zero divisiors in$\mathbb{Z}_n$, $n$ should not be prime numbers. But I am not sure what to do with $\mathbb{Z}_4$ because 4 is not prime. It doesn't go with my assumption.
Also, in $\mathbb{Z}_6$, $gcd(2,6)=2$, $gcd(3,6)=3$. In $\mathbb{Z}_8$,$gcd(2,8)=2$, $gcd(4,8)=4$.. so on. I found that $gcd(a,n)=a$ and $gcd(b,n)=b$. So is this fact should be on my statement?
Help! Due tomorrow!
$\textbf{Hint:}$ We have $[a]_n [b]_n = [0]_n$ if and only if $n|ab$ in $\mathbb{Z}$. What does this imply if $n$ is prime? And if $n$ is not prime?