I want to create a finite state machine that takes strings with only 0 and 1 as input. The finite state machine shall only accept strings with an odd number of zeros and the sum of the numbers in the string should be divisible by 3 (but any other numbers). So 0111 should be accepted, but not 011 or 111.
I made the picture above (sorry for the ugly drawing, its difficult to draw with a mouse ;) ) as a finite state machine which only gives back a 1 if the strings sum is divisible by 3 but how do I make it only accept strings with an odd number of zeros as well?
If the drawing includes errors, please also tell me that. (Im new to this)
