Math 2.0

definition

Quadratic residue

Definition

Let nn be a positive integer and let qq be an integer. Then qq is a quadratic residue modulo nn if there is an integer xx with x2≡q(modn)x^2 \equiv q \pmod n. Otherwise qq is a quadratic nonresidue modulo nn.

Remarks

Many texts also require gcd⁡(q,n)=1\gcd(q, n) = 1, and so they do not count 00 as a quadratic residue. Modulo 77, the squares of 1,…,61, \dots, 6 are 1,4,2,2,4,11, 4, 2, 2, 4, 1. So the nonzero quadratic residues modulo 77 are 11, 22 and 44. Modulo an odd prime pp, exactly (p−1)/2(p - 1)/2 of the classes 1,…,p−11, \dots, p - 1 are quadratic residues. The product of two quadratic residues is a quadratic residue.

Explanations

L1 human

A quadratic residue modulo nn is a number that is a perfect square in the arithmetic modulo nn. For example, 22 is not a square in the integers, but 32=9≡2(mod7)3^2 = 9 \equiv 2 \pmod 7. So 22 is a quadratic residue modulo 77.

What this node needs for W2
  • edge instance_of in: one example (0 of 1)
  • edge not_instance_of in: one non-example that fails one clause (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 3 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. Quadratic residue definition

What depends on this

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

Sources

  1. Web https://en.wikipedia.org/wiki/Quadratic_residue, History, conventions, and elementary facts