On the degree of polynomials computing square roots mod p (2311.10956v2)
Abstract: For an odd prime $p$, we say $f(X) \in {\mathbb F}_p[X]$ computes square roots in $\mathbb F_p$ if, for all nonzero perfect squares $a \in \mathbb F_p$, we have $f(a)2 = a$. When $p \equiv 3 \mod 4$, it is well known that $f(X) = X{(p+1)/4}$ computes square roots. This degree is surprisingly low (and in fact lowest possible), since we have specified $(p-1)/2$ evaluations (up to sign) of the polynomial $f(X)$. On the other hand, for $p \equiv 1 \mod 4$ there was previously no nontrivial bound known on the lowest degree of a polynomial computing square roots in $\mathbb F_p$; it could have been anywhere between $\frac{p}{4}$ and $\frac{p}{2}$. We show that for all $p \equiv 1 \mod 4$, the degree of a polynomial computing square roots has degree at least $p/3$. Our main new ingredient is a general lemma which may be of independent interest: powers of a low degree polynomial cannot have too many consecutive zero coefficients. The proof method also yields a robust version: any polynomial that computes square roots for 99\% of the squares also has degree almost $p/3$. In the other direction, a result of Agou, Deligl\'ese, and Nicolas (Designs, Codes, and Cryptography, 2003) shows that for infinitely many $p \equiv 1 \mod 4$, the degree of a polynomial computing square roots can be as small as $3p/8$.
- Short polynomial representations for square roots modulo p. Designs, Codes and Cryptography, 28(1):33–44, 2003.
- Improved low-degree testing and its applications. In Proceedings of the twenty-ninth annual ACM symposium on Theory of computing, pages 485–495, 1997.
- András Biró. On polynomials over prime fields taking only two values on the multiplicative group. Finite Fields and Their Applications, 6(4):302–308, 2000.
- Algorithmic number theory: Efficient algorithms, volume 1. MIT press, 1996.
- NA Carella. Formulas for the square root modulo p. arXiv preprint arXiv:1101.4605, 2011.
- Polynomial representations for n-th roots in finite fields. Journal of the Korean Mathematical Society, 52(1):209–224, 2015.
- On polynomial approximation of the discrete logarithm and the diffie—hellman mapping. Journal of Cryptology, 13:339–360, 2000.
- Limits to list decoding reed-solomon codes. In Proceedings of the thirty-seventh annual ACM symposium on Theory of computing, pages 602–609, 2005.
- Improved decoding of reed-solomon and algebraic-geometric codes. In Proceedings 39th Annual Symposium on Foundations of Computer Science (Cat. No. 98CB36280), pages 28–37. IEEE, 1998.
- Erich Kaltofen. Effective noether irreducibility forms and applications. In Proceedings of the twenty-third annual ACM symposium on Theory of Computing, pages 54–63, 1991.
- Richard Clive Mason. Diophantine equations over function fields, volume 96. Cambridge University Press, 1984.
- A polynomial representation for logarithms in gf (q). Acta arithmetica, 3(47):255–261, 1986.
- Wolfgang M Schmidt. Equations over finite fields: an elementary approach, volume 536. Springer, 2006.
- Daniel Shanks. Five number-theoretic algorithms. In Proceedings of the Second Manitoba Conference on Numerical Mathematics (Winnipeg), 1973, 1973.
- Victor Shoup. A computational introduction to number theory and algebra. Cambridge university press, 2009.
- W Wilson Stothers. Polynomial identities and hauptmoduln. The Quarterly Journal of Mathematics, 32(3):349–370, 1981.
- Alberto Tonelli. Bemerkung über die auflösung quadratischer congruenzen. Nachrichten von der Königl. Gesellschaft der Wissenschaften und der Georg-Augusts-Universität zu Göttingen, 1891:344–346, 1891.
- Joachim Von Zur Gathen and Jürgen Gerhard. Modern computer algebra. Cambridge university press, 2013.
- Error correction for algebraic block codes. US patent, (4,633,470), 1983.
- Arne Winterhof. Polynomial interpolation of the discrete logarithm. Designs, Codes and Cryptography, 25(1):63–72, 2002.