{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe argue by contradiction.\n\n1. Let $n \u003e 1$ be an integer with $(n - 1)! \\equiv -1 \\pmod n$. Suppose that $n$ is not a [[prime number|0SN0MAEKYX]].\n2. Since $n \u003e 1$ is not prime, $n$ has a positive [[divisor|096PW7Q014]] $a$ other than $1$ and $n$. So $1 \u003c a \u003c n$.\n3. Since $1 \u003c a \\le n - 1$, the number $a$ is one of the factors of $(n - 1)! = 1 \\cdot 2 \\cdots (n - 1)$. So $a$ divides $(n - 1)!$.\n4. By the definition of [[congruence|0TPW25CBN6]], $n$ divides $(n - 1)! - (-1) = (n - 1)! + 1$. Since $a \\mid n$, also $a$ divides $(n - 1)! + 1$.\n5. By steps 3 and 4, $a$ divides $\\big( (n - 1)! + 1 \\big) - (n - 1)! = 1$.\n6. This is impossible, since $a \u003e 1$. So $n$ is prime.\n\n## Idea\n\nA proper divisor $a$ of $n$ appears as a factor in $(n - 1)!$. It also divides $(n - 1)! + 1$, so it would divide $1$, which cannot happen.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "methods": [
      "0J0XBKG64S"
    ],
    "msc": [
      "11A51"
    ],
    "name": "Proof of the converse of Wilson's theorem",
    "proves": "06WRV8HFDY",
    "sources": [
      {
        "locator": "Composite modulus",
        "url": "https://en.wikipedia.org/wiki/Wilson%27s_theorem"
      }
    ],
    "tag": "T7F6HM7GN0",
    "uses": [
      "0SN0MAEKYX",
      "0TPW25CBN6",
      "096PW7Q014"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/T7F6HM7GN0/",
  "links": [
    {
      "field": "proves",
      "target": "06WRV8HFDY"
    },
    {
      "field": "uses",
      "target": "0SN0MAEKYX"
    },
    {
      "field": "uses",
      "target": "0TPW25CBN6"
    },
    {
      "field": "uses",
      "target": "096PW7Q014"
    },
    {
      "field": "methods",
      "target": "0J0XBKG64S"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/T7F6HM7GN0.md",
  "msc": [
    "11A51"
  ],
  "name": "Proof of the converse of Wilson's theorem",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/T7F/T7F6HM7GN0.md",
  "status": null,
  "tag": "T7F6HM7GN0",
  "uri": "m2://T7F6HM7GN0",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-converse-of-wilsons-theorem/",
  "writing": {
    "tag": "T7F6HM7GN0",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
