Create a Mealy FSM with an input A and an output Z. If 10101 shows up on A, then in the same cycle 1 should show up on Z, else Z is 0. Do the entire FSM design following all steps: State diagram, state tables, all equations, and circuit. All unneeded states are don't-cares. Finally, you may only use D flip-flops for state (no other flip-flops/latches). Show all work for all stages for full credit.
USE Decoders for the logic in the combinational part of the circuit, only use a few gates to finish the logic. Use the minimum number and minimum size decoders necessary to answer the problem.