GATE Computer ScienceVery hardGATE CS (PYQ pattern)

In the ring ℤ₃₆₀, how many elements are idempotent (x² = x) or nilpotent (xᵏ = 0 for some k)?

  1. A. 20
  2. B. 19
  3. C. 21
  4. D. 18

Correct answer: B. 19

Idempotents: 2^3 = 8 (one choice of 0/1 per prime power 8, 9, 5). Nilpotents: multiples of 2·3·5 = 30, i.e. 12. Only 0 is in both, so 8 + 12 − 1 = 19.

More Discrete Mathematics questions

Exams that ask this topic