What is the sum of quadratic residues in $\Bbb Z/p\Bbb Z$ for a prime $p > 3$?

  • MHB
  • Thread starter Euge
  • Start date
  • Tags
    2016
In summary, quadratic residues in $\Bbb Z/p\Bbb Z$ are numbers that, when squared, give a remainder of 1 when divided by a prime number $p$. The sum of these residues is equal to $\frac{p(p+1)}{6}$, known as Gauss's formula. This sum is directly related to the prime number $p$ and cannot be negative. It has many applications in number theory and cryptography, making it a fundamental concept in modular arithmetic.
  • #1
Euge
Gold Member
MHB
POTW Director
2,073
244
Here is this week's POTW:

-----
Let $p$ be a prime greater than $3$. Compute the sum of the quadratic residues in $\Bbb Z/p\Bbb Z$.

-----

Remember to read the http://www.mathhelpboards.com/showthread.php?772-Problem-of-the-Week-%28POTW%29-Procedure-and-Guidelines to find out how to http://www.mathhelpboards.com/forms.php?do=form&fid=2!
 
Physics news on Phys.org
  • #2
Opalg submitted a correct solution to the problem, although he admits it comes from another. :) Here is the solution.
Since $a^2 = (p-a)^2$ in $\mathbb{Z}/p\mathbb{Z}$, the quadratic residues are the squares of the elements in the "first half" of $\mathbb{Z}/p\mathbb{Z}$, namely the elements $1^2, 2^2,\ldots, k^2$, where $k = \frac12(p-1).$ Their sum is therefore $$\sum_{r=1}^k r^2 = \tfrac16k(k+1)(2k+1) = \tfrac1{24}(p-1)(p+1)p.$$ Since $p>3$, and the only prime factors of $24$ are $2$ and $3$, it follows that this sum is a multiple of $p$ and is therefore the zero element of $\mathbb{Z}/p\mathbb{Z}.$
 

FAQ: What is the sum of quadratic residues in $\Bbb Z/p\Bbb Z$ for a prime $p > 3$?

What are quadratic residues in $\Bbb Z/p\Bbb Z$ for a prime $p > 3$?

Quadratic residues in $\Bbb Z/p\Bbb Z$ are the set of numbers that, when squared, give a remainder of 1 when divided by the prime number $p$. In other words, they are the non-zero solutions to the equation $x^2 \equiv 1 \pmod{p}$.

What is the sum of quadratic residues in $\Bbb Z/p\Bbb Z$ for a prime $p > 3$?

The sum of quadratic residues in $\Bbb Z/p\Bbb Z$ for a prime $p > 3$ is equal to $\frac{p(p+1)}{6}$. This is known as Gauss's formula and can be proven using number theory and properties of quadratic residues.

How is the sum of quadratic residues related to the prime number $p$?

The sum of quadratic residues in $\Bbb Z/p\Bbb Z$ is directly related to the prime number $p$. In fact, the sum can be written as a polynomial in terms of $p$ with a degree of 2. This polynomial is $p^2 + p - 6$. Therefore, as $p$ increases, the sum of quadratic residues also increases.

Can the sum of quadratic residues be negative?

No, the sum of quadratic residues in $\Bbb Z/p\Bbb Z$ cannot be negative. This is because all quadratic residues in $\Bbb Z/p\Bbb Z$ are positive numbers, and the sum of positive numbers cannot be negative.

How is the sum of quadratic residues useful in mathematics?

The sum of quadratic residues has many applications in number theory and cryptography. It is used in the study of prime numbers and can also be used in the design of secure encryption algorithms. In fact, the sum of quadratic residues is one of the fundamental concepts in the field of modular arithmetic.

Back
Top