Jump to content

Talk:Tonelli–Shanks algorithm

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Endo999 (talk | contribs) at 17:37, 18 February 2018 (dickson's work on tonelli says the algorithm will work on mod p^k: improve reference). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconMathematics Start‑class Low‑priority
WikiProject iconThis article is within the scope of WikiProject Mathematics, a collaborative effort to improve the coverage of mathematics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
StartThis article has been rated as Start-class on Wikipedia's content assessment scale.
LowThis article has been rated as Low-priority on the project's priority scale.

the case where p = 3 mod 4

It is written that in the special case where p equals 3 modulo 4, then the solution is simply:

I don't get why. Is it supposed to be obvious? --Grondilu (talk) 14:01, 20 June 2012 (UTC)[reply]

Yes. Square it, and apply Euler's criterion.—Emil J. 14:41, 20 June 2012 (UTC)[reply]

alberto tonelli needs enwiki biop (from itwiki)

Alberto Tonelli needs a enwiki translation. He has an article on the itwiki, a small one that doesn't mention he first came up with the important Tonelli-Shanks modular square root algorithm. There are three algorithms to take a modular square root and Tonelli's is as good as any of them. It's actually a rather important algorithm, since public key cryptography uses modular arithmetic. Endo999 (talk) 02:13, 28 August 2017 (UTC)[reply]

dickson's work on tonelli says the algorithm will work on mod p^k

I'm not a professional mathematician but I just read Dickson's "History of Numbers" [1] where it says on page 215-216 that

A. Tonelli[2] gave an explicit formula for the roots of

Perhaps some mathematician should work out if the Tonelli algorithm takes modular square roots for powers of primes as well as for primes This Wiki article says the algorithm only works for prime modula.

After reading the Dickson text a couple of times on p215,216 I came across this formula for the square root of .

when , or and
for then
where

Noting that and noting that then

So Tonelli's math does seem to take modular square roots of prime powers! Endo999 (talk) 03:17, 2 September 2017 (UTC)[reply]

Here's another equation: and

Endo999 (talk) 06:36, 30 August 2017 (UTC)[reply]

On page 215-216 of the Dickson book, the equation is given of Tonelli's:

where and ;

Using and using the modulus of the math follows (in mathematica):

Mod[1115^2, 23 23 23]=2191
 
Mod[1115^2, 23]=6
PowerMod[6, 1/2, 23]=11

Mod[11^(23 23) 2191^((23 23 23 - 2 23 23 + 1)/2), 23 23 23] =1115

Thus Tonelli's work can work for a 3 mod 4 prime power. Endo999 (talk) 20:23, 11 September 2017 (UTC)[reply]

The algorithm makes no sense at all when

I suppose that should rather read ? And the introductory sentence is more than confusing as well. The "multiplicative group" would perhaps be , and of course all operations and comparisons in that ring are modulo . --Hagman (talk) 09:09, 10 February 2018 (UTC)[reply]

  1. ^ "History of the Theory of Numbers" Volume 1 by Leonard Eugene Dickson, p215-216 read online
  2. ^ "AttiR. Accad. Lincei, Rendiconti, (5), 1, 1892, 116-120."