Quadratic Residues: Explanation & Modulo Odd Prime Number

  • Thread starter moriheru
  • Start date
  • Tags
    Quadratic
In summary, the conversation discusses quadratic residues and their properties. The first line states that every integer has a solution to the congruence x^2 ≡ a (mod 2). The second line explains that for a prime number p, there are (p+1)/2 residues and (p-1)/2 nonresidues. An example using p = 7 is given, where the quadratic residues are 0, 1, 2, and 4, and the nonresidues are 3, 5, and 6. The conversation also references a proof for this on the first page of a document.
  • #1
moriheru
273
17
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
  • #2
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 [itex]x^2 \equiv a \text{ }\left( \text{mod } p \right)[/itex] 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 [itex]x^2 \equiv a \text{ }\left( \text{mod } 2 \right)[/itex]. 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 [itex]x^2 \equiv a \text{ }\left( \text{mod } p \right)[/itex] for p ≠ 2 has [itex]\frac{p+1}{2}[/itex] integer values of a for which that congruence holds, and [itex]\frac{p-1}{2}[/itex] 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 moriheru
  • #3
Thanks but how does one get to the p/2-1/2?
 
  • #4
There is a nice proof on the first page of this document -- see Proposition 1.2.
 
  • Like
Likes moriheru

Related to Quadratic Residues: Explanation & Modulo Odd Prime Number

1. What is a quadratic residue?

A quadratic residue is a number that can be expressed as the square of another number modulo a given odd prime number. In other words, it is a number that, when divided by a certain odd prime number, leaves a remainder that is a perfect square.

2. How are quadratic residues calculated?

To calculate a quadratic residue, you take a number and raise it to the power of (p-1)/2, where p is the given odd prime number. Then, you divide the result by p and take the remainder. If the remainder is a perfect square, then the original number is a quadratic residue modulo p.

3. What is the significance of quadratic residues?

Quadratic residues have many applications in number theory, particularly in cryptography. They are also used in the study of quadratic forms and in the construction of efficient algorithms. Additionally, they have connections to other areas of mathematics, such as elliptic curves and finite fields.

4. How are quadratic residues related to quadratic non-residues?

Quadratic residues and quadratic non-residues are two types of residues that are determined by the same odd prime number. A number is either a quadratic residue or a quadratic non-residue modulo a given odd prime, but it cannot be both. Quadratic non-residues are numbers that are not quadratic residues modulo a given odd prime.

5. Can all numbers be quadratic residues?

No, not all numbers are quadratic residues. In fact, for a given odd prime number p, there are exactly (p-1)/2 quadratic residues and (p-1)/2 quadratic non-residues. This is because every number has either a square root or a negative square root modulo p, but not both. Therefore, half of the numbers are quadratic residues and the other half are quadratic non-residues.

Similar threads

Replies
1
Views
825
Replies
5
Views
930
  • Precalculus Mathematics Homework Help
Replies
14
Views
1K
  • Precalculus Mathematics Homework Help
Replies
11
Views
1K
Replies
1
Views
2K
  • Precalculus Mathematics Homework Help
Replies
9
Views
1K
Replies
1
Views
2K
  • Precalculus Mathematics Homework Help
Replies
16
Views
2K
  • Precalculus Mathematics Homework Help
Replies
12
Views
1K
Back
Top