What are the Quadratic Residues Modulo p?

  • Thread starter knowLittle
  • Start date
  • Tags
    Quadratic
In summary, the conversation discusses the concept of quadratic residues and how to show that there are exactly (p-1)/2 quadratic residues modulo p. The main argument is that if |c| < p and p divides c, then c must be 0. Using this, it is proven that p does not divide b1-b2 or b1+b2 unless b1=b2. This leads to the conclusion that there are exactly (p-1)/2 quadratic residues modulo p.
  • #1
knowLittle
312
3

Homework Statement


Let p be an odd prime. A number ##a\in \mathbb{Z} _{p}^{\ast }## is a quadratic residue if the equation ##x^{2}=a\left( \mod p\right)## has a solution for the unknown x.

a. Show that there are exactly (p-1)/2 = quadratic residues, modulo p.

The Attempt at a Solution


I have access to the "proof", but I have some questions that need clarification:

Suppose that b1 and b2 are numbers between 1 and (p - 1)/2 , and suppose that
##b_{1}^{2}\equiv b_{2}^{2}(mod p) ## We want to show that b1 = b2. The fact that ##b_{1}^{2}\equiv b_{2}^{2}(modp)## means that p divides ##\left( b_{1}^{2}-b_{2}^{2}\right) =\left( b_{1}-b_{2}\right) \left( b_{1}+b_{2}\right)##
OR that ##\left( b_{1}^{2}-b_{2}^{2}\right) =\left( b_{1}-b_{2}\right) \left( b_{1}+b_{2}\right)## = p. k, where k is an integer.

However, b1+b2 is between 2 and p-1, so it can't be divisible by p.
Thus, p must divide b1-b2. But, |b1-b2| < (p-1)/2, so the only way for b1-b2 to be divisible by p is to have b1=b2.
QUESTION: p represents an odd prime. Primes can only be divisible by 1 or itself.
By stating that |b1-b2|< (p-1)/2 and that b1=b2, they try to explain that the b1 and b2 is not 0, but it's just the same number. Does it mean that b1=b2 has to be 1?
Or, is it saying that it's impossible that p divides b1^(2) - b2^(2) given b1≠b2 ?


This shows that ##1^{2},2^{2},\ldots ,\left( \dfrac {p-1} {2}\right) ^{2}## are all different modulo p, so there are exactly (p-1) /2 quadratic residues modulo p.


Thank you.
 
Physics news on Phys.org
  • #2
knowLittle said:

Homework Statement


Let p be an odd prime. A number ##a\in \mathbb{Z} _{p}^{\ast }## is a quadratic residue if the equation ##x^{2}=a\left( \mod p\right)## has a solution for the unknown x.

a. Show that there are exactly (p-1)/2 = quadratic residues, modulo p.

The Attempt at a Solution


I have access to the "proof", but I have some questions that need clarification:

Suppose that b1 and b2 are numbers between 1 and (p - 1)/2 , and suppose that
##b_{1}^{2}\equiv b_{2}^{2}(mod p) ## We want to show that b1 = b2. The fact that ##b_{1}^{2}\equiv b_{2}^{2}(modp)## means that p divides ##\left( b_{1}^{2}-b_{2}^{2}\right) =\left( b_{1}-b_{2}\right) \left( b_{1}+b_{2}\right)##
OR that ##\left( b_{1}^{2}-b_{2}^{2}\right) =\left( b_{1}-b_{2}\right) \left( b_{1}+b_{2}\right)## = p. k, where k is an integer.

However, b1+b2 is between 2 and p-1, so it can't be divisible by p.
Thus, p must divide b1-b2. But, |b1-b2| < (p-1)/2, so the only way for b1-b2 to be divisible by p is to have b1=b2.
QUESTION: p represents an odd prime. Primes can only be divisible by 1 or itself.
By stating that |b1-b2|< (p-1)/2 and that b1=b2, they try to explain that the b1 and b2 is not 0, but it's just the same number. Does it mean that b1=b2 has to be 1?
Or, is it saying that it's impossible that p divides b1^(2) - b2^(2) given b1≠b2 ?


