For a Lodd, it should be odd. So for a single character, it is alway odd.
Now for ax Lodd, a should be even. Sum of an even and odd number is odd, so this case always yields an odd number.
Now for axb Lodd, a and b should be odd. Sum of two odd numbers is odd, and sum of an even and odd number is odd, so this case always yields an odd number too.
So, it will always result in odd.
String digit sums. Consider strings over the alphabet 2= {0,1,2,3,4,5,6,7,8,9). We will recursively define the digsum...
Consider a language Lodd defined as follows: • a € Lodd for a € {1,3,5,7,9} • ax e Lodd for a € {0,2,4,6,8} and x € Lodd • axb e Lodd for a, b e{1,3,5,7,9} and x € Lodd (a) Prove that 374 is not in Loda (b) Prove that for any x e Lodd, digsum(x) is odd.