{
  "aliases": [
    "quadratic-reciprocity"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "0YY06KP3ZQ"
    }
  ],
  "body": "\n## Statement\n\nLet $p$ and $q$ be distinct odd primes.\nThen\n$$\\left(\\frac{p}{q}\\right) \\left(\\frac{q}{p}\\right) = (-1)^{\\frac{p-1}{2} \\cdot \\frac{q-1}{2}},$$\nwhere the symbols are [[Legendre symbols|01J8AMV9RS]].\n\n## Remarks\n\nSo $\\left(\\frac{p}{q}\\right) = \\left(\\frac{q}{p}\\right)$ unless $p \\equiv q \\equiv 3 \\pmod 4$. In that case $\\left(\\frac{p}{q}\\right) = -\\left(\\frac{q}{p}\\right)$.\nFor example, $\\left(\\frac{7}{3}\\right) = \\left(\\frac{1}{3}\\right) = 1$, and $3 \\equiv 7 \\equiv 3 \\pmod 4$. So $\\left(\\frac{3}{7}\\right) = -1$.\nWith the [[first supplement|0PHBS78HKT]], the [[second supplement|0ZXW95S44M]] and [[multiplicativity|0NW1JP7TBR]], the law computes every Legendre symbol.\n\n## History\n\nEuler and Legendre conjectured the law.\nGauss first proved it in 1796, and he published proofs in his Disquisitiones Arithmeticae of 1801.\nGauss called it the fundamental theorem.\n\n## Explanations\n\n### L1 human\n\nThe law connects two questions: is $p$ a square modulo $q$, and is $q$ a square modulo $p$?\nThe answers are the same, except when both primes leave remainder $3$ on division by $4$. Then the answers are opposite.\nThis lets you swap and reduce the numbers, as in the [[Euclidean algorithm|0TRNT4X7J0]].\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "quadratic-reciprocity"
    ],
    "kind": "statement",
    "msc": [
      "11A15"
    ],
    "name": "Law of quadratic reciprocity",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q472883",
      "wikipedia": "Quadratic reciprocity"
    },
    "sources": [
      {
        "locator": "Statement of the theorem",
        "url": "https://en.wikipedia.org/wiki/Quadratic_reciprocity"
      },
      {
        "locator": "History and alternative statements",
        "url": "https://en.wikipedia.org/wiki/Quadratic_reciprocity"
      }
    ],
    "tag": "085MJS6907",
    "uses": [
      "01J8AMV9RS",
      "0PHBS78HKT",
      "0ZXW95S44M"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/085MJS6907/",
  "links": [
    {
      "field": "uses",
      "target": "01J8AMV9RS"
    },
    {
      "field": "uses",
      "target": "0PHBS78HKT"
    },
    {
      "field": "uses",
      "target": "0ZXW95S44M"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/085MJS6907.md",
  "msc": [
    "11A15"
  ],
  "name": "Law of quadratic reciprocity",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/085/085MJS6907.md",
  "status": null,
  "tag": "085MJS6907",
  "uri": "m2://085MJS6907",
  "url": "https://math2.tamnd.com/wiki/law-of-quadratic-reciprocity/",
  "writing": {
    "tag": "085MJS6907",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
