Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Quadratic residue
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Law of quadratic reciprocity=== {{Main|quadratic reciprocity}} If ''p'' and ''q'' are odd primes, then: ((''p'' is a quadratic residue mod ''q'') if and only if (''q'' is a quadratic residue mod ''p'')) if and only if (at least one of ''p'' and ''q'' is congruent to 1 mod 4). That is: :<math> \left(\frac{p}{q}\right) \left(\frac{q}{p}\right) = (-1)^{\frac{p-1}{2} \cdot \frac{q-1}{2}}</math> where <math>\left(\frac{p}{q}\right)</math> is the [[Legendre symbol]]. Thus, for numbers ''a'' and odd primes ''p'' that don't divide ''a'': {|class="wikitable" !''a'' !''a'' is a quadratic residue mod ''p'' if and only if !''a'' !''a'' is a quadratic residue mod ''p'' if and only if |- |1 |(every prime ''p'') |β1 |''p'' β‘ 1 (mod 4) |- |2 |''p'' β‘ 1, 7 (mod 8) |β2 |''p'' β‘ 1, 3 (mod 8) |- |3 |''p'' β‘ 1, 11 (mod 12) |β3 |''p'' β‘ 1 (mod 3) |- |4 |(every prime ''p'') |β4 |''p'' β‘ 1 (mod 4) |- |5 |''p'' β‘ 1, 4 (mod 5) |β5 |''p'' β‘ 1, 3, 7, 9 (mod 20) |- |6 |''p'' β‘ 1, 5, 19, 23 (mod 24) |β6 |''p'' β‘ 1, 5, 7, 11 (mod 24) |- |7 |''p'' β‘ 1, 3, 9, 19, 25, 27 (mod 28) |β7 |''p'' β‘ 1, 2, 4 (mod 7) |- |8 |''p'' β‘ 1, 7 (mod 8) |β8 |''p'' β‘ 1, 3 (mod 8) |- |9 |(every prime ''p'') |β9 |''p'' β‘ 1 (mod 4) |- |10 |''p'' β‘ 1, 3, 9, 13, 27, 31, 37, 39 (mod 40) |β10 |''p'' β‘ 1, 7, 9, 11, 13, 19, 23, 37 (mod 40) |- |11 |''p'' β‘ 1, 5, 7, 9, 19, 25, 35, 37, 39, 43 (mod 44) |β11 |''p'' β‘ 1, 3, 4, 5, 9 (mod 11) |- |12 |''p'' β‘ 1, 11 (mod 12) |β12 |''p'' β‘ 1 (mod 3) |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)