Math 2.0

statement corollary

−1 is a square modulo p if and only if p is not 3 modulo 4

Statement

Let pp be a prime number. There is an integer xx with x2≡−1(modp)x^2 \equiv -1 \pmod p if and only if p≢3(mod4)p \not\equiv 3 \pmod 4.

Remarks

For p=2p = 2, take x=1x = 1. For odd pp, the statement is the first supplement to quadratic reciprocity. For p≡1(mod4)p \equiv 1 \pmod 4, an explicit solution is x=(p−12)!x = \left(\frac{p-1}{2}\right)!, by Wilson's theorem. The statement is a step in the proof of Fermat's theorem on sums of two squares.

Explanations

L1 human

The primes 22, 55, 1313 and 1717 have a square root of −1-1: for example 52=25≡−1(mod13)5^2 = 25 \equiv -1 \pmod{13}. The primes 33, 77 and 1111 have none. The rule is that pp must not leave remainder 33 on division by 44.

What this node needs for W1
  • an inventory row: the row of the inventory that the node accounts for (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 9 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
  8. First supplement to quadratic reciprocity statement
  9. −1 is a square modulo p if and only if p is not 3 modulo 4 statement

What depends on this

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

Sources

  1. Web https://en.wikipedia.org/wiki/Quadratic_reciprocity, q = ±1 and the first supplement