Share on Facebook Share on Twitter Email
Answers.com

Euler's criterion

 
Sci-Tech Dictionary: Euler's criterion
(′öi·lərz krī′tir·ē·ən)

(mathematics) A criterion for the congruencexn&tbnd;a (mod m) to have a solution, namely that aφ/d&tbnd;1 (mod m), where φ = φ(m) is Euler's phi function evaluated at m, and d is the greatest common divisor of φ and n.


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
Wikipedia: Euler's criterion
Top

In mathematics, Euler's criterion is used in determining in number theory whether a given integer is a quadratic residue modulo a prime.

Definition

Euler's criterion states:

Let p be an odd prime and a an integer coprime to p. Then a is a quadratic residue modulo p (i.e. there exists a number k such that k2a (mod p)) if and only if

a^{(p - 1) / 2} \equiv 1 \pmod p.

As a corollary of the theorem one gets:

If a is not a square (also called a quadratic non-residue) modulo p then

a^{(p - 1)/2} \equiv -1 \pmod p.

Euler's criterion can be concisely reformulated using the Legendre symbol:


\left(\frac{a}{p}\right) \equiv a^{(p-1)/2} \pmod p.

Proof of Euler's criterion

Every number either is or isn't a quadratic residue (mod p). Also, since the square-roots of 1 are 1 and −1 (mod p), and since ap−1 ≡ 1 (mod p) (Fermat's little theorem), a(p−1)/2 is either 1 or −1 (mod p). This immediately implies that the criterion are equivalent to the biimplication:

a is a quadratic residue modulo p if and only if a(p−1)/2 ≡ 1 (mod p).

We prove each direction separately.

(1) Assume a is a quadratic residue modulo p. We pick k such that k2a (mod p). Then

a(p−1)/2kp−1 ≡ 1 (mod p).

The first step is valid since ab (mod n) implies ambm(mod n) (see modular arithmetic#The congruence relation), while the second step is Fermat's little theorem again.

(2) Assume a(p − 1)/2 ≡ 1 (mod p). Then let α be a primitive root modulo p, so that a can be written as αi for some i. In particular, αi(p−1)/2 ≡ 1 (mod p). By Fermat's little theorem, p − 1 divides i(p − 1)/2, so i must be even. Let k ≡ αi/2 (mod p). We finally have k2 = αia (mod p).

Examples

Example 1: Finding primes for which a is a residue

Let a = 17. For which primes p is 17 a quadratic residue?

We can test prime p's manually given the formula above.

In one case, testing p = 3, we have 17(3 − 1)/2 = 171 ≡ 2 ≡ −1 (mod 3), therefore 17 is not a quadratic residue modulo 3.

In another case, testing p = 13, we have 17(13 − 1)/2 = 176 ≡ 1 (mod 13), therefore 17 is a quadratic residue modulo 13. As confirmation, note that 17 ≡ 4 (mod 13), and 22 = 4.

We can do these calculations faster by using various modular arithmetic and Legendre symbol properties.

If we keep calculating the values, we find:

(17/p) = +1 for p = {13, 19, ...} (17 is a quadratic residue modulo these values)
(17/p) = −1 for p = {3, 5, 7, 11, 23, ...} (17 is not a quadratic residue modulo these values).

Example 2: Finding residues given a prime modulus p

Which numbers are squares modulo 17 (quadratic residues modulo 17)?

We can manually calculate:

12 = 1
22 = 4
32 = 9
42 = 16
52 = 25 ≡ 8 (mod 17)
62 = 36 ≡ 2 (mod 17)
72 = 49 ≡ 15 (mod 17)
82 = 64 ≡ 13 (mod 17).

So the set of the quadratic residues modulo 17 is {1,2,4,8,9,13,15,16}. Note that we did not need to calculate squares for the values 9 through 16, as they are all negatives of the previously squared values (e.g. 9 ≡ −8 (mod 17), so 92 ≡ (−8)2 = 64 ≡ 13 (mod 17)).

We can find quadratic residues or verify them using the above formula. To test if 2 is a quadratic residue modulo 17, we calculate 2(17 − 1)/2 = 28 ≡ 1 (mod 17), so it is a quadratic residue. To test if 3 is a quadratic residue modulo 17, we calculate 3(17 − 1)/2 = 38 ≡ 16 ≡ −1 (mod 17), so it is not a quadratic residue.

Euler's criterion is related to the Law of quadratic reciprocity and is used in a definition of Euler-Jacobi pseudoprimes.


Best of the Web: Euler's criterion
Top

Some good "Euler's criterion" pages on the web:


Math
mathworld.wolfram.com
 
 
 
Learn More
Criterion
Pépin's test
Gauss's lemma (number theory)

What was Euler's address? Read answer...
What is Euler's motto? Read answer...
What is Euler's rule? Read answer...

Help us answer these
What is the plural criterion?
What is objective criterion?
What motto Euler have?

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

Sci-Tech Dictionary. McGraw-Hill Dictionary of Scientific and Technical Terms. Copyright © 2003, 1994, 1989, 1984, 1978, 1976, 1974 by McGraw-Hill Companies, Inc. All rights reserved.  Read more
Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Euler's criterion" Read more