1. Design a synchronous counter using D flip-flops that counts the sequence 1, 5, 2, 3, 6, 7, and 1. Discuss what happens if the circuit were to enter any of the unused states.
2. Use JK flip-flops to design a sequence detector that produces an output when exactly two 0s are followed by two 1s.