{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "043B3ENSTY"
    }
  ],
  "body": "\n## Statement\n\nLet $p$ be a [[prime number|0SN0MAEKYX]].\nThere is an integer $x$ with $x^2 \\equiv -1 \\pmod p$ if and only if $p \\not\\equiv 3 \\pmod 4$.\n\n## Remarks\n\nFor $p = 2$, take $x = 1$.\nFor odd $p$, the statement is the [[first supplement to quadratic reciprocity|0PHBS78HKT]].\nFor $p \\equiv 1 \\pmod 4$, an explicit solution is $x = \\left(\\frac{p-1}{2}\\right)!$, by [[Wilson's theorem|03KGGKTB2E]].\nThe statement is a step in the proof of [[Fermat's theorem on sums of two squares|043B3ENSTY]].\n\n## Explanations\n\n### L1 human\n\nThe primes $2$, $5$, $13$ and $17$ have a square root of $-1$: for example $5^2 = 25 \\equiv -1 \\pmod{13}$.\nThe primes $3$, $7$ and $11$ have none.\nThe rule is that $p$ must not leave remainder $3$ on division by $4$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "11A15"
    ],
    "name": "−1 is a square modulo p if and only if p is not 3 modulo 4",
    "role": "corollary",
    "sources": [
      {
        "locator": "q = ±1 and the first supplement",
        "url": "https://en.wikipedia.org/wiki/Quadratic_reciprocity"
      }
    ],
    "tag": "00DW862T78",
    "uses": [
      "0PHBS78HKT",
      "0SN0MAEKYX"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/00DW862T78/",
  "links": [
    {
      "field": "uses",
      "target": "0PHBS78HKT"
    },
    {
      "field": "uses",
      "target": "0SN0MAEKYX"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/00DW862T78.md",
  "msc": [
    "11A15"
  ],
  "name": "−1 is a square modulo p if and only if p is not 3 modulo 4",
  "prov": null,
  "role": "corollary",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/00D/00DW862T78.md",
  "status": null,
  "tag": "00DW862T78",
  "uri": "m2://00DW862T78",
  "url": "https://math2.tamnd.com/wiki/1-is-a-square-modulo-p-if-and-only-if-p-is-not-3-modulo-4/",
  "writing": {
    "tag": "00DW862T78",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
