For let denote the decimal value of e.g. Let
Which one of the following statements is true?
View worked solution
Answer: D
To determine the class of the language , we can analyze it as the intersection of two simpler languages:
Let .
We can construct a Deterministic Finite Automaton (DFA) with states (representing remainders modulo ) to recognize . The transition from state on reading bit goes to state . Thus, is a regular language.
Let .
Similarly, the language is regular because it can be recognized by a -state DFA. Since regular languages are closed under complementation, its complement is also a regular language.
Since regular languages are closed under intersection, the language: is also a regular language.
Free practice · Your answers on this page are not saved.
