A context-free grammar for peaks and double descents of permutations

This paper is concerned with the joint distribution of the number of exterior peaks and the number of proper double descents over permutations on $[n] =\{1,2,\ldots,n\}$. The notion of exterior peaks of a permutation was introduced by Aguiar, Bergeron and Nyman in their study of the peak algebra. Gessel obtained the generating function of the number of permutations on $[n]$ with a given number of exterior peaks. On the other hand, by establishing differential equations, Elizalde and Noy derived the generating function for the number of permutations on $[n]$ with a given number of proper double descents. Barry and Basset independently deduced the generating function of the number of permutations on $[n]$ with no proper double descents. We find a context-free grammar which can be used to compute the number of permutations on $[n]$ with a given number of exterior peaks and a given number of proper double descents. Based on the grammar, the recurrence relation of the number of permutations on $[n]$ with a given number of exterior peaks can be easily obtained. Moreover, we use the grammatical calculus to derive the generating function without solving differential equations. Our formula reduces to the formulas of Gessel, Elizalde-Noy, Barry, and Basset. Finally, from the grammar we establish a relationship between our generating function and the generating function of the joint distribution of the number of peaks and the number of double descent derived by Carlitz and Scoville.

[1]  Yeong-Nan Yeh,et al.  Context-Free Grammars for Several Polynomials Associated with Eulerian Polynomials , 2018, Electron. J. Comb..

[2]  D. Dumont William Chen grammars and derivations in trees and arborescences. (Grammaires de William Chen et dérivations dans les arbres et arborescences.) , 1996 .

[3]  Kathryn L. Nyman,et al.  The peak algebra and the descent algebras of types B and D , 2003, math/0302278.

[4]  Marc Noy,et al.  Consecutive patterns in permutations , 2003, Adv. Appl. Math..

[5]  Amy M. Fu,et al.  Context-free grammars for permutations and increasing trees , 2017, Adv. Appl. Math..

[6]  Guo-Niu Han,et al.  Arbres minimax et polynômes d'André , 2001, Adv. Appl. Math..

[7]  Nicolas Basset Counting and Generating Permutations Using Timed Languages , 2014, LATIN.

[8]  D. Foata CHAPTER 16 – Nombres d'Euler et Permutations Alternantes , 1973 .

[9]  Dominique Dumont,et al.  Grammaire de Ramanujan et arbres de Cayley , 1996, Electron. J. Comb..

[10]  Paul Barry Constructing Exponential Riordan Arrays from Their A and Z Sequences , 2014, J. Integer Seq..

[11]  I. Goulden,et al.  Combinatorial Enumeration , 2004 .

[12]  William Y. C. Chen,et al.  Context-Free Grammars, Differential Operators and Formal Power Series , 1993, Theor. Comput. Sci..

[13]  Charalambos A. Charalambides,et al.  Enumerative combinatorics , 2018, SIGA.

[14]  I. Gessel Generating functions and enumeration of sequences. , 1977 .

[15]  A. Kuznetsov,et al.  Increasing trees and alternating permutations , 1994 .

[16]  Shi-Mei Ma,et al.  Derivative polynomials and enumeration of permutations by number of interior and left peaks , 2012, Discret. Math..