![]() |
![]() |
#1 |
Apr 2010
19 Posts |
![]()
So, I'm trying to come up with an efficient algorithm for calculating the Legendre Symbol, which is defined as follows:
Legendre(a, p) where p is prime is 0 when a = 0 (mod p), 1 when a is a quadratic residue (mod p), and -1 when a is a quadratic nonresidue (mod p). I'm a little confused about quadratic residues and how to efficiently calculate them on a computer. I can calculate whether a number is a quadratic residue (mod a prime), but I'm struggling with implementing an algorithm to do this. Last fiddled with by Romulas on 2010-05-08 at 18:37 |
![]() |
![]() |
![]() |
#2 | |
"Bob Silverman"
Nov 2003
North of Boston
23×3×311 Posts |
![]() Quote:
"Euler's Criterion" and: "Quadratic Reciprocity" |
|
![]() |
![]() |
![]() |
#3 |
Noodles
"Mr. Tuch"
Dec 2007
Chennai, India
3×419 Posts |
![]() If i.e. 1 if p = 1 or 7 (mod 8), -1 if p = 3 or 5 (mod 8) i.e. |
![]() |
![]() |
![]() |
#4 |
Apr 2010
19 Posts |
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
question: decidability for quadratic residues modulo a composite | LaurV | Math | 18 | 2017-09-16 14:47 |
quadratic residues | zippy | Math | 6 | 2015-07-20 13:09 |
Fun with LL residues | NBtarheel_33 | Data | 19 | 2015-04-21 16:02 |
residues and non residues of general quadratic congruences | smslca | Math | 0 | 2012-10-12 06:42 |
weird residues | ATH | Data | 2 | 2012-08-14 02:25 |