Question

Let Ln be the language containing all words of the form ak where k is a...

Let Ln be the language containing all words of the form ak where k is a multiple of n, and n≥0 (k is a multiple of n if there is a natural number x such that k = x∗n). For example, the language L2 = {ε, aa, aaaa, aaaaaa, ...}. Give a proof outline that for every n≥0, Bn is regular.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution for the problem is provided below, please comment if any doubts:

To prove a language is regular we need to prove that there exists a DFA to accept the language.

Here Ln is a language where the language will contains all the strings ak, where k is the multiple of n>=0.

That is the strings in the language are multiplies of the base string.

That is if “n=2”, then strings are multiplies of length two string “aa”. That is length 4, 6, etc.

For any such n, there exist a DFS with “n” states with start state as final state and a transition from “n”th state to first state.

The primitive DFA is as given below:

All the strings are multiplication of the primitive basic string of length “n”, thus lla string in the language will be accepted by a DFA.

That is the given language is a regular language.

Add a comment
Know the answer?
Add Answer to:
Let Ln be the language containing all words of the form ak where k is a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT