0

If we have a polynomial like $f(x)=x^{18}+7x^{13}-2x^5+8$. If we want to consider it mod 5 for example, can we simplify it like by subtracting terms (or adding multiples) in 5's; for example, is $f(x)$ equal to $x^{18}+2x^{13}+3x^5+3$ mod 5? I think I've seen this done before but it feels like this shouldn't be possible. And if it is (or isn't), why is that?

Bill Dubuque
  • 272,048

1 Answers1

1

Yes, this is perfectly fine. In you example, because $5\equiv0\pmod{5}$, also $5x^5,5x^{13}\equiv0\pmod{5}$, and hence \begin{eqnarray*} f(x)&=&x^{18}+7x^{13}-2x^5+8\\&\equiv&(x^{18}+7x^{13}-2x^5+8)+(-5x^{13}+5x^5-5)\\ &=&x^{18}+2x^{13}+3x^5+3\pmod{5}. \end{eqnarray*} Similarly, as suggested in the comments, the difference between the two polynomials equals $$-5x^{13}+5x^5-5=5(-x^{13}+x^5-1),$$ which is a multiple of $5$. So the two polynomials are congruent modulo $5$.

Servaes
  • 63,261
  • 7
  • 75
  • 163