{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "037ACYXB5Z"
    },
    {
      "field": "uses",
      "target": "085MJS6907"
    },
    {
      "field": "uses",
      "target": "0M7DEDKSYB"
    },
    {
      "field": "uses",
      "target": "0NW1JP7TBR"
    },
    {
      "field": "uses",
      "target": "0PHBS78HKT"
    },
    {
      "field": "uses",
      "target": "0XDB5AW7M1"
    },
    {
      "field": "uses",
      "target": "0XSDBCP4RZ"
    },
    {
      "field": "uses",
      "target": "0ZXW95S44M"
    }
  ],
  "body": "\n## Definition\n\nLet $p$ be an odd [[prime number|0SN0MAEKYX]] and let $a$ be an integer.\nThe Legendre symbol $\\left(\\frac{a}{p}\\right)$ is the number\n$$\\left(\\frac{a}{p}\\right) = \\begin{cases} 0 \u0026 \\text{if } p \\mid a, \\\\ 1 \u0026 \\text{if } p \\nmid a \\text{ and } a \\text{ is a quadratic residue modulo } p, \\\\ -1 \u0026 \\text{if } a \\text{ is a quadratic nonresidue modulo } p. \\end{cases}$$\nHere quadratic residue has the meaning of the [[definition of a quadratic residue|0SQDB87Z3T]].\n\n## Remarks\n\nThe value depends only on the class of $a$ modulo $p$.\nFor example, $\\left(\\frac{2}{7}\\right) = 1$ because $3^2 \\equiv 2 \\pmod 7$, and $\\left(\\frac{3}{7}\\right) = -1$.\n[[Euler's criterion|0M7DEDKSYB]] gives the value as $a^{(p-1)/2}$ modulo $p$.\nThe [[law of quadratic reciprocity|085MJS6907]] helps to compute the symbol quickly.\n\n## Explanations\n\n### L1 human\n\nThe Legendre symbol is a short way to say whether $a$ is a square modulo $p$.\nThe value $1$ means yes, the value $-1$ means no, and the value $0$ means that $a$ is $0$ modulo $p$.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "defines": "0JTC045NNZ",
    "kind": "definition",
    "msc": [
      "11A15"
    ],
    "name": "Legendre symbol",
    "sources": [
      {
        "locator": "Definition",
        "url": "https://en.wikipedia.org/wiki/Legendre_symbol"
      }
    ],
    "tag": "01J8AMV9RS",
    "uses": [
      "0SQDB87Z3T",
      "0SN0MAEKYX"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/01J8AMV9RS/",
  "links": [
    {
      "field": "defines",
      "target": "0JTC045NNZ"
    },
    {
      "field": "uses",
      "target": "0SQDB87Z3T"
    },
    {
      "field": "uses",
      "target": "0SN0MAEKYX"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/01J8AMV9RS.md",
  "msc": [
    "11A15"
  ],
  "name": "Legendre symbol",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/01J/01J8AMV9RS.md",
  "status": null,
  "tag": "01J8AMV9RS",
  "uri": "m2://01J8AMV9RS",
  "url": "https://math2.tamnd.com/wiki/legendre-symbol-definition/",
  "writing": {
    "tag": "01J8AMV9RS",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
