{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "03RSJXF728"
    },
    {
      "field": "uses",
      "target": "045ENVCCZV"
    },
    {
      "field": "uses",
      "target": "0QRRYXG7V7"
    }
  ],
  "body": "\n## Definition\n\nLet $X$ be a set.\nA derangement of $X$ is a [[permutation|0BQMWCNS8S]] $\\sigma$ of $X$ such that $\\sigma(x) \\neq x$ for all $x \\in X$.\nIn other words, it is a permutation with no fixed point.\n\n## Remarks\n\nThe derangements of $\\{1, 2, 3\\}$ are $231$ and $312$ in one-line notation.\nThe [[number of derangements|03WY4HHMT1]] of an $n$-element set is written $D_n$ or $!n$.\n\n## Explanations\n\n### L1 human\n\nA derangement is a shuffle in which nothing stays in its place.\nSuppose that $n$ people leave their hats, and each person later takes a hat at random. A derangement is an outcome in which nobody gets their own hat.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0XHWTD3MPV",
    "kind": "definition",
    "msc": [
      "05A05"
    ],
    "name": "Derangement",
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Derangement"
      }
    ],
    "tag": "0TH61JR04G",
    "uses": [
      "0BQMWCNS8S"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0TH61JR04G/",
  "links": [
    {
      "field": "defines",
      "target": "0XHWTD3MPV"
    },
    {
      "field": "uses",
      "target": "0BQMWCNS8S"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0TH61JR04G.md",
  "msc": [
    "05A05"
  ],
  "name": "Derangement",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0TH/0TH61JR04G.md",
  "status": null,
  "tag": "0TH61JR04G",
  "uri": "m2://0TH61JR04G",
  "url": "https://math2.tamnd.com/wiki/derangement-definition/",
  "writing": {
    "tag": "0TH61JR04G",
    "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
      }
    ]
  }
}
