Given the alphabet {aaa bbb}, give a recursive definition for the language that only contains odd length strings. must be constructive definition we are suppose to treat aaa as one letter and bbb as one letter
this is what I have so far, but I feel that I am missing something
We will represent our language with L
Rule#1: aaa,bbb is in L
Rule#2: if w is in L, then so are
(i): waaaw
(ii): wbbbw
thanks
Here's a hint.
You see that $aaa$ and $bbb$ are in $L$.
You also see that one way to guarantee that you have an odd-length string is to combine three odd-length strings.
Given just your two starting strings above, what is the next-largest string length you can create? How can you combine your two starting strings to cover your choices? Can you generalize this?