Similar questions 1 more →
Counters & Timing

Answer & solution
Official answer: 3
The repeated output at each count needs an internal phase bit: the two appearances of 0 must have different next outputs eventually and cannot be the same deterministic state. The sequence has period 8, requiring eight states and at least 3 bits. A3-bit modulo 8 counter with the low bit suppressed in the output realizes it, so 3 JK flip-flops suffice.
Although only four output values appear, the repeated occurrences need different internal states. If the two consecutive zeros were the same state of an autonomous deterministic counter, they would have the same successor and could not later advance to 1. The complete repeating pattern has period 8, so at least 8 internal states and ceil(log 2 8)=3 flip-flops are required. A modulo 8 counter outputs its two upper bits, holding each value for two clocks, which attains the bound.