Although the state diagram for this version would require the same 20 paths as was needed for the second version, the logic is much simpler. The condition for going to state B, from each state is 1XXX (R1), to C is 01XX (R1 R2), to D is 001X (R1 R2 R3), and to E is 0001 (R1 R2 R3 R4) (the same as the condition from state A in all of the versions).