English

On Shanks' Algorithm for Modular Square Roots

Number Theory 2011-05-10 v1

Abstract

Let pp be a prime number, p=2nq+1p=2^nq+1, where qq is odd. D. Shanks described an algorithm to compute square roots (modp)\pmod{p} which needs O(logq+n2)O(\log q + n^2) modular multiplications. In this note we describe two modifications of this algorithm. The first needs only O(logq+n3/2)O(\log q + n^{3/2}) modular multiplications, while the second is a parallel algorithm which needs nn processors and takes O(logq+n)O(\log q+n) time.

Keywords

Cite

@article{arxiv.1105.1456,
  title  = {On Shanks' Algorithm for Modular Square Roots},
  author = {Jan-Christoph Schlage-Puchta},
  journal= {arXiv preprint arXiv:1105.1456},
  year   = {2011}
}
R2 v1 2026-06-21T18:04:05.731Z