Interactive · 1 question
Let's factor the polynomial over modulo (formally or ).
In normal factoring (say, over the integers), what is the first thing you try to do?
So let's find some roots of the polynomial . If a root? Of course: . What about ? Yes, too. . Hmmm, what if every number from to was a root? Wouldn't that be cool? Well, this is exactly what happens! But why?
If you remember Fermat's little theorem, it says that for any positive integer and prime , we have , which is equivalent to . So actually are all roots! That's roots. And the degree of is exactly . So by the factor theorem, and the fact that a polynomial has at most as many roots as its degree, it factors as exactly the product of .
As an equation, Here's an example for : (You can check it for larger primes too.)