{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe show that the permutations of $X$ are exactly the injections from $X$ to $X$, and then count injections.\n\n1. A [[permutation|0BQMWCNS8S]] of $X$ is a [[bijection|0SNQEF7Z53]] $\\sigma : X \\to X$. In particular it is [[injective|0PVG1CRAJN]].\n2. Conversely, let $\\sigma : X \\to X$ be injective, and put $C = \\sigma(X)$. Then $\\sigma$ is a bijection from $X$ onto $C$.\n3. Composing a numbering of $X$ with $\\sigma$ numbers $C$. So $|C| = |X| = n$, as in the [[bijection principle|0GV2573FP4]].\n4. By the [[complement principle|03QC59M99B]], $|X \\setminus C| = n - n = 0$. So $X \\setminus C$ is empty and $C = X$.\n5. So $\\sigma$ is surjective, hence a bijection of $X$, that is, a permutation.\n6. By steps 1 to 5, the permutations of $X$ are exactly the injections from $X$ to $X$.\n7. By the [[number of injections|0X0N833FF8]], there are $(n)_n$ of them, where $(n)_n$ is the [[falling factorial|0N5M924N3P]].\n8. For $n = 0$, $(0)_0 = 1 = 0!$. For $n \\ge 1$, $(n)_n = n (n-1) \\cdots 1$, which is $n!$ by the definition of the [[factorial|0WFCGVMRRC]].\n9. Hence $X$ has exactly $n!$ permutations.\n\n## Idea\n\nOn a finite set, a map from the set to itself that never repeats a value must hit every element.\nSo permutations are just injections from $X$ to itself, and the injection count $n (n-1) \\cdots 1$ is $n!$.\n",
  "commit": "68a8c3dc73fd55004b2796431c607c30960d1a85",
  "front": {
    "kind": "proof",
    "msc": [
      "05A05"
    ],
    "name": "Proof of the number of permutations by counting injections",
    "proves": "0CEBCS0E0E",
    "sources": [
      {
        "locator": "Proof 2",
        "url": "https://proofwiki.org/wiki/Number_of_Permutations"
      }
    ],
    "tag": "SX43GZ9RD1",
    "uses": [
      "0BQMWCNS8S",
      "0SNQEF7Z53",
      "0PVG1CRAJN",
      "0X0N833FF8",
      "0GV2573FP4",
      "03QC59M99B",
      "0N5M924N3P",
      "0WFCGVMRRC"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/SX43GZ9RD1/",
  "links": [
    {
      "field": "proves",
      "target": "0CEBCS0E0E"
    },
    {
      "field": "uses",
      "target": "0BQMWCNS8S"
    },
    {
      "field": "uses",
      "target": "0SNQEF7Z53"
    },
    {
      "field": "uses",
      "target": "0PVG1CRAJN"
    },
    {
      "field": "uses",
      "target": "0X0N833FF8"
    },
    {
      "field": "uses",
      "target": "0GV2573FP4"
    },
    {
      "field": "uses",
      "target": "03QC59M99B"
    },
    {
      "field": "uses",
      "target": "0N5M924N3P"
    },
    {
      "field": "uses",
      "target": "0WFCGVMRRC"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/SX43GZ9RD1.md",
  "msc": [
    "05A05"
  ],
  "name": "Proof of the number of permutations by counting injections",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/SX4/SX43GZ9RD1.md",
  "status": null,
  "tag": "SX43GZ9RD1",
  "uri": "m2://SX43GZ9RD1",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-number-of-permutations-by-counting-injections/",
  "writing": {
    "tag": "SX43GZ9RD1",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
