Abstract
A k-plane tree is a plane tree whose vertices are assigned labels between 1 and k in such a way that the sum of the labels along any edge is no greater than \(k+1\). These trees are known to be related to \((k+1)\)-ary trees, and they are counted by a generalised version of the Catalan numbers. We prove a surprisingly simple refined counting formula, where we count trees with a prescribed number of labels of each kind. Several corollaries are derived from this formula, and an analogous theorem is proven for k-noncrossing trees, a similarly defined family of labelled noncrossing trees that are related to \((2k+1)\)-ary trees.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction and Preliminaries
Many combinatorial objects that are counted by the Catalan numbers have k-ary analogues. Heubach, Li and Mansour list several such examples in [2], among them k-ary trees, different families of lattice paths, nonintersecting arc sequences, and certain types of Young diagrams.
The family of k-plane trees, which was first considered in [1], is another example that leads to k-ary analogues of the Catalan numbers. It is the family of all labelled plane trees (rooted trees where the order of branches matters) with vertex labels in the set \([k] = \{1,2,\ldots ,k\}\) and the restriction that the sum of the labels along any edge is never greater than \(k+1\). Figure 1 shows an example of a 4-plane tree.
Note that 1-plane trees are simply plane trees where every vertex is labelled 1, which are counted by the Catalan numbers. Moreover, we note that a plane tree with vertex labels in \(\{1,2\}\) is a 2-plane tree if and only if the vertices labelled 2 form an independent set. Therefore, the total number of 2-plane trees is the same as the total number of independent sets in all plane trees, which was determined in [5].
The number of k-plane trees with n vertices is the generalised Catalan number
and there is a similar formula for the number of k-plane trees with n vertices whose root is labelled h:
In particular, we obtain the number of \((k+1)\)-ary trees (trees where every internal vertex has precisely \(k+1\) children) with \(n-1\) internal vertices when \(h = k\). An explicit bijection is provided in [1].
The aim of this paper is to provide refined counting formulas for k-plane trees based on the number of occurrences of each label. Perhaps surprisingly, there is an explicit product formula for the number of k-plane trees with prescribed multiplicities of all labels. The main theorem reads as follows:
Theorem 1.1
Let \(n > 1\). The number of k-plane trees with root label h, \(\ell _i\) vertices labelled i (\(i \in [k]\)) and \(n = \ell _1+\ell _2 + \cdots + \ell _k\) vertices in total is given by
if \(h \le \lceil k/2 \rceil \), and by
otherwise. The total number of k-plane trees with \(\ell _i\) vertices labelled i (\(i \in [k]\)) and \(n = \ell _1+\ell _2 + \cdots + \ell _k\) vertices in total is
Let us remark here that empty products are always considered to be 1, and empty sums are considered to be 0. To illustrate the result in a special case, let us give the formula for the total number of 4-plane trees with \(\ell _1,\ell _2,\ell _3,\ell _4\) vertices labelled 1, 2, 3, 4 respectively and \(n = \ell _1 + \ell _2 + \ell _3 + \ell _4\) vertices in total:
Let us also mention again that 2-plane trees are precisely \(\{1,2\}\)-labelled plane trees where the vertices labelled 2 form an independent set. Therefore, for \(k=2\), we obtain formulas due to Kirschenhofer et al. [4] for the total number of independent sets of a given size (containing the root, not containing the root, and total) in plane trees with n vertices as special cases.
Theorem 1.1 will be proven in Sect. 2 by first establishing a system of functional equations, which can be solved explicitly by means of a suitable substitution. The formula finally follows by an application of the Lagrange–Bürmann formula. We will derive a number of corollaries from the formula in Theorem 1.1, in particular on the average number of occurrences of a specific label.
The family of k-plane trees can also be bijectively related to lattice paths with up-steps of the form (1, 1) and down-steps of the form \((1,-k)\), see [1]. In [3], such paths are enumerated by the y-coordinates of the down-steps modulo k. Interestingly, the number of paths with exactly \(a_i\) down-steps at level i modulo k for every i turns out to be given by a similar, albeit somewhat different, product formula as those in Theorem 1.1.
In Sect. 3, we consider a similar family of trees called k-noncrossing trees: recall that a noncrossing tree is a tree whose vertices \(v_1,v_2,\ldots ,v_n\) can be arranged as points on a circle (in this order) with the edges represented by line segments between these points that do not intersect at interior points. In analogy to k-plane trees, one defines k-noncrossing trees as noncrossing trees whose vertices are labelled with labels in [k] in such a way that the labels of two adjacent vertices \(v_i, v_j\) with \(i < j\) cannot add up to a sum greater than \(k+1\) if the path from the root \(v_1\) to \(v_j\) contains \(v_i\) (this includes the case that \(i = 1\)). Figure 2 shows an example of a 3-noncrossing tree. Note that it contains two edges between vertices labelled 2 and 3 respectively that would not be allowed in a k-plane tree, but are allowed here because the path from the root moves from the vertex with higher index to the vertex with lower index.
The special case \(k = 2\) was considered in [9], where a bijection between 2-noncrossing trees with a root labelled 2 and 5-ary trees was constructed. The more general case was studied in [7], see also [6].
In analogy to Theorem 1.1, we will also be counting k-noncrossing trees by the number of vertices of each label. The resulting formulas are quite similar and again surprisingly explicit.
Theorem 1.2
Let \(n > 1\). The number of k-noncrossing trees with root label h, \(\ell _i\) vertices labelled i (\(i \in [k]\)) and \(n = \ell _1+\ell _2 + \cdots + \ell _k\) vertices in total is given by
if \(h \le \lceil k/2 \rceil \), and by
otherwise. The total number of k-noncrossing trees with \(\ell _i\) vertices labelled i (\(i \in [k]\)) and \(n = \ell _1+\ell _2 + \cdots + \ell _k\) vertices in total is
This theorem will be proven in Sect. 3, using similar techniques as in the proof of Theorem 1.1, and several corollaries will follow as well. Let us again illustrate the formula in the special case \(k=4\), where the formula for the total number of 4-noncrossing trees with \(\ell _1,\ell _2,\ell _3,\ell _4\) vertices labeled 1, 2, 3, 4 respectively and n vertices in total is
2 Plane Trees
The key to proving Theorem 1.1 is a system of equations for the multivariate generating functions of k-plane trees with a given root label. We fix k and let \({\mathcal {P}}_r\) denote the set of k-plane trees whose root is labelled r. Moreover, we let \(h_i(T)\) be the number of vertices labelled i in a tree T, and |T| the total number of vertices of T. Define
Now note that a tree \(T \in {\mathcal {P}}_r\) can be decomposed into the root (labelled r) and a (possibly empty) sequence of branches that are again k-plane trees, with root labels in \([k+1-r] = \{1,2,\ldots ,k+1-r\}\). Thus we have
for all \(r \in [k]\).
Now let us set
and
for \(1 \le i \le \lceil k/2\rceil \). These expressions satisfy the recursions
as well as
We can use these recursions to continue the definition of \(F_{k,i}(t)\) and \(G_{k,i}(t)\) to greater values of i: generally, we set
and
Both (2) and (3) remain satisfied. Since
we see that the following symmetry properties hold:
Moreover, it is important to observe that
The key to the proof of Theorem 1.1 is the substitution
for a suitable power series A. One can easily solve the equation for A to show that this power series actually exists (and that it is unique).
As it turns out, we can express \(P_1,P_2,\ldots ,P_{k-1}\) in terms of A as well and also set up a functional equation for A that is amenable to an application of the Lagrange inversion formula.
Proposition 2.1
The power series \(P_1,P_2,\ldots ,P_k\) can be expressed in terms of A and the variables \(x_1,x_2,\ldots ,x_k\) and z in the following way: for \(1 \le h \le k\),
Proof
We use induction on h. For \(h = 1\), the first equation is exactly our substitution (6), while the second equation follows from (1) for \(r = k\) and an application of (2):
For the induction step, use (1) with \(r = h\) and \(r = h+1\) respectively, which yields
Now take the difference:
After some simple manipulations, this gives us
Now it only remains to apply the induction hypothesis and simplify:
Likewise, replacing h by \(k-h\) in (7) gives us
Thus
Now plug in (8) and apply the induction hypothesis. Again, we obtain the desired formula after some further manipulations. \(\square \)
Corollary 2.2
The power series A satisfies the equation
Proof
Replace h by \(k+1-h\) in the second equation of Proposition 2.1 to obtain another representation for \(P_h\):
Equating the two expressions for \(P_h\) yields
Now we apply the symmetry properties (4) to the second and fourth product:
Applying the symmetry properties once again, and noting that \(F_{k,k/2+1}\) can be left out if k is even, while \(G_{k,(k+1)/2}\) can be left out if k is odd (by (5)), we end up with
completing the proof. Note that h could have been chosen arbitrarily for this purpose. \(\square \)
We can now proceed with the proof of our first main theorem.
Proof of Theorem 1.1
We are now ready to apply the Lagrange–Bürmann formula [8, Corollary 5.4.3], based on Proposition 2.1 and Corollary 2.2. Let us first recall this formula: if A satisfies an implicit equation of the form \(A = z \Phi (A)\), then
Now suppose first that \(h \le \lceil k/2 \rceil \). In view of Proposition 2.1 and Corollary 2.2, we can apply (9) with
and
in order to compute the coefficients of \(P_h\). The derivative \(f'\) is determined by means of logarithmic differentiation. It is also important to observe that
which yields
So we have
At this point, we can drop the variable t (equivalently, set \(t=1\)), since the coefficient of \(t^{n-1} x_1^{\ell _1} \cdots x_h^{\ell _h-1} \cdots x_k^{\ell _k}\) is only nonzero if \(\ell _1 + \cdots + \ell _k = n\). Thus we will also only write \(F_{k,i}\) and \(G_{k,i}\) instead of \(F_{k,i}(1)\) and \(G_{k,i}(1)\) respectively.
Next we note that \(F_{k,1},F_{k,2},\ldots ,F_{k,h}\) and \(G_{k,1},G_{k,2},\ldots ,G_{k,h-1}\) are the only factors that contain the variable \(x_h\). Moreover, using logarithmic differentiation once again, one finds that
For any power series X, the coefficient of \(x_h^{\ell _h-1}\) in \(\frac{\partial }{\partial x_h} X\) is precisely \(\ell _h\) times the coefficient of \(x_h^{\ell _h}\) in X. Thus we get
Now we finally start extracting coefficients. First of all, we observe that \(x_1\) only occurs in the factor \(F_{k,1}\). Moreover, we have
so the coefficient of \(x_1^{\ell _1}\) is \(\left( {\begin{array}{c}2n-1\\ \ell _1\end{array}}\right) G_{k,1}^{2n-1-\ell _1}\), giving us
Among the remaining factors, \(G_{k,1}\) is the only one that contains \(x_k\), and we have
It follows that
We can now continue in this way, considering the variables \(x_1,x_k,x_2,x_{k-1},x_3,\ldots \) in this order. At the end, we have precisely the first formula in Theorem 1.1.
The case that \(h > \lceil k/2 \rceil \) is treated in a similar way: since
in this case by the second equation of Proposition 2.1, we apply the Lagrange–Bürmann formula with
and the same function \(\Phi \) as before. This yields
The remaining steps are completely analogous to the first case.
Finally, we consider the total number of k-plane trees, without taking the root label into account. Here, we first observe that the generating function is
in view of (1) (for \(r = 1\)). In terms of A, this becomes
by (6). Thus
Now we apply the Lagrange–Bürmann formula once again. Noting that
we obtain
with the same function \(\Phi \) as before. Again, the remaining steps are completely analogous. \(\square \)
We conclude the section with corollaries of Theorem 1.1 that follow by specialisation. First of all, the following formulas from [1] follow easily by ignoring the variables \(x_1,x_2,\ldots ,x_k\).
Corollary 2.3
For every positive integer n, the total number of k-plane trees with n vertices is
The number of k-plane trees with n vertices whose root is labelled h is
Proof
Since the number of labels of each kind is no longer relevant, we can set \(x_1 = x_2 = \cdots = x_k = 1\). We get
as well as
for all values of i. Consider the case that k is even, the other being similar. Corollary 2.2 gives us
So by the Lagrange–Bürmann formula, we have
This is exactly the first formula. Considering the coefficients of \(P_h\), which count trees whose root is labelled h, we have
by Proposition 2.1. Thus
\(\square \)
Next, we count k-plane trees by occurrences of a single label.
Corollary 2.4
For every \(n > 1\), the total number of k-plane trees with n vertices of which \(\ell \) are labelled h is equal to
if \(h \le \lceil k/2 \rceil \), and equal to
otherwise.
Proof
Let us give the proof in the case that k is odd and \(h \le \lceil k/2 \rceil = \frac{k+1}{2}\), the other cases being similar. Since we are only interested in vertices labelled h, we set \(x_i = 1\) for all i except h. Then we get
Now we have to determine
Using (10) and the Lagrange–Bürmann formula once again, we find that this equals
Now we extract the coefficient as follows:
\(\square \)
Corollary 2.5
For every \(n > 1\), the average number of vertices labelled h in k-plane trees with n vertices is
Proof
As in the previous proof, we only consider the case that k is odd and \(h \le \lceil k/2 \rceil = \frac{k+1}{2}\). Instead of extracting coefficients, we take the derivative with respect to \(x_h\) and plug in \(x_h=1\) in order to determine the total number of vertices labelled h in all k-plane trees. All other variables \(x_i\) are immediately taken to be 1. This gives us
Dividing by the total number of k-plane trees (as given in Corollary 2.3), we obtain the stated formula. \(\square \)
It is also possible to derive formulas for the variance of the number of vertices labelled h, as well as covariances of two different label counts. However, the formulas are somewhat unwieldy. Moreover, one could also take the root label into account in Corollaries 2.4 and 2.5. Instead of stating the most general result (which would be rather lengthy), we illustrate this in the special case \(k=3\).
Corollary 2.6
Let \(n > 1\). Variances and covariances of the number of vertices labelled 1, 2, 3 respectively in 3-plane trees with n vertices are given in the following table:
1 | 2 | 3 | |
---|---|---|---|
1 | \(\frac{n(3n-4)}{4(4n-5)}\) | \(-\frac{n}{6}\) | \(- \frac{n(n-2)}{12(4n-5)}\) |
2 | \(-\frac{n}{6}\) | \(\frac{2n(4n-3)}{9(3n-2)}\) | \(- \frac{n(7n-6)}{18(3n-2)}\) |
3 | \(- \frac{n(n-2)}{12(4n-5)}\) | \(- \frac{n(7n-6)}{18(3n-2)}\) | \(\frac{n(5n-4)(13n-18)}{36(3n-2)(4n-5)}\) |
Proof
We recall from the proof of Theorem 1.1 that
where
in the special case \(k=3\). For the variance of the number of vertices labelled h, we need to compute the second moment, which is
and then subtract the square of the mean. Likewise, the mixed moment of the number of vertices labelled h and the number of vertices labelled i is
from which we subtract the product of the means to obtain the covariance.
Let us only show the calculations for the variance of the number of vertices labelled 1 explicitly. Here, we obtain
We already found earlier that
and
Plugging everything into (11) and simplifying, we find a formula for the second moment and thus in turn for the variance. \(\square \)
Corollary 2.7
Let \(n > 1\). The average number of vertices labelled 1, 2, 3 respectively in 3-plane trees with n vertices whose root is labelled 1, 2, 3 respectively is given in the following table:
1 | 2 | 3 | |
---|---|---|---|
root label 1 | \(\frac{n^2}{2 n-1}\) | \(\frac{n-1}{3}\) | \(\frac{(n-1) (n+1)}{3 (2 n-1)}\) |
root label 2 | \(\frac{n-1}{2}\) | \(\frac{n^2+3 n-1}{3 n}\) | \(\frac{(n-2) (n-1)}{6 n}\) |
root label 3 | \(\frac{n}{2}\) | \(\frac{(n-2) (n-1)}{3 n-1}\) | \(\frac{n^2+5 n-4}{2 (3 n-1)}\) |
Proof
We recall from the proof of Theorem 1.1 that
with
In order to determine the desired mean values, we need the coefficients of the partial derivatives \(\frac{\partial }{\partial x_h} P_i |_{x_1=x_2=x_3 = 1}\). We will show the details of the calculations in one of the cases again: the number of vertices labelled 1 in 3-plane trees whose root label is 1. Since
we have
Now differentiate with respect to \(x_1\) and set \(x_1 = x_2 = x_3 = 1\):
Dividing by the total number of 3-plane trees with n vertices and root label 1, which is \(\frac{1}{n} \left( {\begin{array}{c}4n-2\\ n-1\end{array}}\right) \), we obtain the mean number of vertices labelled 1, namely
\(\square \)
3 Noncrossing Trees
Our aim in this section is to obtain analogous results for noncrossing trees. In particular, we will prove Theorem 1.2. To this end, we set up a system of functional equations once again. We fix k and let \({\mathcal {N}}_r\) denote the set of k-noncrossing trees whose root is labelled r. As before, we let \(h_i(T)\) be the number of vertices labelled i in a tree T, and |T| the total number of vertices of T. Finally, we define the following generating functions in analogy to the generating functions \(P_r\) in the previous section.
The decomposition of k-noncrossing trees is slightly more subtle than that of plane trees. Every noncrossing tree can be decomposed into the root and a sequence of so-called butterflies, which are pairs of noncrossing trees joined at a common root. The roots of these butterflies are the children \(v_{i_1},v_{i_2},\ldots ,v_{i_r}\) of the root \(v_1\). One part of the butterfly rooted at \(v_{i_j}\) contains all those vertices whose indices are less than or equal to \(i_j\) (i.e., vertices \(v_s\) with \(s \le i_j\)), the other contains all those vertices whose indices are greater than or equal to \(i_j\) (i.e., vertices \(v_s\) with \(s \ge i_j\)). We refer to them as lower and upper part of a butterfly; they only have the vertex \(v_{i_j}\) in common. See Fig. 3 for an illustration.
Each of the two parts of a butterfly can be seen as a noncrossing tree. However, because of the definition of k-noncrossing trees, which involves the order of the vertices on the circle, the two parts are slightly different. The upper part containing vertices \(v_s\) with \(s \ge i_j\) forms a proper k-noncrossing tree. However, the lower part is only almost a k-noncrossing tree: the rule on labels not adding up to values greater than \(k+1\) does not apply to the root edges (for all other edges, the rule is exactly as it is in a proper k-noncrossing tree). Thus the lower part is not necessarily a proper k-noncrossing tree, but it always becomes one by changing the root label to 1 (if it is not already 1). This is because a label 1 can always be paired with any other label along an edge. Thus we find that a butterfly with root label r has generating function
The first factor represents the upper part of the butterfly, the second factor the lower part, but excluding the root. This is achieved by the denominator.
Arguing as in the previous section, we see that a k-noncrossing tree with root label r has branches that are butterflies with root labels in \([k+1-r]\). Thus
for all \(r \in [k]\).
We use the same expressions \(F_{k,i}(t)\) and \(G_{k,i}(t)\) as in the previous section. The substitution, however, will be slightly different. In analogy to (6), we set
Again, it is not hard to verify that there exists a suitable power series B that satisfies this equation, and that it is unique. Next, we prove an analogue of Proposition 2.1.
Proposition 3.1
The power series \(N_1,N_2,\ldots ,N_k\) can be expressed in terms of B and the variables \(x_1,x_2,\ldots ,x_k\) and z in the following way: for \(1 \le h \le k\),
Proof
The proof is analogous to that of Proposition 2.1 by induction on h. For \(h = 1\), the first equation is exactly our substitution (13), while the second equation follows from (12) for \(r = k\) and an application of (3):
For the induction step, use (12) with \(r = h\) and \(r = h+1\) respectively, which yields
Now take the difference:
After some manipulations, this gives us
Now it only remains to apply the induction hypothesis and simplify:
Likewise, replacing h by \(k-h\) in (14) gives us
Thus
Now plug in (15) and apply the induction hypothesis. Again, we obtain the desired formula after some further manipulations. \(\square \)
Corollary 3.2
The power series B satisfies the equation
Proof
In analogy to Corollary 2.2, we use the two representations for \(N_h\) provided by Proposition 3.1:
Applying the symmetry relations (4), we get
Squaring and simplifying yields
Applying the symmetry properties as well as (5) once again, we arrive at the stated formula:
As in the proof of Corollary 2.2, h was arbitrary in these calculations. \(\square \)
We are now ready to prove the second main theorem of this paper. It is very similar to the proof of Theorem 1.1, with some small modifications.
Proof of Theorem 1.2
As before, we apply the Lagrange–Bürmann formula, based on Proposition 3.1 and Corollary 3.2. We start with the case that \(h \le \lceil k/2 \rceil \). In view of Proposition 3.1 and Corollary 3.2, we can apply (9) with
and
but we have to take the coefficient of \(z^{n-1/2}\) in view of the factor \(\sqrt{z}\) in the formula for \(N_h\). Once again, we apply logarithmic differentiation to determine the derivative of f(t). We find that
So we have
We remark that we are applying the Lagrange–Bürmann formula, somewhat unusually, in a situation where we have half-integer exponents in our power series, but it is not difficult to verify that it works equally well. At this point, we drop the variable t again (by setting \(t=1\)), since we know that the coefficient of \(t^{n-1} x_1^{\ell _1} \cdots x_h^{\ell _h-1} \cdots x_k^{\ell _k}\) is only nonzero when \(\ell _1 + \cdots + \ell _k = n\). We will also write \(F_{k,i}\) and \(G_{k,i}\) instead of \(F_{k,i}(1)\) and \(G_{k,i}(1)\) again.
As in the proof of Theorem 1.1, we observe that \(F_{k,1},F_{k,2},\ldots ,F_{k,h}\) and \(G_{k,1},G_{k,2},\ldots ,G_{k,h-1}\) are the only factors that contain the variable \(x_h\). Moreover, using logarithmic differentiation once again, one finds that
Now we split the expression in (16) into two parts, one of which can be seen as a derivative with respect to \(x_h\) in the same way as in the proof of Theorem 1.1:
Now we can extract coefficients from both products in the same way as in the proof of Theorem 1.2, i.e. by considering the variables in the order \(x_1,x_k,x_2,x_{k-1},\ldots \).
The derivation of the formula in the case that \(h > \lceil k/2 \rceil \) is similar: we start from the representation
which means that we can apply the Lagrange–Bürmann formula with
and the same function \(\Phi \) as before. In view of the factor z in the expression for \(N_h\), we have to extract the coefficient of \(z^{n-1}\). Thus
As before, we drop the variable t now and write \(F_{k,i}\) and \(G_{k,i}\) instead of \(F_{k,i}(1)\) and \(G_{k,i}(1)\). The appropriate split in this case is
Once again, we can now extract coefficients from both products following the order of variables \(x_1,x_k,x_2,x_{k-1},\ldots \).
Finally, we consider the generating function for all k-noncrossing trees, which is
in view of (12) (for \(r=1\)) and (13). So we can now apply the Lagrange–Bürmann formula to the functions \(f_1(t) = \sqrt{\frac{F_{k,1}(t)}{t}}\) (extracting the coefficient of \(z^{n-1/2}\)) and \(f_2(t) = \frac{F_{k,1}(t)}{t}\) (extracting the coefficient of \(z^{n-1}\)), again with the same function \(\Phi \) as before. \(\square \)
As in the previous section, we can now derive a number of corollaries.
Corollary 3.3
For every integer \(n > 1\), the total number of k-noncrossing trees with n vertices is
The number of k-noncrossing trees with n vertices whose root is labelled h is
Proof
We follow the lines of the proof of Corollary 2.3. Setting \(x_1=x_2=\cdots = x_k = 1\), recall that we have
We show the calculations in the case that k is even (the other case is similar once again), where we obtain
and
where B satisfies the implicit equation
We apply the Lagrange–Bürmann formula to find that
and similarly
\(\square \)
Next, we count k-noncrossing trees by the number of occurrences of a single label.
Corollary 3.4
For every \(n > 1\), the total number of k-noncrossing trees with n vertices of which \(\ell \) are labelled h is equal to
if \(h \le \lceil k/2 \rceil \), and equal to
otherwise.
Proof
Let us give the proof in the case that k is odd and \(h \le \lceil k/2 \rceil = \frac{k+1}{2}\). The other cases are similar. Set all \(x_i\) except \(x_h\) equal to 1. As noted in the proof of Corollary 2.4, we have
Now we have to determine
We note that
and
Using the Lagrange–Bürmann formula once again, we find that
Now we extract the coefficient as follows:
Similarly, we obtain \([z^n x_h^{\ell }] \frac{zF_{k,1}(B)}{B}.\) We have
Now, we combine the two by means of (17), and the result follows. \(\square \)
Corollary 3.5
For every \(n > 1\), the average number of vertices labelled h in k-noncrossing trees with n vertices is
where \(m^{{\overline{k}}}=m(m+1)\cdots (m+k-1)\) is the rising factorial. Asymptotically, this is equal to \(\frac{3k+2-2\,h}{k(2k+1)} n + \frac{k+1-2\,h}{(2 k + 1)^2( 2 (\frac{2k}{2k+1})^{k}-1)} + O(1/n)\).
Proof
We only consider the case that k is odd and \(h \le \lceil k/2 \rceil = \frac{k+1}{2}\), as in the previous proof. As in the proof of Corollary 2.5, instead of extracting coefficients, we take the derivative with respect to \(x_h\) and plug in \(x_h=1\) in order to determine the total number of vertices labelled h in all k-noncrossing trees. All other variables \(x_i\) are immediately taken to be 1. This results in
Dividing by the total number of k-noncrossing trees, we obtain the stated formula after a number of simplifications. \(\square \)
As noted for k-plane trees, it is also possible to derive formulas for the variance of the number of vertices labelled h, as well as covariances of two different label counts. Moreover, one could also take the root label into account in Corollaries 3.4 and 3.5. However, the formulas for k-noncrossing trees are even more complicated than for k-plane trees. Instead of stating the most general result (which would be rather lengthy), we only present the special case \(k=2\).
Corollary 3.6
Let \(n > 1\). Variances and covariances of the number of vertices labelled 1, 2 respectively in 2-noncrossing trees with n vertices are given in the following table:
1 | 2 | |
---|---|---|
1 | \(\frac{3 (2 n-1) (4 n-3)(49 n^2-100 n+44)}{25(5n-6)(7n-5)^2}\) | \(-\frac{3 (2 n-1) (4 n-3)(49 n^2-100 n+44)}{25(5n-6)(7n-5)^2}\) |
2 | \(-\frac{3 (2 n-1) (4 n-3)(49 n^2-100 n+44)}{25(5n-6)(7n-5)^2}\) | \(\frac{3 (2 n-1) (4 n-3)(49 n^2-100 n+44)}{25(5n-6)(7n-5)^2}\) |
Proof
We recall from the proof of Theorem 1.2 that
where
and
in the special case \(k=2\). Again as in Corollary 2.6, for us to compute the variance of the number of vertices labelled h, we need to first compute the second moment, which is
and then subtract the square of the mean. Likewise, the mixed moment of the number of vertices labelled h and the number of vertices labelled i is
from which we subtract the product of the means to obtain the covariance.
Again, we only show the calculations for the variance of the number of vertices labelled 1 explicitly. The other entries follow automatically in this case, since the sum of the number of vertices labelled 1 and the number of vertices labelled 2 is deterministically equal to n. We get
We already found earlier that
and
Plugging everything into (18) and simplifying, we find a formula for the second moment and thus in turn for the variance. \(\square \)
Corollary 3.7
Let \(n > 1\). The average number of vertices labelled 1, 2 respectively in 2-noncrossing trees with n vertices whose root is labelled 1, 2 respectively is given in the following table:
1 | 2 | |
---|---|---|
root label 1 | \(\frac{3 n^{2} -n - 1}{5n-4}\) | \(\frac{2n^2-3n+1}{5n-4}\) |
root label 2 | \(\frac{3n-1}{5}\) | \(\frac{2 n+1}{5}\) |
Proof
We recall from the proof of Theorem 1.2 that
with
In order to determine the desired mean values, we need the coefficients of the partial derivatives \(\frac{\partial }{\partial x_h} N_i |_{x_1=x_2 = 1}\). We will show the details of the calculations in one of the cases again: the number of vertices labelled 1 in 2-noncrossing trees whose root label is 1. Since
we have
Now differentiate with respect to \(x_1\) and set \(x_1 = x_2 = 1\):
Dividing by the total number of 2-noncrossing trees with n vertices and root label 1, which is \(\frac{1}{2n-1} \left( {\begin{array}{c}5n-4\\ n-1\end{array}}\right) \), we obtain the mean number of vertices labelled 1. \(\square \)
Data availability
This manuscript has no associated data.
References
N. S. S. Gu, H. Prodinger, and S. Wagner. Bijections for a class of labeled plane trees. European J. Combin., 31(3):720–732, 2010.
S. Heubach, N. Y. Li, and T. Mansour. Staircase tilings and \(k\)-Catalan structures. Discrete Math., 308(24):5954–5964, 2008.
C. Heuberger, S. J. Selkirk, and S. Wagner. Enumeration of generalized Dyck paths based on the height of down-steps modulo \(k\). Electron. J. Combin., 30(1):Paper No. 1.26, 2023.
P. Kirschenhofer, H. Prodinger and R. F. Tichy. Fibonacci numbers of graphs. III. Planted plane trees. Fibonacci numbers and their applications (Patras, 1984), 105–120, Math. Appl., 28, Reidel, Dordrecht, 1986.
M. Klazar. Twelve countings with rooted plane trees. European J. Combin., 18(2):195–210, 1997.
I. O. Okoth. Enumeration of \(k\)-noncrossing trees and forests. Commun. Comb. Optim., 7(2):301–311, 2022.
S. X. M. Pang and L. Lv. \(k\)-noncrossing trees and \(k\)-proper trees. In 2010 2nd International Conference on Information Engineering and Computer Science, Wuhan, China. IEEE, 2010. 3 pages.
R. P. Stanley. Enumerative combinatorics. Vol. 2, volume 62 of Cambridge Studies in Advanced Mathematics. Cambridge University Press, Cambridge, 1999.
S. H. F. Yan and X. Liu. 2-noncrossing trees and 5-ary trees. Discrete Math., 309(20):6135–6138, 2009.
Funding
Open access funding provided by Uppsala University.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
On behalf of all authors, the corresponding author states that there is no conflict of interest.
Additional information
Communicated by Frédérique Bassino.
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supported by the Knut and Alice Wallenberg Foundation, Grant KAW 2017.0112.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Okoth, I.O., Wagner, S. Refined Enumeration of \({{\varvec{k}}}\)-plane Trees and \({\varvec{k}}\)-noncrossing Trees. Ann. Comb. 28, 121–153 (2024). https://doi.org/10.1007/s00026-023-00642-6
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00026-023-00642-6