What Determines the Existence of Solutions for Quadratic Residues Modulo N?

  • Context: Undergrad 
  • Thread starter Thread starter jostpuur
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on determining the existence of solutions for the equation y = x² mod N, where N is a positive integer. It highlights that for N=5, solutions exist for y=0, 1, and 4, but not for y=2 or 3. The conversation emphasizes that for prime N, there is a specific algorithm to identify quadratic residues, and mentions Euler's criterion as a method to verify if a given k is a solution for k ≡ x² mod p, where p is prime.

PREREQUISITES
  • Understanding of quadratic residues and nonresidues
  • Familiarity with modular arithmetic
  • Knowledge of Euler's criterion for quadratic residues
  • Basic concepts of prime numbers and their properties
NEXT STEPS
  • Study algorithms for finding quadratic residues for prime numbers
  • Explore the implications of Euler's criterion in number theory
  • Investigate the behavior of quadratic residues modulo composite numbers
  • Learn about the properties of quadratic residues in different mathematical contexts
USEFUL FOR

Mathematicians, number theorists, and students studying modular arithmetic and quadratic residues will benefit from this discussion.

jostpuur
Messages
2,112
Reaction score
19
Suppose N=1,2,3,\ldots and y=0,1,2,\ldots, N-1 are fixed. How do solve x out of

<br /> y=x^2\quad \textrm{mod}\quad N ?<br />

I went through some of the smallest values for N and all y, and I could not see a pattern. For example, if N=5, then at least one [x] exists if [y]=[0],[1] or [4], but no solution [x] exists if [y]=[2] or [3]. You can produce similar result for other small N with finite amount of work, but I failed to see a pattern that I could try to generalize.
 
Mathematics news on Phys.org
For prime N, there is an algorithm. The article also has a link for the other cases.
 
You're talking about quadratic residues.
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. In this case, it is customary to consider 0 as a special case

Edit to add: If you just want to determine whether a given k is a solution to ##k \equiv x^2 \text{ mod } p##, for ##p## prime, you can use Euler's criterion: ##k^\frac{p-1}{2} \equiv 1 \text{ mod } p##
 
Last edited:

Similar threads

  • · Replies 0 ·
Replies
0
Views
475
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K