{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0YY06KP3ZQ"
    }
  ],
  "body": "\n## Definition\n\nLet $n$ be a positive odd integer with [[prime factorization|0AEKDFCYFA]] $n = p_1^{e_1} \\cdots p_k^{e_k}$, and let $a$ be an integer.\nThe Jacobi symbol is\n$$\\left(\\frac{a}{n}\\right) = \\left(\\frac{a}{p_1}\\right)^{e_1} \\cdots \\left(\\frac{a}{p_k}\\right)^{e_k},$$\nwhere each factor on the right is a [[Legendre symbol|01J8AMV9RS]].\nFor $n = 1$, the empty product gives $\\left(\\frac{a}{1}\\right) = 1$.\n\n## Remarks\n\nFor a prime $n$, the Jacobi symbol equals the Legendre symbol.\nIf $\\left(\\frac{a}{n}\\right) = -1$, then $a$ is not a quadratic residue modulo $n$.\nThe converse fails: $\\left(\\frac{2}{15}\\right) = \\left(\\frac{2}{3}\\right) \\left(\\frac{2}{5}\\right) = 1$, but $2$ is not a square modulo $15$.\nThe symbol is $0$ exactly when $\\gcd(a, n) \u003e 1$.\n\n## Explanations\n\n### L1 human\n\nThe Jacobi symbol extends the Legendre symbol from odd primes to all odd positive integers.\nIt multiplies the Legendre symbols for the prime factors of $n$.\nIts main use is fast computation, because it obeys [[quadratic reciprocity|0YY06KP3ZQ]] without the need to factor numbers.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0ADTQBXRMC",
    "kind": "definition",
    "msc": [
      "11A15"
    ],
    "name": "Jacobi symbol",
    "sources": [
      {
        "locator": "Definition",
        "url": "https://en.wikipedia.org/wiki/Jacobi_symbol"
      }
    ],
    "tag": "0XDB5AW7M1",
    "uses": [
      "01J8AMV9RS",
      "0AEKDFCYFA"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0XDB5AW7M1/",
  "links": [
    {
      "field": "defines",
      "target": "0ADTQBXRMC"
    },
    {
      "field": "uses",
      "target": "01J8AMV9RS"
    },
    {
      "field": "uses",
      "target": "0AEKDFCYFA"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0XDB5AW7M1.md",
  "msc": [
    "11A15"
  ],
  "name": "Jacobi symbol",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0XD/0XDB5AW7M1.md",
  "status": null,
  "tag": "0XDB5AW7M1",
  "uri": "m2://0XDB5AW7M1",
  "url": "https://math2.tamnd.com/wiki/jacobi-symbol-definition/",
  "writing": {
    "tag": "0XDB5AW7M1",
    "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
      }
    ]
  }
}
