s = X3 + X + 1
s = X + 1 (Fibonacci)
The transition matrix of the shift register with shift polynomial s = X3 + X + 1 is a zero of f = X4 - s = X4 - X3 - X - 1.
Let us consider the coefficients in R = Z/2Z. Then this polynomial factors as (X + 1)2(X2 + X + 1) and so is a divisor of X6 - 1. Therefore, the period is a divisor of 6.
In fact, the period is precisely 6. But there are exceptional initial states, leading to sequences with periods which are proper divisors of 6. For instance, the initial state (g0, ..., g3) = (1,0,1,1) gives the sequence
of period 3.
| A = |
|
|
|
with minimal polynomial f(X) = X2 - X - 1. The numbers in the sequence keep growing, at least when we take R = Z. Consequently, no finite period is to be expected. But if we perform arithmetic modulo a natural number m, a finite period is bound to show up. For, the number of distinct sequences of length 2 is finite: at most m2, and hence the period is at most m2.
If m = 2, then f as an element of (Z/2Z)[X] divides the polynomial X3 - 1, so the period is 1 or 3.
If m=3, then f divides X8 - 1, so the period is a divisor of 8.