in Theory of Computation
935 views
0 votes
0 votes
Let $C_{n} = \{x| x \text{ is a binary number that is a multiple of $n$}\}.$ Show that for each $n\geq1,$ the language $C_{n}$ is regular$.$
in Theory of Computation
by
935 views

1 Answer

2 votes
2 votes

This Question is similar to Designing a DFA of a binary number which is divisible by n.

So that if we can draw the DFA which accepts all the elements generated by the language and does not accept the element which is not generated by the language it will prove that it is regular.

Consider the example where n=3 :

we draw the DFA for given language when n=3 as

Image result for dfa for divisible by thee binary'

 

Similarly, we can design the DFAs for for different values of n .

Since we are able to design the DFA it proves language is Regular.

Related questions