Let $R=\mathbb Z_2\oplus \mathbb Z_3\oplus \mathbb Z_5$.Then Total number of the zero divisors in $R?$
(A) $15$
(B) $10$
(C) $20$
(D) $22$
Solution We know that
- $x$ is a unit $\Longleftrightarrow \ gcd(\vert x\vert ,30)=1$
- $x$ is a Zero Divisor $\Longleftrightarrow \ gcd(\vert x\vert,30)\neq 1$
Since $R$ has $2.3.5=30$ elements.So number of elements in $R$ whose order is relatively prime to 30 is $\phi(30)=8\implies$ number of elements in $R$ whose order is not relatively prime to 30 are $30-\phi(30)=30-8=22\implies $ $R$ has 22 zero divisors.
But the answer key says the solution is 20
Where have I made a mistake?