Euler's criterion

Euler's criterion

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 "k"2 ≡ "a" (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} ight) equiv a^{(p-1)/2} pmod p

Proof of Euler's criterion

The theorem consists of two statements connected with a biimplication:

A: "a" is a quadratic residue modulo "p"

B: "a"("p" − 1)/2 ≡ 1 (mod p)

To establish the biimplication one needs to show (1) that A implies B , and (2) that B implies A:

(1) assume "a" is a quadratic residue modulo "p". We find "k" such that "k"2 ≡ "a" (mod "p").

Then the following rule is used: if "a" ≡ "b" (mod "n") then "a""m" ≡ "b""m"(mod "n"). One can then write: ("k"2)(p-1)/2 ≡ a (p-1)/2(mod "p"). Reducing the left side gives: "k""p" − 1 ≡ a (p-1)/2(mod "p") (*).

Because p is prime one can by Fermat's little theorem write: "k""p" − 1 ≡ 1 (mod "p") (**).

(*) and (**) taken together then gives:"a"("p" − 1)/2 ≡ 1 (mod p)

(2) assume "a"("p" − 1)/2 ≡ 1 (mod "p"). Then let α be a primitive element modulo "p", that is to say "a" can be written as α"i" for some "i". So 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 "k"2 = α"i" ≡ "a" (mod "p").

The biimplication is now established, thereby proving the theorem.

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 (mod 3) ≡ -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.


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Criterion — may refer to: Criterion, general meaning In science and mathematics: Criterion validity, in psychometrics, a measure of how well one variable or set of variables predicts an outcome Criterion referenced test, translates a test score into a… …   Wikipedia

  • List of topics named after Leonhard Euler — In mathematics and physics, there are a large number of topics named in honour of Leonhard Euler (pronounced Oiler ). As well, many of these topics include their own unique function, equation, formula, identity, number (single or sequence), or… …   Wikipedia

  • Critère d'Euler — En mathématiques et plus précisément en arithmétique modulaire, le critère d Euler est utilisé en théorie des nombres pour déterminer si un entier donné est un résidu quadratique modulo un nombre premier. Définition Considérons un nombre premier… …   Wikipédia en Français

  • List of mathematics articles (E) — NOTOC E E₇ E (mathematical constant) E function E₈ lattice E₈ manifold E∞ operad E7½ E8 investigation tool Earley parser Early stopping Earnshaw s theorem Earth mover s distance East Journal on Approximations Eastern Arabic numerals Easton s… …   Wikipedia

  • Quadratic residue — In number theory, an integer q is called a quadratic residue modulo n if it is congruent to a perfect square modulo n; i.e., if there exists an integer x such that: Otherwise, q is called a quadratic nonresidue modulo n. Originally an abstract… …   Wikipedia

  • Jacobi symbol — The Jacobi symbol is a generalization of the Legendre symbol introduced by Jacobi in 1837 [C.G.J.Jacobi Uber die Kreisteilung und ihre Anwendung auf die Zahlentheorie , Bericht Ak. Wiss. Berlin (1837) pp 127 136] . It is of theoretical interest… …   Wikipedia

  • Cipolla's algorithm — In computational number theory, Cipolla s algorithm is a technique for solving a congruence of the form x2 = n, where , so n is the square of x, and where p is an odd prime. Here denotes the finite field with p elements; . Th …   Wikipedia

  • Gauss's lemma (number theory) — This article is about Gauss s lemma in number theory. Gauss s lemma (polynomial) concerns factoring polynomials. Gauss s lemma in number theory gives a condition for an integer to be a quadratic residue. Although it is not useful computationally …   Wikipedia

  • List of number theory topics — This is a list of number theory topics, by Wikipedia page. See also List of recreational number theory topics Topics in cryptography Contents 1 Factors 2 Fractions 3 Modular arithmetic …   Wikipedia

  • Quadratic reciprocity — The law of quadratic reciprocity is a theorem from modular arithmetic, a branch of number theory, which shows a remarkable relationship between the solvability of certain quadratic equations modulo different prime moduli.Although it allows us to… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”