The input in a sequential machine is a binary sequence. The machine recognizes successive appearance of two or more 1 values. The output is specified as follows
1 even, when the number of 1 is even,
2 odd, when the number of 1 is odd,
3 0, otherwise
Show that the machine can be realized with four states. Determine the state table and state diagram for this machine.