GATE Computer ScienceModerateGATE CSE · ISRO

Binary numerals are read most significant bit first (leading zeros allowed, the empty string counts as 0). What is the number of states in the minimal DFA accepting exactly the multiples of 6?

  1. A. 3
  2. B. 4
  3. C. 5
  4. D. 6

Correct answer: B. 4

Remainders r and r + 3 (mod 6) have identical transitions (2r + c is unchanged), and only remainder 0 accepts, so the classes are {0}, {3}, {1,4}, {2,5}: 4 states, not 6.

More Theory of Computation questions

Exams that ask this topic