{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "033KTKKRV6"
    },
    {
      "field": "uses",
      "target": "03RSJXF728"
    },
    {
      "field": "uses",
      "target": "0CEBCS0E0E"
    },
    {
      "field": "uses",
      "target": "0VEFSSKX18"
    }
  ],
  "body": "\n## Definition\n\nLet $n$ be a natural number.\nThe factorial of $n$ is the natural number $n!$ defined by the recursion\n$$0! = 1, \\qquad (n+1)! = (n+1) \\cdot n!.$$\nFor $n \\ge 1$ this gives $n! = 1 \\cdot 2 \\cdots n$, the product of the positive integers up to $n$.\n\n## Remarks\n\nThe first values are $0! = 1$, $1! = 1$, $2! = 2$, $3! = 6$, $4! = 24$ and $5! = 120$.\nThe value $n!$ is the [[number of permutations|0CEBCS0E0E]] of an $n$-element set.\nThe convention $0! = 1$ agrees with the empty product, and it makes the [[factorial formula for binomial coefficients|033KTKKRV6]] true for $k = 0$ and $k = n$.\n\n## Explanations\n\n### L1 human\n\nThe factorial $n!$ multiplies all whole numbers from $1$ to $n$.\nIt counts the ways to put $n$ different books in a row: $n$ choices for the first place, $n - 1$ for the second, and so on.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "defines": "0XWG0JGDFW",
    "kind": "definition",
    "msc": [
      "05A10"
    ],
    "name": "Factorial",
    "sources": [
      {
        "locator": "Definition",
        "url": "https://en.wikipedia.org/wiki/Factorial"
      }
    ],
    "tag": "0WFCGVMRRC"
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0WFCGVMRRC/",
  "links": [
    {
      "field": "defines",
      "target": "0XWG0JGDFW"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0WFCGVMRRC.md",
  "msc": [
    "05A10"
  ],
  "name": "Factorial",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0WF/0WFCGVMRRC.md",
  "status": null,
  "tag": "0WFCGVMRRC",
  "uri": "m2://0WFCGVMRRC",
  "url": "https://math2.tamnd.com/wiki/factorial-definition/",
  "writing": {
    "tag": "0WFCGVMRRC",
    "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
      }
    ]
  }
}
