Example

Consider the shift register with

R = Z/2Z,     and     s = 1 + X + X3.

Suppose that it starts out with

g0 = 1,  g1 = 0,  g2 = 0,  g3 = 0

in the registers. Then it produces the sequence

1, 0, 0, 0, 1, 1, 0, 1, ...