The alternating run polynomials of permutations
Shi-Mei Ma, Jun Ma, Yeong-Nan Yeh

TL;DR
This paper explores the properties of alternating run polynomials in permutations, generalizes related identities, and introduces semi-gamma-positivity, providing new combinatorial interpretations and connections between different permutation classes.
Contribution
It presents a generalization of the David-Barton identity, offers a combinatorial interpretation of q-alternating run polynomials, and introduces the concept of semi-gamma-positivity for these polynomials.
Findings
Generalized David-Barton identity relating alternating run and Eulerian polynomials
Combinatorial interpretation of q-alternating run polynomials using grammars
Proved semi-gamma-positivity of alternating run polynomials of dual Stirling permutations
Abstract
In this paper, we first consider a generalization of the David-Barton identity which relate the alternating run polynomials to Eulerian polynomials. By using context-free grammars, we then present a combinatorial interpretation of a family of q-alternating run polynomials. Furthermore, we introduce the definition of semi-gamma-positive polynomial and we show the semi-gamma-positivity of the alternating run polynomials of dual Stirling permutations. A connection between the up-down run polynomials of permutations and the alternating run polynomials of dual Stirling permutations is established.
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 · Bayesian Methods and Mixture Models
The alternating run polynomials of permutations
Shi-Mei Ma
School of Mathematics and Statistics, Northeastern University at Qinhuangdao, Hebei 066000, P.R. China
,
Jun Ma
Department of mathematics, Shanghai Jiao Tong University, Shanghai, P.R. China
and
Yeong-Nan Yeh
Institute of Mathematics, Academia Sinica, Taipei, Taiwan
Abstract.
In this paper, we first consider a generalization of the David-Barton identity which relate the alternating run polynomials to Eulerian polynomials. By using context-free grammars, we then present a combinatorial interpretation of a family of -alternating run polynomials. Furthermore, we introduce the definition of semi--positive polynomial and we show the semi--positivity of the alternating run polynomials of dual Stirling permutations. A connection between the up-down run polynomials of permutations and the alternating run polynomials of dual Stirling permutations is established.
Keywords: Alternating runs; Eulerian polynomials; Semi--positivity; Stirling permutations
2010 Mathematics Subject Classification:
Primary 05A05; Secondary 05A15
1. Introduction
The enumeration of permutations by number of alternating runs was first studied by André [1]. Knuth [19, Section 5.1.3] has discussed this topic in connection to sorting and searching. Over the past few decades, the study of alternating runs of permutations was initiated by David and Barton [12, 157-162].
Let denote the symmetric group of all permutations of . Let . An alternating run of is a maximal consecutive subsequence that is increasing or decreasing (see [1, 22]). An up-down run of is an alternating run of endowed with a 0 in the front (see [13, 22]). Let (resp. ) be the number of alternating runs (resp. up-down runs) of . For example, if , then . We define
[TABLE]
It is well known that these numbers satisfy the following recurrence relations
[TABLE]
[TABLE]
with the initial conditions and for , and for (see [1, 13]). The alternating run polynomial and up-down run polynomial are respectively defined by and .
A descent of is an index such that . Denote by the number of descents of . The classical Eulerian polynomial is defined by . By solving a differential equation, David and Barton [12, 157-162] established the identity:
[TABLE]
for , where . Using (2), Bóna proved that the polynomial has only real zeros (see [4]). Moreover, one can prove that has the zero with the multiplicity by using (2), which can also be obtained based on the recurrence relation of (see [25]). Motivated by (2), Zhuang [31] proved several identities expressing polynomials counting permutations by various descent statistics in terms of Eulerian polynomials.
Let us now recall another combinatorial interpretation of . An alternating subsequence of is a subsequence satisfying
[TABLE]
where (see [28]). Denote by the number of terms of the longest alternating subsequence of . By definition, we see that . Thus
[TABLE]
There has been much recent work related to the numbers and . In [3], Bóna and Ehrenborg proved that . Subsequently, Bóna [4, Section 1.3.2] noted that
[TABLE]
for . Set . Stanley [28, Theorem 2.3] showed that
[TABLE]
By using (3) and (4), Stanley [28] obtained explicit formulas of and . Canfield and Wilf [6] presented an asymptotic formula for . In [21], another explicit formula of was obtained by combining the derivative polynomials of tangent function and the following generating function obtained by Carlitz [7]:
[TABLE]
In [22], several convolution formulas of the polynomials and are obtained by using Chen’s grammars. By generalizing a reciprocity formula of Gessel, Zhuang [30] obtained generating function for permutation statistics that are expressible in terms of alternating runs. Very recently, Josuat-Vergès and Pang [18] showed that alternating runs can be used to define subalgebras of Solomon’s descent algebra.
In this paper, we continue the work initiated by David and Barton [12]. In Section 2, we consider a generalization of (2). In Section 3, we present a combinatorial interpretation of a family of -alternating run polynomials by using Chen’s grammars. In Section 4, we show the semi--positivity of the alternating run polynomials of dual Stirling permutations.
2. The David-Barton type identity
Let be a symmetric polynomial, i.e., for any . Then can be expanded uniquely as
[TABLE]
and it is said to be -positive if for (see [15]). The -positivity provides an approach to study symmetric and unimodal polynomials and has been extensively studied (see [2, 5, 10, 20] for instance).
The first main result of our paper is the following, which shows that the David-Barton type identities often occur in combinatorics and geometry.
Theorem 1**.**
Let
[TABLE]
be a symmetric polynomial, where is a fixed integer. Set . Then
[TABLE]
if and only if
[TABLE]
Proof.
Set . Note that
[TABLE]
It follows from (5) that
[TABLE]
and vice versa. This completes the proof. ∎
The reader is referred to [2] for a survey of some recent results on -positivity. For any -positive polynomial , we can define an associated polynomial by using (6). And then we get a David-Barton type identity (5). As illustrations, in the rest of this section, we shall present two examples.
For example, Foata and Schützenberger [14] discovered that
[TABLE]
for , where the numbers satisfy the recurrence relation
[TABLE]
with the initial conditions and for (see [10, 26] for instance). By using the David-Barton identity (2) and Theorem 1, we immediately get the following result.
Proposition 2**.**
For , we have
[TABLE]
Let . Let be the hyperoctahedral group of rank . Elements of are signed permutations of with the property that for all . In the sequel, we always assume that signed permutations in are prepended by 0. That is, we identify a signed permutation with the word , where . A type descent is an index such that . Let be the number of type descents of . The type Eulerian polynomials are defined by
[TABLE]
It is well known that
[TABLE]
where the numbers satisfy the recurrence relation
[TABLE]
with the initial conditions and for (see [2, 10, 26]).
Define
[TABLE]
Then by Theorem 1, we get the following result.
Proposition 3**.**
For , we have
[TABLE]
Combining (7) and (8), we see that the polynomials satisfy the recurrence relation
[TABLE]
with the initial conditions . For , we define . It follows from (9) that the polynomials satisfy the recurrence relation
[TABLE]
Let . There is a combinatorial interpretation of (see [11, 29]):
[TABLE]
3. The -alternating runs polynomials
For an alphabet , let be the rational commutative ring of formal power series in monomials formed from letters in . A Chen’s grammar (which is known as context-free grammar) over is a function that replaces a letter in by an element of , see [8, 9, 24] for details. The formal derivative is a linear operator defined with respect to a context-free grammar . Following [9], a grammatical labeling is an assignment of the underlying elements of a combinatorial structure with variables, which is consistent with the substitution rules of a grammar.
Let us now recall two results on context-free grammars.
Proposition 4** ([22, Theorem 6]).**
If , then
[TABLE]
Proposition 5** ([22, Theorem 9]).**
If , then
[TABLE]
Combining Leibniz’s formula and Proposition 4, we see that
[TABLE]
Motivated by Propositions 4 and 5, it is natural to consider the grammar
[TABLE]
Note that . By induction, it is easy to verify that
[TABLE]
It follows from (10) that
[TABLE]
which leads to the recurrence relation
[TABLE]
The -alternating run polynomials are defined by
[TABLE]
In particular, , The first few are given as follows:
[TABLE]
We define
[TABLE]
Proposition 6**.**
We have , where is given by (4). Therefore,
[TABLE]
Moreover, we have and .
Proof.
By rewriting (12) in terms of generating function , we obtain
[TABLE]
It is routine to check that the generating function satisfies (14). Also, this generating function gives . Hence . It is routine to check that
[TABLE]
which leads to the desired result. ∎
We say that is a circular permutation if it has only one cycle. Let be a finite set of positive integers, and let be the set of all circular permutations of . We will write a permutation by using its canonical presentation , where for and . A cycle peak (resp. cycle double ascent, cycle double descent) of is an entry , , such that (resp. , ), where we set . Let (resp. , , ) be the number of cycle peaks (resp. cycle double ascents, cycle double descents, cycles) of .
Definition 7**.**
A cycle run of a circular permutation is an alternating run of endowed with a in the end. Let be the number of cycle runs of .
It is clear that . In the following discussion we always write in standard cycle decomposition: , where the cycles are written in increasing order of their smallest entry and each of these cycles is expressed in canonical presentation. We define
[TABLE]
In particular, . We can now present the second main result.
Theorem 8**.**
For , we have
[TABLE]
Proof.
For , we first put a in the end of each cycle. We then introduce a grammatical labeling of as follows:
- ()
Put a subscript label at the end of each cycle of ;
- ()
Put a superscript label at the end of ;
- ()
Put a superscript label before each ;
- ()
If is a cycle peak, then put a superscript label before and a superscript label right after ;
- ()
If is a cycle double ascents, then put the superscript label before ;
- ()
If is a cycle double descents, then put the superscript label right after .
The weight of is the product of its labels. When , we have
[TABLE]
Then the weight of is given by , and the sum of weights of the elements in is given by . Hence the result holds for . Let
[TABLE]
Suppose we get all labeled permutations in , where . Let be obtained from by inserting the entry . We distinguish the following four cases:
- ()
If we insert as a new cycle, then . This case corresponds to the substitution rule .
- ()
If we insert before a , then . This case corresponds to the substitution rule ;
- ()
If we insert before or right after a cycle peak, then . This case corresponds to the substitution rule ;
- ()
If we insert before a cycle double ascents or right after a cycle double descents, then . This case corresponds to the substitution rule .
In each case, the insertion of corresponds to one substitution rule in the grammar (10). It is easy to check that the action of on elements of generates all elements of . Using (11) and by induction, we present a constructive proof of (15). This completes the proof. ∎
We define
[TABLE]
[TABLE]
By using the principle of inclusion-exclusion, it is routine to verify that
[TABLE]
Hence
[TABLE]
A permutation is a derangement if for any . Let denote the set of derangements in . Then
[TABLE]
Proposition 9**.**
Set . Then the polynomials satisfy the recurrence
[TABLE]
with the initial conditions . In particular, for .
Proof.
Let . It follow from (16) that
[TABLE]
By rewriting (1) in terms of generating function , we obtain
[TABLE]
Hence
[TABLE]
which yields the desired recurrence relation. ∎
Let . By using (18), it is not hard to verify that
[TABLE]
4. Semi--positive polynomials
Let be a symmetric polynomial. Note that
[TABLE]
Hence can be expanded as
[TABLE]
It is clear that if for all , then for all . Furthermore, we have
[TABLE]
Similarly, if a symmetric polynomial, then we have
[TABLE]
Hence can be expanded as
[TABLE]
Definition 10**.**
If and for all , then we say that is semi--positive, where or .
It should be noted that a semi--positive polynomial is not always -positive. From the above discussion it follows that we have the following result.
Proposition 11**.**
If is a semi--positive polynomial, then both and are -positive.
In the following, we shall show the semi--positivity of the alternating run polynomials of dual Stirling permutations. Following [16], a Stirling permutation of order is a permutation of the multiset such that for each , , all entries between the two occurrences of are larger than . There has been much recent work on Stirling permutations, see [17, 24] and references therein.
Denote by the set of Stirling permutations of order . Let . Let be the injection which maps each first occurrence of entry in to and the second to , where . For example, . Let be the set of dual Stirling permutations of order . Clearly, is a subset of . For , the entry is to the left of , and all entries in between and are larger than , where . Noted that always ends with a descending run. The alternating runs polynomials of dual Stirling permutations are defined by
[TABLE]
According to [23], the numbers satisfy the recurrence relation
[TABLE]
with the initial conditions and for . It follows from (19) that
[TABLE]
The first few are given as follows:
[TABLE]
Let
[TABLE]
By induction, it is to verify that
[TABLE]
Lemma 12** ([23]).**
If
[TABLE]
then we have
[TABLE]
We now recall another combinatorial interpretation of . An occurrence of an ascent-plateau of is an index such that , where . An occurrence of a left ascent-plateau is an index such that , where and . Let and be the numbers of ascent-plateaus and left ascent-plateaus of , respectively. The number of flag ascent-plateaus of is defined by
[TABLE]
Clearly, . Following [24, Section 3], we have
[TABLE]
Thus,
[TABLE]
In fact, it is easy to verify that for any .
Proposition 13**.**
For , we have
[TABLE]
where the numbers satisfy the recurrence relation
[TABLE]
with the initial conditions and for . In particular,
[TABLE]
Proof.
We first consider a change of the grammar (20). Set and . Then we have . If
[TABLE]
then by induction, we see that there exist integers such that
[TABLE]
Note that
[TABLE]
By comparing the coefficients of , we immediately get (22). Moreover, it is clear that for . By using (23), upon taking and , we get
[TABLE]
Then comparing (24) with (21), we see that for . By using (22), we obtain
[TABLE]
which yields the desired explicit formula. ∎
For , let . It follows from (22) that
[TABLE]
The first few are . From Proposition 13, we see that for any positive even integer , the polynomial is not -positive.
We can now present the third main result of this paper.
Theorem 14**.**
The polynomial is semi--positive. More precisely, we have
[TABLE]
where the numbers satisfy the recurrence relation
[TABLE]
with the initial conditions and for . Let . Then
[TABLE]
where is given by (4).
Proof.
We first consider the grammar (20). Note that
[TABLE]
Set and . Then we have and . If
[TABLE]
then by induction we see that there exist nonnegative integers such that
[TABLE]
Note that
[TABLE]
By comparing the coefficients of , we get (25). Moreover, it follows from (27) that and for . By using (28), upon taking and , we get
[TABLE]
By comparing (29) with (21), we get
[TABLE]
We now consider a change of the grammar (10). Set . Then
[TABLE]
which are the substitution rules in the grammar (27). Hence it follows from (13) that
[TABLE]
which leads to . This completes the proof. ∎
Combining (26) and (30), we immediately get the following result.
Corollary 15**.**
We have
[TABLE]
It would be interesting to present a combinatorial interpretation of Corollary 15. By using (26), it is not hard to verify that
[TABLE]
It should be noted that the numbers appear as A012259 in [27].
5. Concluding remarks
This paper gives a survey of some results related to alternating runs of permutations. We present a method to construct David-Barton type identities, and based on the survey [2], one can derive several David-Barton type identities. Moreover, we introduce the definition of semi--positive polynomial. The -positivity of a polynomial is a sufficient (not necessary) condition for the semi--positivity of . In particular, we show that the alternating run polynomials of dual Stirling permutations are semi--positive.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] D. André, Étude sur les maxima, minima et séquences des permutations, Ann. Sci. École Norm. Sup. , 3(1) (1884), 121–135.
- 2[2] C.A. Athanasiadis, Gamma-positivity in combinatorics and geometry, Sém. Lothar. Combin. , 77 (2018), Article B 77i.
- 3[3] M. Bóna, R. Ehrenborg, A combinatorial proof of the log-concavity of the numbers of permutations with k runs, J. Combin. Theory Ser. A , 90 (2000), 293–303.
- 4[4] M. Bóna, Combinatorics of Permutations, second ed., CRC Press, Boca Raton, FL, 2012.
- 5[5] P. Brändén, Actions on permutations and unimodality of descent polynomials, European J. Combin. , 29 (2008), 514–531.
- 6[6] E.R. Canfield, H. Wilf, Counting permutations by their alternating runs, J. Combin. Theory Ser. A , 115 (2008), 213–225.
- 7[7] L. Carlitz, Enumeration of permutations by sequences, Fibonacci Quart. , 16 (3) (1978), 259–268.
- 8[8] W.Y.C. Chen, Context-free grammars, differential operators and formal power series, Theoret. Comput. Sci. , 117 (1993), 113–129.
