0
$\begingroup$

I have came across this modular polynomial arithmetic question. I not really understand how the answers were derived.

enter image description here

For the first example right, from what I understand it is the polynomial whose coefficient are from Z_p, {0,1,...,p-1}. So given p = 3, I can get 0,1,2. And if given p = 2, I can get 0,1.

But I not sure how those x are derived. Any ideas? Thanks in advance.

2 Answers 2

1

It seems to be the list of all polynomials of degree less than $2$, with coefficients in $\mathbf Z/3\mathbf Z$ in the first case; of all polynomials of degree less than $3$, with coefficients in $\mathbf Z/2\mathbf Z$ in the second case.

Indeed, for the first case, a polynomial of degree less than $2$ has the form $a_0+a_1x$. Plug in the different possible values for the pairs $(a_0,a_1)$, getting \begin{matrix} (0,0)\to \color{red}{0}&(0,1)\to \color{red}{x}&(0,2)\to \color{red}{2x}\\ (1,0)\to \color{red}{1}&(1,1)\to \color{red}{1+x}&(1,2)\to \color{red}{1+2x}\\ (2,0)\to \color{red}{2}&(2,1)\to \color{red}{2+x}&(2,2)\to \color{red}{2+2x} \end{matrix} The second case goe along the same lines: \begin{matrix} &(0,0,1)&&(0,1,1)\\ &\color{red}{x^2} &&\color{red}{x+x^2}\\ (0,0,0)&&(0,1,0) \\ \color{red}{0}&&\color{red}{x}\\[2ex] &(1,0,1)&&(1,1,1)\\ & \color{red}{1+x}&&\color{red}{1+x+x^2}\\ (1,0,0)&&(1,1,0)\\ \color{red}{1}&& \color{red}{1+x} \end{matrix}

  • 0
    Sorry do you mind to explain a little more on that? The textbook does not provide enough explanation though.2017-01-28
  • 0
    @Denise Tan: I've added details. Is it clearer?2017-01-28
  • 0
    Thanks so much, it is so much clearer now. However, as for the second case which the degree is less than 3, does that means the formula is a0 + a1 + a2x? I tried to do it the same way as above but the results seemed off track :(2017-01-28
  • 0
    More exactly $a_0+a_1x+a_2x^2$, with coefficients equal to $0$ or $1$. You have to write out methodically all the possibilities, to be sure you don't forget some possibility.2017-01-28
  • 0
    I see I see but if that is the case, then it should not be 3x3 matrix anymore, am I right? It should be larger than that.2017-01-28
  • 0
    The matrix metaphor is OK if you have $2$ coefficients, but in the second case you have $3$, i.eI. it is $\mathbf Z:2\mathbf Z^3$. The televant metaphor would be a cube, which has 8 vertices.2017-01-28
  • 0
    Do you mind to show me a rough idea to for the startup of the cube metaphor?2017-01-28
  • 0
    Nevermind but thanks! I figured out by using binary from 000 to 111! Thanks!2017-01-28
  • 0
    You also can use a tree, of course. I've added a cube.2017-01-28
  • 0
    Sorry but one last question, from the first example right, the p is coefficient, n is polynomial degree. Given n=2, the degree is less than 2, then shouldn't I n-1 so that I only count for (0,0), (0,1), (1,0), (1,1)?2017-01-28
  • 0
    Or in another word, given x^3 + x + 1, what are the p and n? Sorry I got confusion again after reading examples :(2017-01-28
  • 0
    Given $x^3+x+1$, clearly $n$ has to be $>3$. As to $p$, it is what you want, if you have no other value for the coefficients than $0$ and $1$. It sems this question is asking to enumerate all possible remainders in division by a polynomial of degree $n$ with coefficients in the field $\mathbf Z/p\mathbf Z$.2017-01-28
0

If n=2, the polynomial has 2 terms, the x and constant term. If x=3, the polynomial has three terms, $x^2$, $x$, and the constant term. So the highest degree of the polynomial is $n-1$.

  • 0
    Sorry but I don't quite get it. Is there any way to multiply or division or anything to derive those x + 1, x + 2, 2x etc?2017-01-28
  • 0
    Any ideas? I still can't figure it out :(2017-01-28