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

h = X3 + X2 + 1.

Now, choose an information vector, say,

a = X.

It maps to code word

c = ag mod X7 - 1 = X5 + X4 + X3 + X.

Since

ch = X8 + X,

the polynomial of minimal degree in ch + (X7) is

X,

which coincides with a.