GATE CS 2025, set 2 · Question 60 · Theory of Computation · Numerical answer (NAT) · 2 marks · no negative marks
Let Σ = {1,2,3,4}. For x ∈ Σ^*, let prod(x) be the product of symbols in x modulo 7. We take prod(ε) = 1, where ε is the null string.
For example, prod(124) = (1 × 2 × 4) mod 7 = 1.
Define L = {x ∈ Σ^* | prod(x) = 2}.
The number of states in a minimum state DFA for L is ______. (Answer in integer)
Answer
Answer 6
Answer from the official GATE CS 2025 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes