I know that we can write the corresponding multivariate generating function as follows: $\sum y^kx^n$ such that $n$ is the number of vertices and $k$ is the number of leaves. Then we can obtain $f(x,y)=xy+x(\frac{1}{1-f(x,y)}-1)$. On the other hand I know that the number of unlabeled rooted trees with n vertices and k leaves is $\frac{1}{n}{n \choose k}{n-2 \choose n-k-1}$. How can I obtain the coefficient of the generating function to show this identity?
2026-03-26 09:27:02.1774517222
Number of unlabeled rooted trees with n vertices and k leaves
2.1k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in COMBINATORICS
- Using only the digits 2,3,9, how many six-digit numbers can be formed which are divisible by 6?
- The function $f(x)=$ ${b^mx^m}\over(1-bx)^{m+1}$ is a generating function of the sequence $\{a_n\}$. Find the coefficient of $x^n$
- Name of Theorem for Coloring of $\{1, \dots, n\}$
- Hard combinatorial identity: $\sum_{l=0}^p(-1)^l\binom{2l}{l}\binom{k}{p-l}\binom{2k+2l-2p}{k+l-p}^{-1}=4^p\binom{k-1}{p}\binom{2k}{k}^{-1}$
- Algebraic step including finite sum and binomial coefficient
- nth letter of lexicographically ordered substrings
- Count of possible money splits
- Covering vector space over finite field by subspaces
- A certain partition of 28
- Counting argument proof or inductive proof of $F_1 {n \choose1}+...+F_n {n \choose n} = F_{2n}$ where $F_i$ are Fibonacci
Related Questions in GRAPH-THEORY
- characterisation of $2$-connected graphs with no even cycles
- Explanation for the static degree sort algorithm of Deo et al.
- A certain partition of 28
- decomposing a graph in connected components
- Is it true that if a graph is bipartite iff it is class 1 (edge-coloring)?
- Fake induction, can't find flaw, every graph with zero edges is connected
- Triangle-free graph where every pair of nonadjacent vertices has exactly two common neighbors
- Inequality on degrees implies perfect matching
- Proving that no two teams in a tournament win same number of games
- Proving that we can divide a graph to two graphs which induced subgraph is connected on vertices of each one
Related Questions in GENERATING-FUNCTIONS
- The function $f(x)=$ ${b^mx^m}\over(1-bx)^{m+1}$ is a generating function of the sequence $\{a_n\}$. Find the coefficient of $x^n$
- How to multiply generating functions with $x^n$ and $x^{5n}$ and $x^{2n}$
- Relationship between the generating functions of sequences $(a_n),(b_n)$ given $b_n=\sum^n_{i=1}a_i$.
- Double-exponential sum (maybe it telescopes?)
- Solve recurrence equation: $a_{n}=(n-1)(a_{n-1}+a_{n-2})$
- Want to use Herbert Wilf's snake oil method to show $\sum_k \binom{2n+1}{2k}\binom{m+k}{2n} = \binom{2m+1}{2n}$
- Young Tableaux generating function
- Generating function of the sequence $\binom{2n}{n}^3H_n$
- Expansion of fibonacci generating function
- Partial fraction of $A(x)=\frac{x^2+x+1}{(1-x)^3}$
Related Questions in TREES
- Explanation for the static degree sort algorithm of Deo et al.
- Finding height of a $k$-ary tree
- Clique-width of a tree
- count "informative" paths in tree
- If the weight of edge E $e$ of an MST is decreased by $\delta$. Could total weight of MST decrease by more than $\delta$.
- Probability of two randomly selected leaves of a tree to be connected only at the root
- Proof in graph theory: maximum degree and number of leaves.
- Graph Theory: Number of vertices in a tree.
- The number of, and an enumeration for, the set of full subtrees of the full complete binary tree
- Is the maximum link length function convex?
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
We will compute the number of unlabeled ordered rooted trees on $n$ nodes and having $k$ leaves.
The combinatorial class equation for these trees with leaves marked is
$$\def\textsc#1{\dosc#1\csod} \def\dosc#1#2\csod{{\rm #1{\small #2}}} \mathcal{T} = \mathcal{Z}\times\mathcal{U} + \mathcal{Z} \times \textsc{SEQ}_{\ge 1}(\mathcal{T}) \quad\text{or}\quad \mathcal{T} = \mathcal{Z}\times\mathcal{U} + \mathcal{Z} \times \sum_{p\ge 1} \mathcal{T}^p.$$
This yields the functional equation for the generating function $T(z)$ $$T(z) = zu + z\frac{T(z)}{1-T(z)}$$ or $$z = \frac{T(z)}{u+T(z)/(1-T(z))} = \frac{T(z)(1-T(z))}{T(z)+u(1-T(z))}.$$
Note that leaves in addition to being marked as such also carry the node marker so that the total number of nodes includes the leaves. If this is not desired subtract the number of leaves from the number of nodes to get the count of genuine internal nodes.
Starting the computation we seek
$$n T_n(u) = [z^{n-1}] T'(z) = \frac{1}{2\pi i} \int_{|z|=\epsilon} \frac{1}{z^{n}} T'(z) \; dz.$$
and will compute this by a variant of Lagrange inversion. We put $T(z) = w$ so that $T'(z) \; dz = dw$ and we find (here we have used the fact that $w=uz+\cdots$)
$$\frac{1}{2\pi i} \int_{|w|=\gamma} \frac{(w+u(1-w))^n}{w^n(1-w)^n} \; dw.$$
Extract the coefficient on $[u^k]$ to get
$${n\choose k} \frac{1}{2\pi i} \int_{|w|=\gamma} \frac{(1-w)^k w^{n-k}}{w^n(1-w)^n} \; dw \\ = {n\choose k} \frac{1}{2\pi i} \int_{|w|=\gamma} \frac{1}{w^k} \frac{1}{(1-w)^{n-k}} \; dw.$$
Collecting everything we thus have
$$[u^k] [z^n] T(z) = \frac{1}{n} {n\choose k} {k-1+n-k-1\choose n-k-1}$$
or indeed
$$\bbox[5px,border:2px solid #00A000]{ [u^k] [z^n] T(z) = [u^k] T_n(u) = \frac{1}{n} {n\choose k} {n-2\choose n-k-1}}$$
as claimed. This formula holds for $n\ge 2$ where $1\le k\le n-1.$ Note that the case $k=0$ will always produce zero as it ought to (there is no ordered tree with no leaf) owing to the binomial coefficient ${n-2\choose n-1}.$ Note however that when $n=1$ and $k=0$ we get ${-1\choose 0}$ which evaluates to one, yet the ordered tree on one node is also a leaf.
There is an earlier version of this computation at the following MSE link, which is not as streamlined yet includes a verification of the closed form using the Maple combstruct package.
Re-writing the binomial coefficients we find
$$\frac{1}{n} {n\choose k} {n-2\choose n-k-1} = \frac{1}{n} {n\choose k} {n-2\choose k-1} = \frac{1}{k} {n-1\choose k-1} {n-2\choose k-1}.$$
This choice of representation makes it clear that what we have here are Narayana numbers from the Catalan triangle, shifted by one. This is OEIS A001263. We can also prove that these values add to the Catalan numbers, shifted as well.
We get
$$\sum_{k=1}^{n-1} \frac{1}{n} {n\choose k} {n-2\choose n-k-1} = \frac{1}{n} \sum_{k=0}^{n-1} {n\choose k} {n-2\choose n-k-1} \\ = \frac{1}{n} \sum_{k=0}^{n-1} {n\choose k} [z^{n-k-1}] (1+z)^{n-2} = \frac{1}{n} [z^{n-1}] (1+z)^{n-2} \sum_{k=0}^{n-1} {n\choose k} z^k.$$
We may extend $k$ beyond $n-1$ owing to the coefficient extractor in front:
$$\frac{1}{n} [z^{n-1}] (1+z)^{n-2} \sum_{k\ge 0} {n\choose k} z^k = \frac{1}{n} [z^{n-1}] (1+z)^{n-2} (1+z)^n \\ = \frac{1}{n} [z^{n-1}] (1+z)^{2n-2} = \frac{1}{n} {2n-2\choose n-1}.$$
These are indeed the familiar Catalan numbers, thus shown to count ordered trees.