{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $c_n$ be the number of rooted, unlabeled, ordered binary trees with $n$ leaves, for $n \\ge 1$. Here each node that is not a leaf has exactly two children, in a fixed left to right order.\n\nThen the [[generating function|0PHAC833JF]] $C(x) = \\sum_{n \\ge 1} c_n x^n$ is\n$$C(x) = \\frac{1 - \\sqrt{1 - 4x}}{2} = \\sum_{n=1}^{\\infty} \\frac{1}{n} \\binom{2n-2}{n-1} x^n.$$\n\n## Remarks\n\nSo $c_n = \\frac{1}{n}\\binom{2n-2}{n-1}$, which is the [[Catalan number|092DRBFKMG]] $C_{n-1}$.\nExample: $c_1 = 1$, $c_2 = 1$, $c_3 = 2$, $c_4 = 5$.\nSplitting a tree at the root gives $C(x) = x + C(x)^2$, and the square root form is the root of this quadratic that vanishes at $x = 0$.\n",
  "commit": "a799a9852bcfeae9dc83faa3bef60208bb53686b",
  "front": {
    "kind": "statement",
    "msc": [
      "05A15",
      "05C05"
    ],
    "name": "Generating function of binary trees by leaves",
    "role": "theorem",
    "sources": [
      {
        "locator": "source/s_recurrence_rubots.ptx:64",
        "url": "https://github.com/mitchkeller/applied-combinatorics/blob/ebd95d6bd59e23c633c65cf560bcb93efa912aae/source/s_recurrence_rubots.ptx#L64"
      }
    ],
    "tag": "G4GSKC69JM",
    "uses": [
      "0PHAC833JF",
      "092DRBFKMG"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/G4GSKC69JM/",
  "links": [
    {
      "field": "uses",
      "target": "0PHAC833JF"
    },
    {
      "field": "uses",
      "target": "092DRBFKMG"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/G4GSKC69JM.md",
  "msc": [
    "05A15",
    "05C05"
  ],
  "name": "Generating function of binary trees by leaves",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/G4G/G4GSKC69JM.md",
  "status": null,
  "tag": "G4GSKC69JM",
  "uri": "m2://G4GSKC69JM",
  "url": "https://math2.tamnd.com/wiki/generating-function-of-binary-trees-by-leaves/",
  "writing": {
    "tag": "G4GSKC69JM",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
