Similar questions 1 more → · asked again: GATE 2011, Q15
Counters & Timing

Answer & solution
Answer: ceil(log₂N), for N≥2 (no official key was published)
With k flip-flops, the state register has at most 2^k distinct binary states. A modulo-N counter must distinguish N positions before repeating, so 2^k≥N and k≥ceil(log₂N). This many bits are sufficient: use N of the available states and arrange the transition after N−1 to return to zero. Non-power-of-two counters leave unused codes, whose recovery behavior should be designed separately. The degenerate N=1 counter can be a constant output with no state bits in the abstract model.