For S ∈ (0+1)* let d(S) denotes the decimal value of S (e.g., d(101) = 5).
Let L = S ∈ (0+1)* | d(s) mod 5 = 2 and d(s) mod 7 ≠ 4
Which one of the following statements is true?
There is a DFA corresponding to d(S) mod 5 = 2 as well as d(S) mod 7 ≠ 4. Therefore, both of them are regular languages. Let, they be L1 and L2. The given language is L1 ∩ L2
Since regular languages are closed under intersection and complementation, the given language is also regular.