Abstract
There are several general concepts that allow obtaining explicit formulas for the coefficients of generating functions in one variable by using their powers. One such concept is the application of compositae of generating functions. In previous studies, we have introduced a generalization for the compositae of multivariate generating functions and have defined basic operations on the compositae of bivariate generating functions. The use of these operations helps to obtain explicit formulas for compositae and coefficients of generating functions in two variables. In this paper, we expand these operations on compositae to the case of generating functions in three variables. In addition, we describe a way of applying compositae to obtain coefficients of rational generating functions in several variables. To confirm the effectiveness of using the proposed method, we present detailed examples of its application in obtaining explicit formulas for the coefficients of a generating function related to the Aztec diamond and a generating function related to the permutations with cycles.
Keywords:
multivariate generating function; coefficient; power of generating function; composition of generation functions; composita; explicit formula; recurrence MSC:
05A15; 40B05
1. Introduction
Generating functions find their application in various areas of mathematics and computer science, such as combinatorics, discrete mathematics, statistics, etc. [1,2]. Generally, generating functions have an important application to enumeration problems related to counting different kinds of objects. For example, a compact representation of discrete structures with the help of generating functions is used in combinatorics [3,4]. In this case, the coefficients of the known generating function for a combinatorial set show the total number of its elements (combinatorial objects). Thus, the explicit formula for the generating function coefficients can be used as a cardinality function of the corresponding combinatorial set. Moreover, generating functions are the main means of describing polynomials that can be found in different tasks of mathematics [5,6,7]. In this case, the coefficients of the known generating function for a polynomial define the expression of this polynomial with the fixed values of its parameters. Hence, it is necessary to have methods for obtaining explicit formulas or recurrences for the coefficients of generating functions. It is also useful to have methods for obtaining recurrences for the coefficients of generating functions.
When studying the coefficients of generating functions, special attention is paid to the powers of these generating functions. There are general concepts for obtaining explicit formulas for the coefficients of generating functions in one variable by using their powers:
- Potential polynomials introduced by Comtet [8];
- Riordan arrays introduced by Shapiro et al. [9];
- Power matrices introduced by Knuth [10];
- Compositae introduced by Kruchinin [11,12].
However, all these concepts are based on the processing of generating functions in one variable. At the same time, there are many problems where the processing of generating functions in several variables (multivariate generating functions) is required. Let us consider some papers that can be cited as examples of such studies, which are based on the use of generating functions. Generating functions are actively used in the study of various lattice paths. For instance, the multivariate generating functions for four classes of lattice paths (walks, bridges, excursions, and excursions) were obtained in [13]. The study of generating functions for the class of walks with small steps in the quarter plane is presented in [14]. There are also works that connect generating functions with other classes of discrete structures, for example: a multivariate generating function for all semi-magic squares was obtained in [15]; a multivariate generating function for information spread on multi-type random graphs was obtained in [16]. Another task related to the development of algorithms for solving a multidimesional difference equation with constant, polynomial, or rational function coefficients can be found in [17]. There are also several studies on the multivariate case of the relationship between the generating function of a solution to a linear Cauchy problem [18,19,20]. These papers are only a small part of the research related to multivariate generating functions and confirm the relevance of the development of methods for processing such generating functions.
The process of obtaining coefficients of multivariate generating functions was studied in more detail by Pemantle et al. [21,22]. However, they considered only asymptotic methods for solving this problem.
To obtain coefficients of multivariate generating functions explicitly, we consider the concept of compositae introduced in our previous studies [23].
Definition 1.
The composita of a multivariate generating function
is a coefficient’s function of the kth power of the generating function :
where .
In this case, the following definition of the order of a formal power series is used [24]:
By applying basic operations on the compositae (composition, addition, multiplication, reciprocation, and compositional inversion), it is possible to obtain explicit formulas for compositae and coefficients of generating functions in two variables (bivariate generating functions). In this paper, we expand these operations on compositae to the case of multivariate generating functions and present an example of their application to a generating function in three variables.
The organization of this paper is as follows. In Section 2, we introduce the following basic operations on compositae of generating functions in three variables: composition, addition, and multiplication. Then, in Section 3, we consider a general scheme for obtaining the coefficients of a rational generating function in n variables. To confirm the effectiveness of using compositae, we present examples of applying the proposed method and obtain explicit formulas for the coefficients of generating functions in three variables. The obtained results are shown in Section 4.
2. Operations on Compositae of Generating Functions in Three Variables
In this section, we consider an extension of the method based on the use of compositae to the case of generating functions in three variables.
A generating function in three variables is a formal power series of the following form:
The k-th power of the generating function , with , based on the concept of compositae, can be presented as follows:
Next, we introduce and prove the following basic operations on compositae of generating functions in three variables: composition, addition, and multiplication. The use of these operations helps to obtain explicit formulas for compositae and coefficients of generating functions in three variables.
2.1. Composition of Generating Functions in Three Variables
First, let us consider the process of obtaining an explicit formula for the coefficients of the generating function in three variables that is the result of the composition of generating functions in three variables.
Theorem 1.
Suppose that:
Then, the coefficients of the composition of generating functions in three variables
are equal to
where
Proof.
Let us expand the given composition of generating functions in three variables and obtain
The end part of this expression can be written as follows:
Combining these formulas, we have
and
We also represent as follows:
where
The coefficients of the product of two generating functions can be obtained using the convolution operation [25]:
Since , and , then for , we have
Thus, we have the following restriction for the indices of summation when calculating in Equation (4):
Combining all the obtained formulas, we derive the desired result that the coefficients of the composition of generating functions in three variables can be calculated by Equation (1). □
We also consider the process of obtaining an explicit formula for the composita of the generating function in three variables .
Theorem 2.
Suppose that:
Then, the composita of the composition of generating functions in three variables
is equal to
where
Proof.
The proof of Theorem 2 is similar to the proof of Theorem 1. □
2.2. Addition of Generating Functions in Three Variables
Next, let us consider the process of obtaining an explicit formula for the composita of the generating function in three variables that is the result of the addition of two generating functions in three variables.
Theorem 3.
Suppose that:
Then, the composita of the addition of generating functions in three variables
is equal to
Proof.
For the bivariate generating function
its k-th power can be obtained by appying the binomial theorem:
In this expression, we use the Kronecker delta function
Hence, the composita of the generating function is
Next, we represent the generating function as the following generating function in three variables:
Hence, the composita of the generating function is
We also consider a generating function in three variables
Applying Theorem 2 for the composition of generating functions
we obtain
where are the coefficients of the generating function
Simplifying expressions of the Kronecker delta function, we obtain and .
Therefore, we have
According to the initial condition for the compositae of multivariate generating functions [23], the value of the composita is equal to 1 only when , and ; otherwise, it is equal to 0. Thus, we obtain , , and . In this case, we derive the following formula for :
Applying Equation (3) for , we obtain
Combining the obtained formulas, we derive the desired result that is presented in Equation (5). □
In a similar way, we can prove the rules for calculating the coefficients of the generating function that is the result of the addition of two generating functions in three variables.
2.3. Multiplication of Generating Functions in Three Variables
Next, let us consider the process of obtaining an explicit formula for the composita of the generating function in three variables that is the result of the multiplication of two generating functions in three variables.
Theorem 4.
Suppose that:
Then, the composita of the multiplication of generating functions in three variables
is equal to
Proof.
To obtain the composita , we can represent the generating function as the following composition of generating functions:
where
Applying Theorem 2 for this composition, we derive the desired result presented in Equation (6).
Moreover, we can obtain the same result by applying the convolution operation to
and we also obtain Equation (6). □
2.4. Recurrence for Calculating Compositae of Generating Functions in Three Variables
Generating functions are widely used when working with recurrence relations. It is also convenient to use recurrences when studying changes in combinatorial objects caused by a change in their parameters. Therefore, there is a need to obtain such recurrences for the coefficients of generating functions.
If we represent the k-th power of as
and apply the convolution operation, then we obtain the following recurrence for calculating compositae:
Hence, if we have an explicit formula or recurrence for the coefficients of a generating function in three variables, then we can also obtain a recurrence for the composita of this generating function. Moreover, such a recurrence can later be applied to obtain a recurrence for the coefficients of the generating function in the calculation of which this composita is used.
3. Method for Obtaining Coefficients of Rational Generating Functions in Variables
Thus, if a given generating function in three variables can be represented as a composition of simpler generating functions with known formulas for their coefficients or compositae, then we can obtain an explicit formula or recurrence for the coefficients or composita of this generating function.
In a similar way, operations on compositae can be expanded to the case of generating functions in n variables. Let us consider a general scheme for obtaining the coefficients of a rational generating function in n variables.
A rational generating function in n variables is the following formal power series [26]:
where and are generating functions in n variables
Then, to obtain an explicit formula for the coefficients , we can use the following method:
- Represent the generating function as the following way of addition of generating functions , where the coefficients and compositae can be easily obtained:
- Obtain explicit formulas or recurrences for the coefficients and compositae ;
- Represent the generating function as the following way of addition of generating functions , where the coefficients and compositae can be easily obtained:
- Obtain explicit formulas or recurrences for the coefficients and compositae ;
- Sequentially performing composition and addition operations for each generating function , obtain an explicit formula or recurrence for the composita of
- Calculate the coefficients ofby applying
- Calculate the coefficients ofby applying the convolution operation, that is,
As a result of performing all the required actions, an explicit formula or recurrence for the coefficients of a given rational generating function in n variables will be obtained. Note that the main task is to decompose the original expression of a given multivariate generating function into simpler ones.
4. Application of Compositae for Obtaining Coefficients of Generating Functions in Three Variables
Next, let us consider examples of applying the proposed method for obtaining coefficients of multivariate generating functions.
4.1. Example 1
Let us consider the following generating function in three variables:
where is the north-going edge probability for the cell centered at in an Aztec diamond of order n [27].
To remove negative powers of variables, consider the following generating function:
According to the proposed method for obtaining coefficients of multivariate generating functions, we represent the generating function as a rational generating function in three variables
where we use the following decomposition of generating functions:
Next, we obtain the required coefficients for generating functions that are used in the presented decomposition.
For the generating function , its coefficients are
and its composita is
For the generating function , its coefficients are
and its composita is
According to Equation (7), the coefficients of the generating function are
Thus, applying the convolution operation, we obtain the following formula for the coefficients of the generating function :
To obtain the composita of the generating function , we use Theorem 2, where
Then, we find the components required for Theorem 2:
Thus, we obtain
For the generating function , its composita is
For the addition of the generating functions , we use Theorem 3 and obtain its composita:
After simplifying, we have
Finally, applying the convolution operation, we obtain the following formula for the coefficients of the generating function :
Combining all the obtained results, we can calculate the north-going edge probability for the cell centered at in an Aztec diamond of order n by using the following formula:
4.2. Example 2
Let us consider the following generating function in three variables:
where is equal to the number of permutations of l elements with n 1-cycles and m 2-cycles [[28] Note III.5].
According to the proposed method for obtaining coefficients of multivariate generating functions, we represent the generating function as a rational generating function in three variables
where we use the following decomposition of generating functions:
Next, we obtain the required coefficients for generating functions that are used in the presented decomposition.
Based on the binomial theorem, the generating functions and have the following compositae:
For the addition of the generating functions , we use Theorem 3 and obtain its composita
After simplifying, we have
For the generating function , its coefficients are
For the composition of the generating functions , we use Theorem 1 and obtain its coefficients
For the generating function , its coefficients are
Finally, applying the convolution operation, we obtain the following formula for the coefficients of the generating function :
5. Discussion
There are several general concepts that allow obtaining explicit formulas for the coefficients of generating functions by using the powers of generating functions in one variable. One such concept is the application of compositae of generating functions. The operations on the compositae of generating functions allow for obtaining explicit formulas and recurrences for coefficients and compositae of generating functions. Our previous studies have shown the applicability of compositae for the case of bivariate generating functions (i.e., for generating functions in two variables). In this paper, we have expanded these operations on compositae to the case of multivariate generating functions. To do this, we have considered in detail the case of generating functions in three variables and then presented a general method for obtaining coefficients of rational generating functions in n variables.
The main restriction for applying the proposed method is: if a given multivariate generating function can be represented as a composition of simpler generating functions with known formulas for their coefficients or compositae, then an explicit formula or recurrence for the coefficients or composita of this generating function can be obtained. The mathematical apparatus of compositae of multivariate generating functions can be applied in different mathematical problems where generating functions are used. For example, if we have a multivariate generating function of the sequence of integers, each of which is equal to the number of objects in a given combinatorial set with fixed parameters, then we can obtain new expressions for the cardinality function of this combinatorial set. If the coefficients of a multivariate generating function are associated with some other mathematical structure, then the proposed method allows obtaining explicit formulas or recurrences for calculating such structures.
To confirm the effectiveness of applying the proposed method, we also present examples of obtaining new explicit formulas for the coefficients of multivariate generating functions. In Example 1, we find a new explicit formula for the coefficients of a generating function connected with an Aztec diamond. In Example 2, we find a new explicit formula for the coefficients of a generating function connected with the cardinality function of the combinatorial set of permutations with cycles.
Thus, the main contribution of this article is the proposed method for obtaining coefficients of rational generating functions in n variables. The essential feature of this method is its generality and the possibility of application to multivariate generating functions. The scheme used in this article to obtain explicit formulas for the coefficients of generating functions in three variables can also be applied to the generating functions in n variables where .
Author Contributions
Methodology, D.K.; software, Y.S.; formal analysis, D.K.; investigation, D.K. and Y.S.; writing—original draft preparation, D.K. and Y.S.; writing—review and editing, Y.S.; supervision, V.K. All authors have read and agreed to the published version of the manuscript.
Funding
The research on explicit formulas was funded by the Russian Foundation for Basic Research grant number 20-31-70037. The research on recurrences was funded by the Russian Science Foundation grant number 22-71-10052.
Data Availability Statement
Not applicable.
Acknowledgments
The authors would like to thank the referees for their helpful comments and suggestions.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Wilf, H.S. Generatingfunctionology; Academic Press: Cambridge, MA, USA, 1994. [Google Scholar]
- Lando, S.K. Lectures on Generating Functions; American Mathematical Society: Providence, RI, USA, 2003. [Google Scholar]
- Stanley, R. Enumerative Combinatorics, 2nd ed.; Cambridge University Press: Cambridge, NJ, USA, 2012. [Google Scholar]
- Shablya, Y.; Kruchinin, D.; Kruchinin, V. Method for developing combinatorial generation algorithms based on AND/OR trees and its application. Mathematics 2020, 8, 962. [Google Scholar] [CrossRef]
- Srivastava, H.M.; Manocha, H.L. A Treatise on Generating Functions (Mathematics and Its Applications); Ellis Horwood: Hemel Hempstead, UK, 1984. [Google Scholar]
- Dolgy, D.V.; Kim, D.S.; Kim, T.; Kwon, J. On fully degenerate Bell numbers and polynomials. Filomat 2020, 34, 507–514. [Google Scholar] [CrossRef]
- Kilar, N.; Simsek, Y.; Srivastava, H.M. Recurrence relations, associated formulas, andcombinatorial sums for some parametrically generalizedpolynomials arising from an analysis of the Laplacetransform and generating functions. Ramanujan J. 2022, 61, 731–756. [Google Scholar] [CrossRef]
- Comtet, L. Advanced Combinatorics; D. Reidel Publishing Company: Dordrecht, The Netherlands, 1974. [Google Scholar]
- Shapiro, L.W.; Getu, S.; Woan, W.J.; Woodson, L.C. The Riordan group. Discrete Appl. Math. 1991, 34, 229–239. [Google Scholar] [CrossRef]
- Knuth, D.E. The Art of Computer Programming, Volume 2: Seminumerical Algorithms, 3rd ed.; Addison-Wesley Professional: Boston, MA, USA, 1997. [Google Scholar]
- Kruchinin, D.V.; Kruchinin, V.V. A method for obtaining generating functions for central coefficients of triangles. J. Integer Seq. 2012, 15, 12.9.3. [Google Scholar]
- Kruchinin, D.V.; Kruchinin, V.V. Application of a composition of generating functions for obtaining explicit formulas of polynomials. J. Math. Anal. Appl. 2013, 404, 161–171. [Google Scholar] [CrossRef]
- Asinowski, A.; Banderier, C. On lattice paths with marked patterns: Generating functions and multivariate Gaussian distribution. In Proceedings of the 31st International Conference on Probabilistic, Combinatorial and Asymptotic Methods for the Analysis of Algorithms (AofA 2020); LIPIcs: Klagenfurt, Austria, 2020; pp. 1:1–1:16. [Google Scholar]
- Bostan, A.; Chyzak, F.; Van Hoeij, M.; Kauers, M.; Pech, L. Hypergeometric expressions for generating functions of walks with small steps in the quarter plane. Eur. J. Combin. 2017, 49, 61–68. [Google Scholar] [CrossRef]
- De Loera, J.A.; Liu, F.; Yoshida, R. A generating function for all semi-magic squares and the volume of the Birkhoff polytope. J. Algebr. Combin. J 2009, 30, 113–139. [Google Scholar] [CrossRef]
- Oz, Y.; Rubinstein, I.; Safra, M. Multivariate generating functions for information spread on multi-type random graphs. J. Stat. Mech. Theory Exp. 2022, 2022, 033501. [Google Scholar] [CrossRef]
- Abramov, S.A.; Barkatou, M.A.; Van Hoeij, M.; Petkovsek, M. Subanalytic solutions of linear difference equations and multidimensional hypergeometric sequences. J. Symb. Comput. 2011, 46, 1205–1228. [Google Scholar] [CrossRef]
- Leinartas, E.K.; Lyapin, A.P. On the rationality of multidimentional recusive series. J. Sib. Fed. Univ. Math. Phys. 2009, 2, 449–455. [Google Scholar]
- Kytmanov, A.A.; Lyapin, A.P.; Sadykov, T.M. Evaluating the rational generating function for the solution of the Cauchy problem for a two-dimensional difference equation with constant coefficients. Program. Comput. Softw. 2017, 43, 105–111. [Google Scholar] [CrossRef]
- Apanovich, M.S.; Lyapin, A.P.; Shadrin, K.V. Solving the Cauchy problem for a three-dimensional difference equation in a parallelepiped. Program. Comput. Softw. 2023, 49, 61–68. [Google Scholar] [CrossRef]
- Pemantle, R.; Wilson, M.C. Twenty combinatorial examples of asymptotics derived from multivariate generating functions. SIAM Rev. 2008, 50, 199–272. [Google Scholar] [CrossRef]
- Asymptotics of Multivariate Sequences. Available online: www.cs.auckland.ac.nz/~mcw/Research/mvGF/asymultseq/ (accessed on 20 March 2023).
- Kruchinin, D.; Kruchinin, V.; Shablya, Y. Method for obtaining coefficients of powers of bivariate generating functions. Mathematics 2021, 9, 428. [Google Scholar] [CrossRef]
- Gan, X.X.; Bugajewski, D. A note on formal power series. Comment. Math. Univ. Carolin. 2010, 51, 595–604. [Google Scholar]
- Miller, S.J. Generating functions and convolutions. In The Probability Lifesaver; Princeton University Press: Princeton, NJ, USA, 2017; pp. 494–526. [Google Scholar]
- Bousquet-Melou, M.; Petkovsek, M. Linear recurrences with constant coefficients: The multivariate case. Discret. Math. 2000, 225, 51–75. [Google Scholar] [CrossRef]
- Propp, J. Generalized domino-shuffling. Theoret. Comput. Sci. 2003, 303, 267–301. [Google Scholar] [CrossRef]
- Flajolet, P.; Sedgewick, R. Analytic Combinatorics; Cambridge University Press: New York, NY, USA, 2009. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).