Example
Take g =
(X + 1)(X3 + X + 1)
Z/2Z to be a generator of a cyclic code of length 7. The
corresponding check polynomial is
Now, choose an information vector, say,
It maps to code word
Since
the polynomial of minimal degree in ch + (X7) is
which coincides with a.