000 = 0
101 = 5
100 = 4
010 = 2
100 = 4
011= 3
001 = 1
above sequence are not proper differentiate with help of 3 bit because 4 & 4 are matched then apply similarly method for 4 bit
0000 = 0
0101 = 5
0100 = 4
0010 = 2
1100 = 12
0011= 3
0001 = 1
our state will be different
minimum number of bit 4
we know that no of flip flop = no of bit 4 flip flop recquired