I have to make a regular expression from the following laguage:
{$a^kb^mc^n : $ where k + m + n is odd}
Is is possible for the sum of three numbers to be odd (other than three consecutive odd numbers)?
I have this so far:
{(abbbccccc) + (abbbbbccc) + (aaabccccc) + (aaabbbbbc) + (aaaaabccc) + (aaaaabbbc)}
but I am realizing that there are way more possibilities to this pattern... How can I formulate a string that encompasses all of this?