Quadratic Residues: Explanation & Modulo Odd Prime Number

  • Context: Undergrad 
  • Thread starter Thread starter moriheru
  • Start date Start date
  • Tags Tags
    Quadratic
Click For Summary

Discussion Overview

The discussion revolves around the concept of quadratic residues, particularly in the context of modulo operations with odd prime numbers. Participants seek clarification on specific statements regarding the number of quadratic residues and non-residues modulo an odd prime.

Discussion Character

  • Conceptual clarification
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants explain that an integer is a quadratic residue modulo p if it can be expressed as a square modulo p, referencing the definition from Wikipedia.
  • One participant notes that every integer is a quadratic residue modulo 2, providing reasoning based on the possible values of integers modulo 2.
  • Another participant elaborates that for an odd prime p, there are (p + 1)/2 quadratic residues and (p - 1)/2 non-residues, using the example of p = 7 to illustrate the concept.
  • A participant requests further clarification on how the numbers of residues and non-residues are derived, indicating a need for deeper understanding of the proof behind these claims.
  • One participant suggests that a proof can be found in a referenced document, pointing to a specific proposition for further exploration.

Areas of Agreement / Disagreement

Participants generally agree on the definitions and examples provided regarding quadratic residues and non-residues, but there remains uncertainty about the derivation of the specific counts of residues and non-residues.

Contextual Notes

The discussion does not resolve the derivation of the (p + 1)/2 and (p - 1)/2 counts, leaving it open for further exploration and clarification.

moriheru
Messages
273
Reaction score
16
This may be a bit vague but can anyone explain this sentence to me
http://en.wikipedia.org/wiki/Quadratic_residue:"Modulo 2, every integer is a quadratic residue.

Modulo an odd prime number p there are (p + 1)/2 residues (including 0) and (p − 1)/2 nonresidues."

If this is to vague I apologize.
 
Mathematics news on Phys.org
As in the link above, an integer a is a quadratic residue modulo p if it's congruent to a square mod p. In other words, the congruence x^2 \equiv a \text{ }\left( \text{mod } p \right) has a solution. Some like to add that a needs to be invertible, since 0 is trivially a quadratic residue. The first line says that every integer a satisfies the congruence x^2 \equiv a \text{ }\left( \text{mod } 2 \right). This isn't surprising: if a is 0 or 1 modulo 2, there will always be a solution (just take x to be 0 or 1 respectively).

The second line is saying that the congruence x^2 \equiv a \text{ }\left( \text{mod } p \right) for p ≠ 2 has \frac{p+1}{2} integer values of a for which that congruence holds, and \frac{p-1}{2} integer values of a for which it doesn't.

For example, take p = 7. The squares mod 7 are 0, 1, 2, 4, so the quadratic residues mod 7 are 0, 1, 2 and 4. The quadratic non-residues are 3, 5 and 6, because you can't find an integer that squares to give 3, 5 or 6, modulo 7.
 
  • Like
Likes   Reactions: moriheru
Thanks but how does one get to the p/2-1/2?
 
There is a nice proof on the first page of this document -- see Proposition 1.2.
 
  • Like
Likes   Reactions: moriheru

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
6K
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
926
  • · Replies 1 ·
Replies
1
Views
2K