{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $n \\ge 2$ be an integer.\nThen the number of [[trees|0MJ0JS72DZ]] with vertex set $\\{1, 2, \\dots, n\\}$ is $n^{n-2}$.\n\n## Remarks\n\nThe trees are labelled: two trees are the same only if they have the same edge set. Thus the formula counts the [[spanning trees|0FQ5B8S1ZC]] of $K_n$.\nFor $n = 3$ there are $3$ trees, and for $n = 4$ there are $16$.\nA proof uses the [[Prüfer sequence|09PV9JSY6E]], a bijection between these trees and the sequences of length $n - 2$ over $\\{1, \\dots, n\\}$.\n\n## History\n\nCarl Wilhelm Borchardt found the formula in 1860.\nArthur Cayley extended it in 1889, and the formula has his name.\n\n## Explanations\n\n### L1 human\n\nLabel $n$ points with the numbers $1$ to $n$ and count the ways to connect them by a tree.\nFor $4$ points there are $4^2 = 16$ ways: $12$ paths and $4$ stars.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "05C30"
    ],
    "name": "Cayley's formula",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q859176",
      "wikipedia": "Cayley's formula"
    },
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Cayley's_formula"
      }
    ],
    "tag": "0M2SSGSYPE",
    "uses": [
      "0MJ0JS72DZ"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0M2SSGSYPE/",
  "links": [
    {
      "field": "uses",
      "target": "0MJ0JS72DZ"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0M2SSGSYPE.md",
  "msc": [
    "05C30"
  ],
  "name": "Cayley's formula",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0M2/0M2SSGSYPE.md",
  "status": null,
  "tag": "0M2SSGSYPE",
  "uri": "m2://0M2SSGSYPE",
  "url": "https://math2.tamnd.com/wiki/cayleys-formula/",
  "writing": {
    "tag": "0M2SSGSYPE",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
