(a)
Design a counter with the repeated binary sequence of 0,1,2,4,6.
The following is the excitation table for D flip-flop.

The following is the state transition table for required counter.

From Table 2, the expressions for flip-flop inputs are,
Draw the Karnaugh map for flip-flop input
.

From Figure 1, the flip-flop input equation for
is,
Draw the Karnaugh map for flip-flop input
.

From Figure 2, the flip-flop input equation for
is,
Draw the Karnaugh map for flip-flop input
.

From Figure 3, the flip-flop input equation for
is,
Draw the logic diagram for the required counter.

Thus, the required logic diagram of the counter is drawn as shown in Figure 4.
(c)
Design a counter with the repeated binary sequence of 0,2,4,6,8.
The following is the state transition table for required counter.

From Table 3, the expressions for flip-flop inputs are,
Draw the Karnaugh map for flip-flop input
.

From Figure 5, the flip-flop input equation for
is,
. 
From Figure 6, the flip-flop input equation for
is,
Draw the Karnaugh map for flip-flop input
.

From Figure 7, the flip-flop input equation for
is,
Draw the Karnaugh map for flip-flop input
.

From Figure 8, the flip-flop input equation for
is,
(d)
Draw the logic diagram for the required counter.

Thus, the logic diagram for the required counter is drawn as shown in Figure 9.