As far as I know, the number of labelled rooted trees on $n$ vertices is $n^{n-1}$. Is there a known result for counting the number of (labelled and unlabelled) rooted trees on $n$ vertices having height $h$? Note that these trees need not be binary. Also, I am looking for a closed form answer if possible, which will likely be a function of $n$ and $h$. In the worst case, I would like to know the asymptotic amount if an exact result isn't known.
2026-04-01 00:42:43.1775004163
Counting the numnber of (labelled and unlabelled) rooted trees on $n$ vertices with height $h$
1.5k 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 REFERENCE-REQUEST
- Best book to study Lie group theory
- Alternative definition for characteristic foliation of a surface
- Transition from theory of PDEs to applied analysis and industrial problems and models with PDEs
- Random variables in integrals, how to analyze?
- Abstract Algebra Preparation
- Definition of matrix valued smooth function
- CLT for Martingales
- Almost locality of cubic spline interpolation
- Identify sequences from OEIS or the literature, or find examples of odd integers $n\geq 1$ satisfying these equations related to odd perfect numbers
- property of Lebesgue measure involving small intervals
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?
With the question by the OP asking for a reference I will try to do just that, providing links to the OEIS. Surprisingly enough even the OEIS does not offer the usual variety of references here, suggesting that this problem is open. We compute generating functions $T_{\le h}(z)$ for the height being at most $h$ and the desired count is then given by $T_{\le h}(z)-T_{\le h-1}(z).$
We have for the labeled the combinatorial class $$\mathcal{T}_{\le h} = \mathcal{Z}\def\textsc#1{\dosc#1\csod} \def\dosc#1#2\csod{{\rm #1{\small #2}}}\times \textsc{SET}(\mathcal{T}_{\le h-1}).$$
For the labeled case this translates into $$T_{\le h}(z) = z\exp T_{\le h-1}(z)$$
with $T_{\le 0}(z) = 0$ and $T_{\le 1}(z) = z.$
For example with $h=3$ we get $$T_{\le 3}(z) = z \exp(z \exp(z))$$
which yields the sequence OEIS A052512:
$$1, 2, 9, 40, 205, 1176, 7399, 50576, \ldots$$
and for $h=4$ we get
$$T_{\le 4}(z) = z(\exp( z \exp(z \exp(z)))$$
which yields the sequence OEIS A052513:
$$1, 2, 9, 64, 505, 4536, 46249, 526352, \ldots$$
We have for the unlabeled the combinatorial class $$\mathcal{T}_{\le h} = \mathcal{Z}\times \textsc{MSET}(\mathcal{T}_{\le h-1}).$$
which translates into generating functions, as follows, $$T_{\le h}(z) = z\exp \left(\sum_{l\ge 1} \frac{T_{\le h-1}(z^l)}{l}\right).$$
where $T_{\le 0}(z) = 0$ and $T_{\le 1}(z) = z$ as before.
We get for
$$T_{\le 2}(z) = z\exp \left(\sum_{l\ge 1} \frac{z^l}{l}\right) = z\exp\log\frac{1}{1-z} = \frac{z}{1-z}.$$
These are root nodes with singletons attached to them. Continuing with the recursion we obtain
$$T_{\le 3}(z) = z\exp \left(\sum_{l\ge 1} \frac{1}{l}\sum_{q\ge 1} z^{ql}\right) = z\exp \left(\sum_{q\ge 1} \sum_{l\ge 1} \frac{1}{l} z^{ql}\right) \\ = z\exp\sum_{q\ge 1}\log\frac{1}{1-z^q} = z \prod_{q\ge 1} \frac{1}{1-z^q}.$$
which yields the sequence OEIS A000041:
$$1, 1, 2, 3, 5, 7, 11, 15, 22, 30, 42, 56, \ldots$$
(partition numbers, not surprisingly, as we allocate one node for the root and the rest is a partition into singleton fans of height at most two, of which there is only one per node count).
From $T_{\le 4}(z)$ we obtain the sequence OEIS A001383:
$$1, 1, 2, 4, 8, 15, 29, 53, 98, 177, 319, 565, \ldots$$
Finally $T_{\le 5}(z)$ yields the sequence OEIS A001384:
$$1, 1, 2, 4, 9, 19, 42, 89, 191, 402, 847 \ldots$$
There are two interpretations here depending on whether the singleton is supposed to have height zero or one. A relevant link is this MSE link.
Remark. The complexity of the growth of the partition numbers provides an idea of the difficulty of this problem, which is as difficult if not more. Studying the OEIS entries in more detail it does appear that simple recurrences for these can be computed.
Concerning the recurrence for the labeled case differentiation produces
$$T'_{\le h}(z) = \exp T_{\le h-1}(z) + z \exp T_{\le h-1}(z) \times T'_{\le h-1}(z) \\ = \frac{1}{z} T_{\le h}(z) + T_{\le h}(z) \times T'_{\le h-1}(z).$$
Extracting coefficients here we get
$$n! [z^n] T'_{\le h}(z) = T_{\le h, n+1} = n! [z^{n+1}] T_{\le h}(z) + n! [z^n ] T_{\le h}(z) \times T'_{\le h-1}(z) \\ = \frac{1}{n+1} T_{\le h, n+1} + n! \sum_{q=1}^{n} [z^q] T_{\le h}(z) [z^{n-q}] T'_{\le h-1}(z) \\ = \frac{1}{n+1} T_{\le h, n+1} + \sum_{q=1}^{n} {n\choose q} T_{\le h,q} T_{\le h-1, n-q+1}.$$
We obtain the closed form
$$\bbox[5px,border:2px solid #00A000] {T_{\le h, n+1} = \frac{n+1}{n} \sum_{q=1}^{n} {n\choose q} T_{\le h,q} T_{\le h-1, n-q+1}.}$$
The boundary condition here is $T_{\le h, 1} = 1$ and $T_{0,1} = 0.$
Applying differentiation to the unlabeled case yields
$$T'_{\le h}(z) = \exp\left(\sum_{l\ge 1} \frac{T_{\le h-1}(z^l)}{l}\right) \\ + z\exp \left(\sum_{l\ge 1} \frac{T_{\le h-1}(z^l)}{l}\right) \times \sum_{l\ge 1} T'_{\le h-1}(z^l) z^{l-1} \\ = \frac{1}{z} T_{\le h}(z) + T_{\le h}(z) \times \sum_{l\ge 1} T'_{\le h-1}(z^l) z^{l-1}.$$
Extracting coefficients we find
$$[z^n] T'_{\le h}(z) = (n+1) T_{\le h, n+1} \\ = [z^{n+1}] T_{\le h}(z) + \sum_{l=1}^n \sum_{q=1}^n [z^q] T_{\le h}(z) [z^{n-q}] z^{l-1} T'_{\le h-1}(z^l) \\ = T_{\le h, n+1} + \sum_{l=1}^n \sum_{q=1}^n T_{\le h,q} [z^{n-q-l+1}] T'_{\le h-1}(z^l).$$
We obtain the closed form
$$T_{\le h, n+1} = \frac{1}{n} \sum_{l=1}^n \sum_{q=1}^n T_{\le h,q} [[l|n-q+1]] ((n-q+1)/l) T_{\le h-1, (n-q+1)/l}$$
which simplifies to
$$\bbox[5px,border:2px solid #00A000] {T_{\le h, n+1} = \frac{1}{n} \sum_{q=1}^n \sum_{l|n-q+1} T_{\le h,q} ((n-q+1)/l) T_{\le h-1, (n-q+1)/l}.}$$
Boundary conditions are the same as in the labeled case.
This recurrence makes it possible to compute e.g. $T_{\le 6,n}$ which yields
$$1, 1, 2, 4, 9, 20, 47, 108, 252, 582, \\ 1345, 3086, 7072, 16121,\ldots$$
which is OEIS A001385 and $T_{\le 7,n}$ which yields
$$1, 1, 2, 4, 9, 20, 48, 114, 278, 676, \\ 1653, 4027, 9816, 23843,\ldots$$
which is OEIS A034823.
The Maple code to implement these two recurrences is as follows.
T := proc(h,m) option remember; local n; if m=1 then if h=0 then return 0 else return 1 fi fi; n := m-1; (n+1)/n* add(binomial(n,q)*T(h,q)*T(h-1,n-q+1), q=1..n); end; X := proc(h,m) option remember; local n; if m=1 then if h=0 then return 0 else return 1 fi fi; n := m-1; 1/n* add(add(X(h,q)* `if`(n-q+1 mod l =0, (n-q+1)/l*X(h-1,(n-q+1)/l), 0), q=1..n), l=1..n); end;