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

  • Thread starter Thread starter jostpuur
  • Start date Start date
AI Thread Summary
The discussion focuses on determining solutions for the equation y = x^2 mod N, where N is a fixed integer and y ranges from 0 to N-1. It notes that for small values of N, specific patterns in the existence of solutions can be observed, particularly highlighting that for N=5, solutions exist for y=0, 1, and 4, but not for 2 or 3. For prime N, an algorithm exists to find solutions, and it is mentioned that modulo 2, every integer is a quadratic residue. Additionally, the discussion references Euler's criterion as a method to check if a given k is a solution for prime p. The exploration of quadratic residues reveals complexities in identifying patterns across different moduli.
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:
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top