{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0C5RDJE73X"
    }
  ],
  "body": "\n## Statement\n\nLet $A$ and $B$ be finite sets with $|A| = m$ and $|B| = n$.\nLet $B^A$ be the set of all functions from $A$ to $B$.\nThen $|B^A| = n^m$.\n\n## Remarks\n\nThe case $m = 0$ gives $n^0 = 1$: there is exactly one function from the empty set to $B$, also when $B$ is empty.\nA function from $A$ to $B$ is a choice of one value in $B$ for each of the $m$ elements of $A$. The [[rule of product|0VPK4X73Q0]] then gives $n^m$.\nFor a subset count, take $B = \\{0, 1\\}$. This gives the [[number of subsets of a finite set|0C5RDJE73X]].\n\n## Explanations\n\n### L1 human\n\nEach element of $A$ independently chooses its image among the $n$ elements of $B$.\nFor example, there are $3^2 = 9$ functions from $\\{1, 2\\}$ to $\\{a, b, c\\}$, because $1$ has 3 choices and $2$ has 3 choices.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "05A05"
    ],
    "name": "Number of functions between finite sets",
    "role": "theorem",
    "sources": [
      {
        "locator": "Combinatorial interpretation",
        "url": "https://en.wikipedia.org/wiki/Exponentiation"
      }
    ],
    "tag": "08QQH9F7G0",
    "uses": [
      "05099E1NMJ",
      "0VPK4X73Q0"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/08QQH9F7G0/",
  "links": [
    {
      "field": "uses",
      "target": "05099E1NMJ"
    },
    {
      "field": "uses",
      "target": "0VPK4X73Q0"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/08QQH9F7G0.md",
  "msc": [
    "05A05"
  ],
  "name": "Number of functions between finite sets",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/08Q/08QQH9F7G0.md",
  "status": null,
  "tag": "08QQH9F7G0",
  "uri": "m2://08QQH9F7G0",
  "url": "https://math2.tamnd.com/wiki/number-of-functions-between-finite-sets/",
  "writing": {
    "tag": "08QQH9F7G0",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
