How many zero divisors does a ring have?

220 Views Asked by At

How can I calculate the number of zero divisors in the ring $$\mathbb Z /n\mathbb Z$$ for $n = 1.000.000$?

1

There are 1 best solutions below

0
On BEST ANSWER

Hint:

Every nonzero element in a finite ring with unity is either a unit or a zero divisor.

Can you calculate the number of units in the ring $\mathbb Z/1000000\mathbb Z$?