edited by
632 views

1 Answer

Best answer
3 votes
3 votes

For a number to be divisible by $9$ in Base-3 representation last 2 bits should be $0$.

So, DFA will comprise of $3$ states and will look like $\Rightarrow$

$9 = (100)_3$,  $18 = (200)_3$, $27 = (1000)_3$ and $36 = (1100)_3$ and Above DFA accepts all these strings.

edited by

Related questions

1 votes
1 votes
0 answers
1
5 votes
5 votes
3 answers
2
Manu Thakur asked Oct 9, 2017
2,220 views
I think, there will be 4 states in minimum DFA, following states will be merged in the resulted DFA{q0&q3}, {q4&q5}, {q1&q6}, {q2&q7}
2 votes
2 votes
2 answers
3
Utk asked Jan 13, 2016
16,187 views
What is the minimum number of states in the DFA for accepting the strings $(a+b)^{*}a(a+b)(a+b)$I draw the following DFA The minimum number of states is 4. The answer giv...
3 votes
3 votes
2 answers
4
Diksha Aswal asked Sep 15, 2017
3,229 views
$R= 10 +(0 +11)0^{*}1.$The minimum number of states in any DFA accepting this regular expression.