651 views
0 votes
0 votes

The number of strings present of length 10 in language  $L=\left \{ a^{2n+1}.b^{2m+1}|n\geq 0,m\geq 0 \right \} $ are_________


My explanation: I think here minimum string ab , and $8$ gap is present. So, like counting we can solve it. That means  these $8$ place we can fill with either $a$ or $b$

Where is wrong in it?

1 Answer

Best answer
2 votes
2 votes
only odd powers of a and b are possible.

So possible strings of length 10 will be $a^1b^9 , a^3b^7 ,a^5b^5 , a^7b^3 , a^9b^1$

Only 5 strings possible
selected by

Related questions

0 votes
0 votes
2 answers
2
rohankrishan asked Jun 29, 2022
251 views
Example: 11110100000111 should be accepted. There are 6 zeros. 6 is divisble by 2 and 3. This machine required at least six states.
0 votes
0 votes
5 answers
3
radha gogia asked Sep 30, 2015
1,674 views
If I am given an array $X$ of $n$ distinct integers which is interpreted as a complete binary tree, so if the parent is at index $i$, then it's left child would be at ind...