Skip to main content

(7,4) cyclic code G(p) = p³ + p + 1 for 0101

Short answer

Multiply M(p)=p^2+1 by G(p)=p^3+p+1 yields 0100111 non-systematic. Systematic encoding appends remainder 100 to message, giving 0101100.

The generator polynomial of a (7,4) cyclic code is G(p) = p³ + p + 1. Obtain the code vector for the code in non-systematic and systematic form with message vector 0101.

A cyclic code is a linear block code in which every cyclic shift of a codeword is also a codeword. An (n,k)(n,k) cyclic code is generated by a polynomial G(p)G(p) of degree n−kn-k that divides pn+1p^n+1:

  • Non-systematic encoding: X(p)=M(p) G(p)X(p)=M(p)\,G(p); message bits are not visible directly in the codeword.
  • Systematic encoding: X(p)=pn−kM(p)+rem[pn−kM(p)G(p)]X(p)=p^{n-k}M(p)+\text{rem}\left[\dfrac{p^{n-k}M(p)}{G(p)}\right]; the message appears unchanged and the remainder gives the n−kn-k parity bits.

Given (n,k)=(7,4)(n,k)=(7,4), G(p)=p3+p+1G(p)=p^3+p+1, n−k=3n-k=3. Convention: leftmost message bit is the highest power. Message 01010101:

M(p)=0⋅p3+1⋅p2+0⋅p+1=p2+1M(p)=0\cdot p^3+1\cdot p^2+0\cdot p+1=p^2+1

All additions are modulo 2.

Non-systematic form

X(p)=M(p) G(p)=(p2+1)(p3+p+1)=p5+p3+p2+p3+p+1=p5+p2+p+1\begin{aligned} X(p)&=M(p)\,G(p)=(p^2+1)(p^3+p+1)\\ &=p^5+p^3+p^2+p^3+p+1\\ &=p^5+p^2+p+1 \end{aligned}

Coefficients from p6p^6 down to p0p^0:

p6p^6p5p^5p4p^4p3p^3p2p^2p1p^1p0p^0
0100111

Non-systematic code vector: 0100111

Systematic form

  1. Multiply by pn−k=p3p^{n-k}=p^3: p3M(p)=p5+p3p^3M(p)=p^5+p^3.
  2. Divide by G(p)G(p):
              p^2
            -----------------
 p^3+p+1 )  p^5 +       p^3
            p^5 +       p^3 + p^2
            ---------------------
                              p^2   <- remainder
  1. Remainder C(p)=p2C(p)=p^2, so parity bits (p2,p1,p0)=100(p^2,p^1,p^0)=100.
  2. X(p)=p3M(p)+C(p)=p5+p3+p2X(p)=p^3M(p)+C(p)=p^5+p^3+p^2.

Check: X(p)=p2 G(p)=p5+p3+p2X(p)=p^2\,G(p)=p^5+p^3+p^2, a multiple of G(p)G(p).

Systematic code vector: 0101 100 (message bits, then check bits)

FormCode vector
Non-systematic0100111
Systematic0101100

✓ Answer checked by Claude Opus 5.5 (high effort)

All Communication Systems chapter 8 questions →