{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "3BBE4XY4E9"
    }
  ],
  "body": "\n## Summary\n\nThe twelvefold way is a table of twelve basic counting problems, see the [[definition|3BBE4XY4E9]].\nEach problem counts maps from a finite set $N$ to a finite set $X$.\nThe maps may be arbitrary, injective or surjective.\nThey may be counted as they are, or up to permutations of $N$, of $X$, or of both.\nThe twelve answers bring together powers, [[falling factorials|0SJNCJCCQG]], [[binomial coefficients|0GBZM0MT0F]], [[Stirling numbers of the second kind|0JCQGPY8Z4]] and [[integer partitions|0JV30XN73Z]].\n\n## Explanations\n\n### L1 human\n\nThink of $n$ balls that you put into $x$ boxes.\nThe balls may be labelled or identical, and the boxes may be labelled or identical.\nYou may also require at most one ball per box, or at least one ball per box.\nEach choice gives one counting problem, and there are $2 \\cdot 2 \\cdot 3 = 12$ of them.\nFor example, $3$ labelled balls go into $2$ labelled boxes in $2^3 = 8$ ways, but $3$ identical balls go into $2$ labelled boxes in only $4$ ways.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "kind": "concept",
    "msc": [
      "05A15",
      "05A18",
      "05A17"
    ],
    "name": "Twelvefold way",
    "same_as": {
      "wikidata": "Q7857666",
      "wikipedia": "Twelvefold way"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Twelvefold_way"
      }
    ],
    "specializes": [
      "EX382NQTGP"
    ],
    "tag": "1J16RVRHYS"
  },
  "kind": "concept",
  "link": "https://math2.tamnd.com/node/1J16RVRHYS/",
  "links": [
    {
      "field": "specializes",
      "target": "EX382NQTGP"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/1J16RVRHYS.md",
  "msc": [
    "05A15",
    "05A18",
    "05A17"
  ],
  "name": "Twelvefold way",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/1J1/1J16RVRHYS.md",
  "status": null,
  "tag": "1J16RVRHYS",
  "uri": "m2://1J16RVRHYS",
  "url": "https://math2.tamnd.com/wiki/twelvefold-way/",
  "writing": {
    "tag": "1J16RVRHYS",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
