Math 2.0

statement theorem

Euler's criterion

Statement

Let pp be an odd prime and let aa be an integer. Then a(p−1)/2≡(ap)(modp),a^{(p-1)/2} \equiv \left(\frac{a}{p}\right) \pmod p, where (ap)\left(\frac{a}{p}\right) is the Legendre symbol.

Remarks

So for p∤ap \nmid a, the integer aa is a quadratic residue modulo pp if and only if a(p−1)/2≡1(modp)a^{(p-1)/2} \equiv 1 \pmod p. For example, 33=27≡−1(mod7)3^3 = 27 \equiv -1 \pmod 7, so 33 is a quadratic nonresidue modulo 77. The proof uses Fermat's little theorem: x=a(p−1)/2x = a^{(p-1)/2} satisfies x2≡1x^2 \equiv 1, so x≡±1(modp)x \equiv \pm 1 \pmod p. A consequence is the multiplicativity of the Legendre symbol.

History

Leonhard Euler found the criterion.

Explanations

L1 human

To test whether aa is a square modulo pp, raise aa to the power (p−1)/2(p-1)/2. The result is 11 for a square and −1-1 for a non-square, modulo pp. With fast modular exponentiation, this test is quick even for large pp.

What this node needs for W2
  • edge about out: the concepts that the statement is about (0 of 1)
  • edge proves in: at least one proof node (0 of 1)
  • edge instance_of or illustrates in: one example that shows the statement at work (0 of 1)
  • explanation L2 (0 of 1)

The writing levels say how complete the text of a node is. They do not measure its truth.

What this needs

To read this node, read these 7 nodes in this order. The foundations come first, and the list ends with this node.

Each node uses the nodes above it. The colour of the bar on a box shows the evidence level, and the box also gives it as text. The list below has the same nodes.
  • no evidence level
  1. Divisibility definition
  2. Congruence modulo n definition
  3. Prime number definition
  4. Quadratic residue definition
  5. Fermat's little theorem statement
  6. Legendre symbol definition
  7. Euler's criterion statement

What depends on this

8 nodes use this node, directly or through other nodes.

Sources

  1. Web https://en.wikipedia.org/wiki/Euler%27s_criterion, lead section