{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $n$ be a natural number.\nThen the number of [[binary trees|02A8EMC83C]] with exactly $n$ nodes is the [[Catalan number|092DRBFKMG]] $C_n$.\n\n## Remarks\n\nHere a binary tree is either empty or a root node with an ordered pair of binary trees as its left and right subtrees.\nFor $n = 3$ there are $C_3 = 5$ binary trees.\nProof idea: a nonempty tree with $n + 1$ nodes has a left subtree with $i$ nodes and a right subtree with $n - i$ nodes. This gives the [[Catalan recurrence|0Y1MG9R5VN]].\n\n## Explanations\n\n### L1 human\n\nRemove the root of a binary tree, and you get a left tree and a right tree.\nThe sizes of the two trees add up to one less than the size of the original tree, and this gives the Catalan recurrence.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "05C05"
    ],
    "name": "Binary trees are counted by Catalan numbers",
    "role": "theorem",
    "sources": [
      {
        "locator": "Applications in combinatorics",
        "url": "https://en.wikipedia.org/wiki/Catalan_number"
      }
    ],
    "tag": "0Y97E2DMB7",
    "uses": [
      "092DRBFKMG",
      "02A8EMC83C"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0Y97E2DMB7/",
  "links": [
    {
      "field": "uses",
      "target": "092DRBFKMG"
    },
    {
      "field": "uses",
      "target": "02A8EMC83C"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0Y97E2DMB7.md",
  "msc": [
    "05C05"
  ],
  "name": "Binary trees are counted by Catalan numbers",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0Y9/0Y97E2DMB7.md",
  "status": null,
  "tag": "0Y97E2DMB7",
  "uri": "m2://0Y97E2DMB7",
  "url": "https://math2.tamnd.com/wiki/binary-trees-are-counted-by-catalan-numbers/",
  "writing": {
    "tag": "0Y97E2DMB7",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
