813 views

2 Answers

1 1 vote
L= 0 => 0(No string possible)

L=1 => 1 {a}

L=2 => 3 {aa, ba, ab}

L=3 => 7 {aaa, aba, baa, bba, bab, aab, abb}

Therefore total =0+1+3+7=11
0 0 votes
0 length 0

1 length =1 a

2 length = 3 aa,ba,ab

3 length = 7 aaa,aba,baa,aab,aba,bab

total 11
• edited by
Position:
Show:

Related questions

0 0 votes
1 1 answer
306
306 views
PS_Editing asked Apr 16, 2025
306 views
Find regular expression for the following language L= {w: |w| mod 5 ≠ 0}
1 1 vote
0 0 answers
430
430 views
Snehasis_Basu asked Nov 11, 2024
430 views
Here I thought the answer should be A and D but in the test series answer it is written as only D is the answer.My doubt is : A should not be generating 100 as a substrin...
0 0 votes
3 answers 3 answers
495
495 views
1 1 vote
2 2 answers
1.4k
1.4k views
Shaina Singh asked Jul 30, 2023
1,426 views
Convert DFA to regular expression