Answer:
attached below
Step-by-step explanation:
Applying the state transition Formula
state - next = ( state *2 + in ) % 5
how this works : remainder of previous cycle is doubled to enable the calculation of the new remainder.
Input of current cycle is represented as either 1 or 0
since the dividing number = 5 . possible remainders = 1,2,3,4,0
each remainder is represented as :
S0 = zero remainder , S1 = 1 remainder , S2 = 2 remainder, S3 = 3 remainder,
S4 = 4 remainder