2020arXiv (Cornell University)Open access

A fast algorithm for finding square root modulo p

Rajeev Kumar

Open full text 0 citations

Abstract

We propose a novel algorithm for finding square roots modulo prime . Taking Square root modulo prime of 3(mod 4) type is known to be straightforward. However, for odd primes of 1(mod 4) type , finding square root remains non-trivial. Tonelli-Shanks algorithm remains the most widely used and probably the fastest when averaged over all primes. This paper proposes a novel approach for finding square roots modulo odd primes, which turns out to be much faster than existing Tonelli-Shanks algorithms. Apart from faster computation time, the proposed method does not require availability of non-residue and can work with 'relative non-residue' also. The relative non-residues are much easier to find ( probability 2/3) compared to non-residues ( probability 1/2).

About this research paper

What this paper is about

We propose a novel algorithm for finding square roots modulo prime . Taking Square root modulo prime of 3(mod 4) type is known to be straightforward. However, for odd primes of 1(mod 4) type , finding square root remains non-trivial. Tonelli-Shanks algorithm remains the most widely used and probably the fastest when averaged over all primes. This paper proposes a novel approach for finding square roots modulo odd primes, which turns out to be much faster than existing Tonelli-Shanks algorithms. Apart from faster computation time, the proposed method does not require availability of non-residue and can work with 'relative non-residue' also. The relative non-residues are much easier to find ( probability 2/3) compared to non-residues ( probability 1/2).

Why it matters

A significance statement is not available in the OpenAlex record.

Key contribution

A contribution statement is not available in the OpenAlex record.

Method / approach

Method details are not available in the OpenAlex metadata.

Main findings

Findings are not separately available in the OpenAlex metadata.

Limitations

Limitations are not available in the OpenAlex metadata.

Applications

Application details are not available in the OpenAlex metadata.

Available abstract

We propose a novel algorithm for finding square roots modulo prime . Taking Square root modulo prime of 3(mod 4) type is known to be straightforward. However, for odd primes of 1(mod 4) type , finding square root remains non-trivial. Tonelli-Shanks algorithm remains the most widely used and probably the fastest when averaged over all primes. This paper proposes a novel approach for finding square roots modulo odd primes, which turns out to be much faster than existing Tonelli-Shanks algorithms. Apart from faster computation time, the proposed method does not require availability of non-residue and can work with 'relative non-residue' also. The relative non-residues are much easier to find ( probability 2/3) compared to non-residues ( probability 1/2).

Key concepts: Modulo, Square root, Primitive root modulo n, Mathematics, Prime (order theory), Square (algebra), Root (linguistics), Computation

Related papers

Back to paper searchBrowse research topicsOriginal source
A fast algorithm for finding square root modulo p — Research Paper | ScholarLens