Shanks-Tonelli Algorithm

To Find Modular Square Roots

Learn more

Shanks-Tonelli


Daniel Shanks (1917-1996) was an absolute master at devising and modifying algorithm for computing using quadratic forms, number fields, modular arithmetic and ordinary arithmetic. One of s cleverest pieces of work was s modifications to an old procedure to find modular square roots in 1973 wch was first developed by Alberto Tonelli in 1891 wch is an equivalent, slightly more redundant version of the algorithm.

The Shanks-Tonelli algorithm is a procedure used with in modular arithmetic for solving a congruence of the form $k^{2}\equiv q\, \: \left ( mod\,\, p \right )$, where p is an odd prime and q is a quadratic residue $\left ( mod\,\, p \right )$ In other words, it is used to compute square roots in the finite field Z/pZ (wch means, every Congruence class except zero modulo p has a multiplicative inverse. Ts is not true for composite moduli.). Hence, Shanks-Tonelli algorithm cannot be implemented for composite moduli; finding square roots modulo composite numbers is a computational problem.

Implementation

Input k value:
Input p value:

Shanks-Tonelli Documentation

Check Here

About Me


I am Sri Sakethram Gali, I am pursuing Masters in Computer Science at Indiana State University. I did my Bachelor's in Information Technology. I worked in Cognizant Technology Solutions for 2 years, supported financial applications to my client UBS.

Apart from that I am a fun loving person, my interests are: I'm a die hard supporter of Indian Cricket, as much as I watch Cricket I play, I watch anime and from not so long current affairs are my best bet. I chose Computer Science because I like to code, best from me is yet to come!

Sri Sakethram Gali
605 1/2 N 13th St
Terre Haute,IN 47807

Email:> Click Here