Exercise 2.3Z: Polynomial Division
In this exercise we deal with the multiplication and especially the division of polynomials in the Galois field GF(2). In the graph the procedure is indicated by a simple and (hopefully) self-explanatory example:
- Multiplying the two polynomials x2+1 and x+1 yields the result a(x)=x3+x2+x+1.
- Dividing the polynomial b(x)=x3 by p(x)=x+1 gives the quotient q(x)=x2+x and the remainder r(x)=x.
- One can check the latter result as follows:
- b(x) = p(x)⋅q(x)+r(x)=[(x+1)⋅(x2+x)]+x=[x3+x2+x2+x]+x=x3.
Hint: This exercise belongs to the chapter "Extension field".
Questions
Solution
- a(x) = (x3+x+1)⋅(x2+1)=x5+x3+x2+x3+x+1=x5+x2+x+1.
- Thus the proposed solution 2 is correct.
- The last solution suggestion cannot be valid already alone, since the degree of the product polynomial would be unequal 5.
(2) With the abbreviations
- a(x)=x5+x2+x+1,p(x)=x3+x+1,q(x)=x2+1
and the result from subtask (1) we get a(x)=p(x)⋅q(x).
That is: The divisions a(x)/p(x) and a(x)/q(x) are free of remainders ⇒ Correct are the solutions 1 and 2.
Even without calculation one recognizes that a(x)/x2 must result in a remainder. After calculation it results explicitly:
- (x5+x2+x+1)/(x2)=x3+1,remainderr(x)=x+1.
To the last proposed solution: We use for shortcut b(x)=x5+x2+x=a(x)+1. This is the given quotient:
- b(x)/q(x)=a(x)/q(x)+1/q(x).
- The first quotient a(x)/q(x) gives exactly p(x) without remainder, the second quotient 0, remainder 1.
- Thus the remainder of the quotient b(x)/q(x) is equal to r(x)=1, as the calculation in Example 1 shows.
(3) The polynomial division is explained in detail in Example 2. Correct is the proposed solution 3.