While I was implementing Yun's algorithm in java, I could not figure out an algorithm to find the pth root of a polynomial in Fp where the polynomial is a perfect power of p. How would you suggest doing this?
For example, I would want to find the square root of a polynomial in F2. The cubic root of a polynomial in F3. The quartic root of a polynomial in F4 ... and so forth. Does anyone know of an algorithm that can do this.
Answer
If one expands (a+b)p with the binomial theorem and then reduces mod p one gets ap+bp, so inducting we have (a+b+⋯+c)p≡ap+bp+⋯+cp. Therefore in Fp[x],
(anxn+⋯+a1x+a0)p=(apn)xpn+⋯+(ap1)xp+(ap0)=anxpn+⋯+a1xp+a0
In other words, f(x)p=f(xp) in Fp[x]. So to extract f(x) from f(xp) all you have to do is divide the powers of x by p. You can generalize this to Fpe, although there you have to take pth roots of coefficients as well (since a↦ap is the identity on Fp but is a nontrivial automorphism on Fpe otherwise). Note that pr√a=ape−r within Fpe if you want to go down that path.
No comments:
Post a Comment