Woon's tree and sums over compositions
C. Vignat, T. Wakhare

TL;DR
This paper explores sums over compositions of integers, deriving generating functions, connecting to recursive trees, and extending these concepts to nonlinear transforms and generalized sums, with applications to special functions like Bernoulli numbers.
Contribution
It introduces a new framework linking composition sums with recursive trees and nonlinear transforms, extending Fuchs' general PI tree to generalized sums over compositions.
Findings
Derived a generating function for sums over compositions.
Connected composition sums with recursive trees and nonlinear transforms.
Extended the concept to generalized sums over parts of compositions.
Abstract
This article studies sums over all compositions of an integer. We derive a generating function for this quantity, and apply it to several special functions, including various generalized Bernoulli numbers. We connect composition sums with a recursive tree introduced by S.G. Woon and extended by P. Fuchs under the name "general PI tree", in which an output sequence is associated to the input sequence by summing over each row of the tree built from . Our link with the notion of compositions allows to introduce a modification of Fuchs' tree that takes into account nonlinear transforms of the generating function of the input sequence. We also introduce the notion of \textit{generalized sums over compositions}, where we look at composition sums over each part of a composition.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Combinatorial Mathematics · Advanced Mathematical Identities · graph theory and CDMA systems
\useforestlibrary
*linguistics
Woon’s tree and sums over compositions
C. Vignat and T. Wakhare
T. Wakhare, University of Maryland, College Park, MD 20742, USA, [email protected]
C. Vignat, L.S.S. Supelec, Université Paris Sud-Orsay, France and Department of Mathematics, Tulane University, New Orleans, USA, [email protected]
Abstract.
This article studies sums over all compositions of an integer. We derive a generating function for this quantity, and apply it to several special functions, including various generalized Bernoulli numbers. We connect composition sums with a recursive tree introduced by S.G. Woon and extended by P. Fuchs under the name general PI tree, in which an output sequence is associated to the input sequence by summing over each row of the tree built from . Our link with the notion of compositions allows to introduce a modification of Fuchs’ tree that takes into account nonlinear transforms of the generating function of the input sequence. We also introduce the notion of generalized sums over compositions, where we look at composition sums over each part of a composition.
1. Introduction
Sums over compositions are an object of study in their own right, and there is a vast literature considering sums over compositions or enumeration of restricted compositions. A composition of an integer number is any sequence of integers , called parts of , such that
[TABLE]
There are compositions of
[TABLE]
compositions of
[TABLE]
and more generally compositions of These compositions can be represented as follows:
[TABLE]
[TABLE]
and so on. We also introduce the following notation: let denote the set of all compositions of for an element denote its length, i.e the number of its parts. For a sequence we also use the multi-index notation
[TABLE]
We can now state our main result, a generating function for sums over compositions:
Theorem 1**.**
Let and . We then have the generating function identity
[TABLE]
This general result unites many previous results spread across the literature, because the composite generating function often has a simple closed form. We link this formula to Woon’s and Fuchs’ trees, which provide graphical ways of visualizing it, as described below.
In Section 2 we introduce Woon’s and Fuchs’ tree, and in Section 3 we connect them to compositions for the first time. In Section 4, we introduce our main results, and use them to derive a variety of closed form expressions for sums over compositions. In Section 5 we introduce a new notation for generalized composition sums, and explore some basic identities for them.
Throughout, we apply our results to special functions and generalized Bernoulli numbers, which allows us to derive expressions for them as sums over compositions.
2. Background
Woon’s tree, as introduced by S.G. Woon in [1], is the following construction
{forest}
[[[[][]][[][]]][[[][]][[][]]]]
with the rule
{forest}
[[][]]
S.G. Woon proved, using Euler MacLaurin summation formula, that the successive row sums
[TABLE]
coincide with the sequence where the Bernoulli numbers are defined by the generating function
[TABLE]
Later on, Fuchs [2] considered a more general construction, the general PI tree. This associates, to the sequence of real numbers which we call the input sequence, the tree
{forest}
[[[[][]][[][]]][[[][]][[][]]]]
built using the two operators (for "put a 1") and (for "increase") as follows
{forest}
[[, edge label=node[midway,left,font=] ][, edge label=node[midway,right,font=]]]
The row sums of the tree generate what will be called the output sequence Note that although the are real numbers, they should be considered as noncommutating variables in the process of construction of the tree. Moreover, Woon’s tree corresponds to a PI tree with the particular choice
[TABLE]
Fuchs proved that if then the sequence of row sums of the general PI tree is related to the sequence of its entries by the convolution
[TABLE]
This result translates in terms of generating functions as follows - see [2]: if and are the input and output sequences of Fuchs’ tree, then their generating functions
[TABLE]
are related as
[TABLE]
and
[TABLE]
Example 2**.**
In the case of Bernoulli numbers, the generating function of the input sequence is
[TABLE]
so that the generating function of the row sums sequence is
[TABLE]
The recursive identity (2.1) is the well-known identity for Bernoulli numbers [4, 24.5.3]
[TABLE]
Example 3**.**
The Bernoulli polynomials are defined by the generating function
[TABLE]
We deduce that the tree with polynomial entries
[TABLE]
has row sums that coincide with the Bernoulli polynomials:
[TABLE]
This gives a decomposition of Bernoulli polynomials as a sum of elementary polynomials; for example
[TABLE]
[TABLE]
The general expression for is given in Thm. 15 below.
Example 4**.**
Higher-order Bernoulli numbers, also called Nörlund polynomials, are defined for an integer parameter by the generating function
[TABLE]
The output sequence
[TABLE]
corresponds to the input sequence
[TABLE]
where \left\{\begin{array}[]{c}n\\ p\end{array}\right\} is the Stirling number of the second kind.
Example 5**.**
The hypergeometric Bernoulli numbers, as introduced by F.T. Howard [13], are defined, for and by the generating function
[TABLE]
where is the hypergeometric function
[TABLE]
with the notation for the Pochhammer symbol
[TABLE]
The output sequence
[TABLE]
corresponds to the input sequence
[TABLE]
3. Connection to compositions
3.1. Definitions
In the examples studied so far, we were able to compute a few row sums of Fuchs’ tree, but we still need a general and non-recursive formula that gives the row sum sequence explicitly as a function of the input sequence This implies a better description of the row generating process of Woon’s tree, which requires the notion of compositions.
The representation
{forest}
[[\newmoon$$|$$\newmoon[\newmoon$$|$$\newmoon$$|$$\newmoon][\newmoon$$\newmoon$$|$$\newmoon]][\newmoon$$\newmoon[\newmoon$$|$$\newmoon$$\newmoon][\newmoon$$\newmoon$$\newmoon]]]
suggests a natural bijection between the generation process of the next row in Woon’s tree and the generation process of the compositions of the integer in terms of those of We restate Fuchs’ result [2] in terms of compositions, and then apply this result to derive several new identities for Catalan numbers and Hermite polynomials.
3.2. Fuchs’ result
We can now restate Fuchs’ main result (2.1) as follows
Theorem 6**.**
The sequence of row sums in Woon’s tree can be computed from its sequence of entries as the sum over compositions
[TABLE]
This sum over compositions can also be expressed as the weighted sum over convolutions
[TABLE]
Moreover, these relations can be inverted by exchanging with : the input sequence in Woon’s tree can be recovered from its row sum sequence as the sum over compositions
[TABLE]
or as the weighted sum over convolutions
[TABLE]
Proof.
Denote so that
[TABLE]
Denote the incomplete sum
[TABLE]
and its complete version
[TABLE]
so that
[TABLE]
and both variables and are related as
[TABLE]
that can be proved for example by induction on We deduce, following the same steps as in the Bernoulli case above,
[TABLE]
Moreover
[TABLE]
and the proof of the first part follows. The inversion of these relations is deduced from the identity (2.3).∎
The result of Thm. 6 has been rediscovered many times in relation to sums over compositions. For examples of identities derived from this result, see [8], [9] and [10]. Selecting various for in some set of indices , and otherwise, also gives the generating function for the number of compositions into parts from this set . For example, we can let and to find a formula for the number of compositions into odd parts.
3.3. Invariant sequences
In this section, we look for sequences that are invariant by Fuchs’ tree.
3.3.1. Catalan numbers
The Catalan numbers are defined by the generating function
[TABLE]
They are invariants of Woon’s tree in the following sense.
Theorem 7**.**
If
[TABLE]
is the input sequence of Woon’s tree, then the row sums are
[TABLE]
As a consequence, the Catalan numbers satisfy the sum over compositions identities
[TABLE]
and
[TABLE]
Remark 8*.*
Identity (3.5) can be considered as a generalization of the classic convolution identity for Catalan numbers [4, 26.5.3]
[TABLE]
Proof.
From the generating function of the input sequence
[TABLE]
we deduce the generating function of the row sums
[TABLE]
which proves the result. Both identities for Catalan numbers (3.5) and (3.6) are a consequence of (3.1) and (3.3). ∎
3.3.2. Hermite polynomials
Another invariant sequence of Woon’s tree is the sequence of Hermite polynomials defined by the generating function
[TABLE]
It can be checked that if the entries of Woon’s tree are chosen as
[TABLE]
then the sequence of row sums is equal to
[TABLE]
4. A Nonlinear Generalization
We are able to generalize these results to sums over compositions with weights, which corresponds to a further generalization of Fuchs’ tree. Because Fuchs’ tree graphically represents sums over compositions, we can represent the generating function as the convolution of two trees:
{forest}
[[[][]][[][]]]
{forest}
[[[][]][[][]]]
{forest}
[[[][]][[][]]]
The analytic description of this operation is as follows.
Theorem 9**.**
Let and . We then have the generating function identity
[TABLE]
Proof.
We note that the case and , , corresponds to Theorem 6. Then , leading to the observed relationship between and . In terms of trees, the sum corresponds to a row sum, with additional weights depending on how many different parts are in each composition of . With the notation , we have the following result of Vella [3], based off the classical Faá di Bruno formula:
[TABLE]
We let , so that . Then letting and yields the result. ∎
Remark 10*.*
Eger [12] explored the case and for . He used this to define ’extended binomial coefficients’, which constitute a special case of our results.
Remark 11*.*
One consequence of identity (4.1) is as follows: let denote a moment sequence and a cumulant sequence of a random variable : the moments are the expectations and the cumulants are the Taylor coefficients of the logarithm of the moment generating function . Choosing
[TABLE]
so that
[TABLE]
gives the identity between moments and cumulants
[TABLE]
Let be the cumulant generating function and , so that is the moment generating function. This gives the other identity between moments and cumulants
[TABLE]
This allows us to express moments and cumulants in terms of sums over compositions of each other. Note that by definition, if then , , , and
Theorem 12**.**
We have the following identity for sums over compositions:
[TABLE]
Proof.
The proof is identical to that given in Theorem 6. ∎
We can also, for the first time, find a general formula for sums over all parts of all compositions of . This corresponds to an ’additive’ Woon tree where the creation operator "I" adds instead of multiplying by it.
Theorem 13**.**
Let and . We then have the generating function identity
[TABLE]
Proof.
We begin with and transform it to the bivariate generating function . We then take a partial derivative with respect to and evaluate at , so
[TABLE]
Noting that and yields the theorem. ∎
Remark 14*.*
As a consequence of this result, choosing we deduce the generating function of the sequence
[TABLE]
of a sequence as
[TABLE]
Generating functions for other sequences related to compositions, such as the total number of summands in all the compositions of can be found for example in [14].
4.1. Back to the Bernoulli numbers
Going back to Example 2 and Equation (4.3), we deduce the expression
[TABLE]
with the notation
[TABLE]
From the multinomial identity, we know that, in terms of Stirling numbers of the second kind,
[TABLE]
We deduce the expression
[TABLE]
Another expression for the Bernoulli numbers can be obtained by choosing
[TABLE]
and
[TABLE]
giving
[TABLE]
which can be found under a slightly different form as [4, Entry 24.6.9].
We note that we have two distinct representations of the Bernoulli numbers as sums over compositions:
[TABLE]
We also note that in [3], D.C. Vella obtains other expressions of the Bernoulli and Euler numbers as sums over compositions.
4.2. Back to Bernoulli polynomials
We can now provide a general formula for the Bernoulli polynomials as follows:
Theorem 15**.**
The Bernoulli polynomials can be expanded as
[TABLE]
where is the higher-order Bernoulli polynomial with parameter with generating function
[TABLE]
Proof.
Using
[TABLE]
we deduce
[TABLE]
with
[TABLE]
This sequence has generating function
[TABLE]
comparing to the generating function of the higher-order Bernoulli polynomials (4.11), we deduce
[TABLE]
and
[TABLE]
which is the desired result. ∎
4.3. Back to higher-order Bernoulli polynomials
We apply the result of Thm. 9 to higher-order Bernoulli numbers as follows: starting from
[TABLE]
the desired generating function is
[TABLE]
so that
[TABLE]
Applying formula (4.3), we deduce
[TABLE]
The inner sum is easily computed as
[TABLE]
whereas the last sum is, by (4.6), equal to
[TABLE]
so that
[TABLE]
This identity can be found as [11, Eq.(15)].
4.4. Compositions with restricted summands
When the input sequence has a simple structure, more details can be obtained about the row-sum sequence We start with the example of Fibonacci numbers, by explicitly constructing Woon’s tree for the Fibonacci case
[TABLE]
with
[TABLE]
Since the Fibonacci numbers satisfy the recurrence
[TABLE]
we deduce from (16) that the sequence of entries of the tree satisfies
[TABLE]
The corresponding Woon’s tree starts as
{forest}
[[[[][]][[][[math]]]][[[][]][[math][[math]][[math]]]]]
We deduce the expression for the Fibonacci numbers as
[TABLE]
the number of compositions of with parts equal to or , which can be found in [5, p.42] and [7]. Moreover, we recover the generating function .
This result can be generalized remarking that we have a correspondence between linear recurrences and compositions into restricted parts. Fix a set of integers: we adopt the notation
[TABLE]
from [5, p.42] to denote the number of compositions of with parts in the set .
Theorem 16**.**
Let be a finite set of positive indices and consider the linear recurrence . Then we have the dual identities:
[TABLE]
[TABLE]
Furthermore, the corresponding Woon tree has input sequence
[TABLE]
Proof.
We begin with the recurrence (2.1), , where corresponds to the th row sum of Woon’s tree. Since , the set consists of the indices such that . We also have that everywhere else. This sequence then satisfies the conditions to be considered a generalized Woon tree, so we have the realization (4.14). We can then apply the transform , which yields (4.13), since . Finally, we can apply (4.3) with and to yield
[TABLE]
Comparing coefficients yields (4.12). ∎
A direction for future research is to study the asymptotics of which would allow us to obtain asymptotics for . The asymptotics of are complicated, but we have a much easier problem since the coefficients are either zero or one. Finding the asymptotics of reduces to studying the roots of the characteristic polynomial .
4.5. Sum of digits
For a given the set of integers coincides with the set where is the number of s in the binary expansion of
For example, for
[TABLE]
while
[TABLE]
This remark, together with Theorem 12, can be used to derive some interesting finite sums that involve the sequence For example, the choice
[TABLE]
gives
[TABLE]
so that
[TABLE]
This extends naturally as follows:
Theorem 17**.**
For we have
[TABLE]
This formula simply expresses the fact that for the sequence takes on the value zero times, the value one times, and so on.
5. A general formula for composition of functions
We conclude this study with a general formula for composition of functions. Introduce the notation
[TABLE]
for This mirrors the notation , which states that is a partition of . From Thm. 9, we have the formula
[TABLE]
Now we look at
[TABLE]
where
[TABLE]
We introduce the new notation for a “composition of compositions”
[TABLE]
so that we can write
[TABLE]
Moreover, the associativity of function compositions translates into another equivalent expression,
[TABLE]
For we have the 5 equivalent possibilities
[TABLE]
with the corresponding tree representations
{forest}
calign=fixed edge angles, [[, edge label=node[midway,left,font=]][, edge label=node[midway,right,font=][, edge label=node[midway,left,font=]][, edge label=node[midway,right,font=][, edge label=node[midway,left,font=]][, edge label=node[midway,right,font=]]]]]
{forest}
calign=fixed edge angles, [[, edge label=node[midway,left,font=][, edge label=node[midway,left,font=][, edge label=node[midway,left,font=]][, edge label=node[midway,right,font=]]][, edge label=node[midway,right,font=]]][, edge label=node[midway,right,font=]]]
{forest}
calign=fixed edge angles, [[, edge label=node[midway,left,font=][, edge label=node[midway,left,font=]][, edge label=node[midway,right,font=]]][, edge label=node[midway,right,font=][, edge label=node[midway,left,font=]][, edge label=node[midway,right,font=]]]]
{forest}
calign=fixed edge angles, [ [, edge label=node[midway,left,font=]] [, edge label=node[midway,right,font=][, edge label=node[midway,left,font=][, edge label=node[midway,left,font=]][, edge label=node[midway,right,font=]]][, edge label=node[midway,right,font=]]]]
{forest}
calign=fixed edge angles, [ [, edge label=node[midway,left,font=][, edge label=node[midway,left,font=]][, edge label=node[midway,right,font=][,edge label=node[midway,left,font=]][,edge label=node[midway,right,font=]]]][, edge label=node[midway,right,font=]]]
Consider now the general case . There are ways to compose these functions associatively, where is the th Catalan number
[TABLE]
The associativity of function composition gives us then equivalent representations for generalized composition sums.
While writing down each of these representations is very messy, we present a simple algorithmic approach for doing so. The general formula for the composition is
[TABLE]
with the notation and . We draw the tree representation for function composition and determine the summation set by the following rules:
- •
If the parent of the level corresponding to is a right child, we sum over . If it is a left child we sum over
- •
Select and look where it is a leaf. If it is a right child, we sum over the factor , where is the depth of the leaf . If is a leaf and left child we sum over the factor .
- •
At the top level, the previous rules do not apply and we always sum over and .
This way, the subscript is determined by the leaf’s position while the summation set is determined by the parent’s position in the corresponding tree. For instance, select the following tree:
{forest}
calign=fixed edge angles, [ [, edge label=node[midway,left,font=][, edge label=node[midway,left,font=]][, edge label=node[midway,right,font=][,edge label=node[midway,left,font=]][,edge label=node[midway,right,font=]]]][, edge label=node[midway,right,font=]]].
Consider . It’s a left child with depth , so it has the subscript . Its parent is also a left child so the summation includes the terms . is a right child with depth so we sum over . Its parent is a right child so the summation goes over . Repeating this procedure for and allows us to recover our previous expression
[TABLE]
6. Conclusion
In this paper, we recognized Fuchs’ generalized PI tree as a graphical method to represent sums over compositions. Then, the introduction of the Faá di Bruno formula allowed us to introduce further set of weights based on the number of parts in every compositions. Trees are then an easy ’bookkeeping’ method to visualize the classical Faá di Bruno formula. The introduction of this Faá di Bruno formula also allowed us to synthesize many past works, since the nonlinear weights generalize most of the existing literature on compositions. Through this generating function methodology, we were also able to find a generating function for sums over all parts of all compositions of . Together, our results unite the existing literature on composition sums and provide an efficient method to graphically visualize them. For the first time, we also study iterated sums over compositions and link them to tree representations.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] S. C. Woon, A Tree for Generating Bernoulli Numbers, Mathematics Magazine, Vol. 70, No. 1 (Feb., 1997), pp. 51-56
- 2[2] P. Fuchs, Bernoulli numbers and binary trees, Tatra Mt. Math. Publ. 20, 111-117, 2000
- 3[3] D. C. Vella, Explicit formulas for Bernoulli and Euler numbers, Integers: Electronic Journal of Combinatorial Number Theory 8 (2008), #A 01
- 4[4] NIST Digital Library of Mathematical Functions. http://dlmf.nist.gov/, Release 1.0.14 of 2016-12-21. F. W. J. Olver, A. B. Olde Daalhuis, D. W. Lozier, B. I. Schneider, R. F. Boisvert, C. W. Clark, B. R. Miller, and B. V. Saunders, eds.
- 5[5] P. Flajolet and R. Sedjewick, Analytic Combinatorics, Cambridge University Press, 2009
- 6[6] M. Kaneko, The Akiyama-Tanigawa algorithm for Bernoulli numbers, Journal of Integer Sequences, Vol. 3, (2000), Article 00.2.9
- 7[7] K. Alladi, and V. E. Hoggatt, Jr., Compositions with Ones and Twos. The Fibonacci Quarterly, Volume 13, Issue 3, October, 1975, Pp. 233 - 239
- 8[8] A.V. Sills, Compositions, partitions, and Fibonacci numbers, The Fibonacci Quarterly, Volume 49, Issue 4, 2011, Pp. 348 - 354
