{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $X$ be a finite set with $|X| = n$.\nThen the number of [[derangements|0TH61JR04G]] of $X$ is the derangement number $D_n$ of the node [[number of derangements|03WY4HHMT1]].\n\n## Remarks\n\nThe proof checks the recursion $D_{n+2} = (n + 1)(D_n + D_{n+1})$, as in the node [[recurrence for derangements|0QRRYXG7V7]].\nFor $n = 4$ there are $9$ derangements among the $24$ permutations.\n\n## Explanations\n\n### L1 human\n\nThe derangement numbers are defined by a recursion, and this result says that they really count the permutations with no fixed point.\nFor example, $D_3 = 2$, and $\\{1, 2, 3\\}$ has exactly the two derangements $231$ and $312$.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "kind": "statement",
    "msc": [
      "05A05"
    ],
    "name": "The derangement numbers count derangements",
    "role": "theorem",
    "sources": [
      {
        "locator": "Counting derangements",
        "url": "https://en.wikipedia.org/wiki/Derangement"
      }
    ],
    "tag": "045ENVCCZV",
    "uses": [
      "0TH61JR04G",
      "03WY4HHMT1"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/045ENVCCZV/",
  "links": [
    {
      "field": "uses",
      "target": "0TH61JR04G"
    },
    {
      "field": "uses",
      "target": "03WY4HHMT1"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/045ENVCCZV.md",
  "msc": [
    "05A05"
  ],
  "name": "The derangement numbers count derangements",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/045/045ENVCCZV.md",
  "status": null,
  "tag": "045ENVCCZV",
  "uri": "m2://045ENVCCZV",
  "url": "https://math2.tamnd.com/wiki/the-derangement-numbers-count-derangements/",
  "writing": {
    "tag": "045ENVCCZV",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
