525 views
2 votes
2 votes
L={a^p|p is prime}  is not regular.but kleene closure of L is regular.How?
L* is regular how??

1 Answer

1 votes
1 votes

L = {a2, a3, a5, a7, a11, a13,....}*

L will generate $\varepsilon$

L will definitely generate all even powers of a because of {a2}*

L will generate a3

Now, take any other power of a, it will definitely be generated by L. Eg a= a2a2a2

a9 = a7a2 or a3a3a3

So, L generates all powers of a except for a itself.

Language generated by L can be given as {a}* - {a} which is nothing but regular

Related questions

0 votes
0 votes
2 answers
1
anupamsworld asked Aug 29, 2022
609 views
Which of the following is/are Regular?A] $\left \{ XWYW^{R} \space\ | \space\ W,X,Y \in \left \{ a,b \right \}^{+} \right \}$B] $\left \{ WXW^{R}Y \space\ | \space\ W,X,Y...
0 votes
0 votes
0 answers
2
eyeamgj asked Aug 22, 2018
232 views
L=w(wR)* such that w belongs to {a,b}* is regular ??? how?
0 votes
0 votes
2 answers
3
0 votes
0 votes
1 answer
4