English

The Structure and Degrees of Polynomials Computing Square Roots $\mod p$

Number Theory 2025-12-01 v1

Abstract

For an odd prime pp, we say a polynomial fFp[X]f\in \mathbb F_p[X] computes square roots if f(a)2=af(a)^2=a for all nonzero, perfect squares aFpa\in \mathbb F_p. When p3mod4p\equiv 3 \mod 4, it is easy to see that f(X)=Xp+14f(X)=X^{\frac{p+1}{4}} is the smallest such polynomial. For p1mod4p\equiv 1 \mod 4, the situation is less clear. Tonelli-Shanks offers an algorithm for constructing polynomials that compute square roots, but the question of whether their degree is minimal remains. In this paper, we study the various degrees and structures of polynomials computing square roots.

Keywords

Cite

@article{arxiv.2511.22881,
  title  = {The Structure and Degrees of Polynomials Computing Square Roots $\mod p$},
  author = {Foivos Chnaras and Noah Kupinsky},
  journal= {arXiv preprint arXiv:2511.22881},
  year   = {2025}
}
R2 v1 2026-07-01T07:58:48.239Z