Quadratic residue

From Wikipedia, the free encyclopedia

(Redirected from Quadratic residues)
Jump to: navigation, search

In mathematics, a number q is called a quadratic residue modulo n if there exists an integer x such that:

{x^2}\equiv{q}\mbox{ (mod }n\mbox{)}.

Otherwise, q is called a quadratic non-residue. For example,  3^2 \equiv 2 \mbox{ (mod }7\mbox{)} , and thus 2 is a quadratic residue modulo 7. In effect, a quadratic residue modulo n is a number that has a square root in modular arithmetic when the modulus is n.

For odd prime moduli, roughly half of the residue classes are quadratic residue, and half are quadratic non-residue. More precisely, for a prime p > 2, there are

\frac{p-1}{2}

of each kind, excluding 0. Quadratic residues occur in a rather random pattern; this has been exploited in applications to acoustics and cryptography. Though it can be very difficult to extract square roots in modular arithmetic for large moduli, Gauss' theorem of quadratic reciprocity gives an algorithm to compute whether or not a given number is a quadratic residue modulo a prime.

Every number is a quadratic residue modulo p=2; thus the restriction to odd primes above is necessary.

Contents

The problem of finding a square root in modular arithmetic, in other words solving the above for x given q and n, can be a difficult problem. For general composite n, the problem is known to be equivalent to integer factorization of n (an efficient solution to either problem could be used to solve the other efficiently). On the other hand, if we want to know if there is a solution for x less than some given limit c, this problem is NP-complete (Adleman, Manders 1978); however, this is a fixed-parameter tractable problem, where c is the parameter.

The property that finding a square root of a large composite n is equivalent to factoring has been used for constructing cryptographic schemes: Rabin cryptosystem, Oblivious transfer.

Another property that is often used in cryptography is the following:

If n is an odd prime power and x1 and x2 are relatively prime to n then the product x1x2 is a quadratic residue modulo n, if and only if either both x1 and x2 are quadratic residues or both x1 and x2 are quadratic non-residues.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.