This shows that ##1^{2},2^{2},\ldots ,\left( \dfrac {p-1} {2}\right) ^{2}## are all different modulo p, so there are exactly (p-1) /2 quadratic residues modulo p.


Thank you.

They are trying to argue that b1 must equal b2. b1-b2=1 doesn't work. p has to divide b1-b2, not b1-b2 divide p.
 
  • #3
Dick said:
They are trying to argue that b1 must equal b2. b1-b2=1 doesn't work. p has to divide b1-b2, not b1-b2 divide p.

I didn't say that b1-b2=1, I meant that b1=b2=1.
So, supposedly since p|(b1-b2); b1-b2= kp, where k is an integer. Are they saying that it's impossible p | (b1-b2) , unless b1=b2 or in other words that p|0 or 0= pk, where k is any integer and in this case k=0?
Or are they saying that it's impossible to have two different numbers b1, b2 such that p| (b1-b2)?
 
  • #4
knowLittle said:
By stating that |b1-b2|< (p-1)/2 and that b1=b2, they try to explain that the b1 and b2 is not 0, but it's just the same number. Does it mean that b1=b2 has to be 1?
The argument is that if |c| < p and p divides c then c must be 0. Substituting c = b1-b2 shows p does not divide b1-b2 unless b1=b2, and substituting c = b1+b2 shows p does not divide that either.
 
  • #5
knowLittle said:
I didn't say that b1-b2=1, I meant that b1=b2=1.
So, supposedly since p|(b1-b2); b1-b2= kp, where k is an integer. Are they saying that it's impossible p | (b1-b2) , unless b1=b2 or in other words that p|0 or 0= pk, where k is any integer and in this case k=0?
Or are they saying that it's impossible to have two different numbers b1, b2 such that p| (b1-b2)?

Yes, it's impossible because |b1-b2|<(p-1)/2. The only way it can be divisible by p is if b1-b2=0 so b1=b2.
 
  • #6
Dick said:
Yes, it's impossible because |b1-b2|<(p-1)/2. The only way it can be divisible by p is if b1-b2=0 so b1=b2.

Thank you!
 

What are quadratic residues modulo p?

Quadratic residues modulo p refer to the remainders obtained when a number is squared and divided by a prime number p. It is a fundamental concept in number theory, with applications in cryptography and other areas of mathematics.

What is a primitive root modulo p?

A primitive root modulo p is an integer that, when raised to certain powers, generates all the possible nonzero remainders modulo p. In other words, it is a number whose powers cycle through all the quadratic residues modulo p.

How do you find quadratic residues modulo p?

To find quadratic residues modulo p, you can use the quadratic residue symbol, which is denoted by the legendre symbol (a/p), where a is the integer and p is the prime number. The result of this symbol will be either 1 or -1, indicating whether a is a quadratic residue modulo p or not.

What is the difference between quadratic residues and quadratic non-residues modulo p?

Quadratic residues modulo p are the remainders obtained when a number is squared and divided by a prime number p, while quadratic non-residues modulo p are the remaining integers that are not quadratic residues. In other words, quadratic non-residues are the numbers that do not have a square root modulo p.

What are the applications of quadratic residues modulo p?

The concept of quadratic residues modulo p has various applications in mathematics and computer science. It is used in cryptography for secure communication and in primality testing algorithms. It also has applications in coding theory, error-correcting codes, and in the study of elliptic curves.

Similar threads

  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
30
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
2K
  • Calculus and Beyond Homework Help
Replies
15
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
735
  • Linear and Abstract Algebra
Replies
1
Views
917
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
Replies
1
Views
789
  • Precalculus Mathematics Homework Help
Replies
14
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
Back
Top