Quadrant marked mesh patterns in 123-avoiding permutations

Similar documents
Inversion Formulae on Permutations Avoiding 321

Notes on the symmetric group

arxiv: v1 [math.co] 6 Oct 2009

Permutation Factorizations and Prime Parking Functions

A relation on 132-avoiding permutation patterns

Classifying Descents According to Parity

LECTURE 3: FREE CENTRAL LIMIT THEOREM AND FREE CUMULANTS

arxiv: v1 [math.co] 31 Mar 2009

CATEGORICAL SKEW LATTICES

Yao s Minimax Principle

Game Theory: Normal Form Games

Collinear Triple Hypergraphs and the Finite Plane Kakeya Problem

Palindromic Permutations and Generalized Smarandache Palindromic Permutations

On the Number of Permutations Avoiding a Given Pattern

Rises in forests of binary shrubs

MAT 4250: Lecture 1 Eric Chung

TWO-PERIODIC TERNARY RECURRENCES AND THEIR BINET-FORMULA 1. INTRODUCTION

The Sorting Index and Permutation Codes. Abstract

Laurence Boxer and Ismet KARACA

IEOR E4004: Introduction to OR: Deterministic Models

Lattice Paths and Their Generalizations

MATH 121 GAME THEORY REVIEW

Maximum Contiguous Subsequences

MAKING SENSE OF DATA Essentials series

Math489/889 Stochastic Processes and Advanced Mathematical Finance Homework 4

Math 167: Mathematical Game Theory Instructor: Alpár R. Mészáros

maps 1 to 5. Similarly, we compute (1 2)(4 7 8)(2 1)( ) = (1 5 8)(2 4 7).

TABLEAU-BASED DECISION PROCEDURES FOR HYBRID LOGIC

Algebra homework 8 Homomorphisms, isomorphisms

ECON Micro Foundations

On the h-vector of a Lattice Path Matroid

Essays on Some Combinatorial Optimization Problems with Interval Data

Chapter 6: Supply and Demand with Income in the Form of Endowments

ELEMENTS OF MATRIX MATHEMATICS

Permutation patterns and statistics

Factors of 10 = = 2 5 Possible pairs of factors:

Non replication of options

The Traveling Salesman Problem. Time Complexity under Nondeterminism. A Nondeterministic Algorithm for tsp (d)

Interpolation. 1 What is interpolation? 2 Why are we interested in this?

On the Optimality of a Family of Binary Trees Techical Report TR

NOTES ON FIBONACCI TREES AND THEIR OPTIMALITY* YASUICHI HORIBE INTRODUCTION 1. FIBONACCI TREES

Investigating First Returns: The Effect of Multicolored Vectors

Catalan functions and k-schur positivity

Outline. 1 Introduction. 2 Algorithms. 3 Examples. Algorithm 1 General coordinate minimization framework. 1: Choose x 0 R n and set k 0.

SYLLABUS AND SAMPLE QUESTIONS FOR MSQE (Program Code: MQEK and MQED) Syllabus for PEA (Mathematics), 2013

No-arbitrage theorem for multi-factor uncertain stock model with floating interest rate

NEW PERMUTATION CODING AND EQUIDISTRIBUTION OF SET-VALUED STATISTICS. Dominique Foata and Guo-Niu Han

Conformal Invariance of the Exploration Path in 2D Critical Bond Percolation in the Square Lattice

3: Balance Equations

Orthogonality to the value group is the same as generic stability in C-minimal expansions of ACVF

The Binomial Theorem and Consequences

The Pill Problem, Lattice Paths and Catalan Numbers

A NEW NOTION OF TRANSITIVE RELATIVE RETURN RATE AND ITS APPLICATIONS USING STOCHASTIC DIFFERENTIAL EQUATIONS. Burhaneddin İZGİ

THE TRAVELING SALESMAN PROBLEM FOR MOVING POINTS ON A LINE

MAC Learning Objectives. Learning Objectives (Cont.)

MATH 5510 Mathematical Models of Financial Derivatives. Topic 1 Risk neutral pricing principles under single-period securities models

A No-Arbitrage Theorem for Uncertain Stock Model

4: SINGLE-PERIOD MARKET MODELS

3.1 Properties of Binomial Coefficients

4: Single Cash Flows and Equivalence

Application of an Interval Backward Finite Difference Method for Solving the One-Dimensional Heat Conduction Problem

Lecture 4: Divide and Conquer

Discrete Mathematics for CS Spring 2008 David Wagner Final Exam

LECTURE 2: MULTIPERIOD MODELS AND TREES

arxiv: v1 [math.lo] 24 Feb 2014

The ruin probabilities of a multidimensional perturbed risk model

Lecture 2: The Simple Story of 2-SAT

Lecture 3: Factor models in modern portfolio choice

This appendix discusses two extensions of the cost concepts developed in Chapter 10.

Lie Algebras and Representation Theory Homework 7

1 Implied Volatility from Local Volatility

3.2 No-arbitrage theory and risk neutral probability measure

3 The Model Existence Theorem

Taxation and Efficiency : (a) : The Expenditure Function

The Forward PDE for American Puts in the Dupire Model

A Property Equivalent to n-permutability for Infinite Groups

Tug of War Game. William Gasarch and Nick Sovich and Paul Zimand. October 6, Abstract

Methods and Models of Loss Reserving Based on Run Off Triangles: A Unifying Survey

Finance: A Quantitative Introduction Chapter 7 - part 2 Option Pricing Foundations

On Packing Densities of Set Partitions

Laurence Boxer and Ismet KARACA

7-4. Compound Interest. Vocabulary. Interest Compounded Annually. Lesson. Mental Math

15-451/651: Design & Analysis of Algorithms October 23, 2018 Lecture #16: Online Algorithms last changed: October 22, 2018

CS134: Networks Spring Random Variables and Independence. 1.2 Probability Distribution Function (PDF) Number of heads Probability 2 0.

Foundational Preliminaries: Answers to Within-Chapter-Exercises

The illustrated zoo of order-preserving functions

CSE 21 Winter 2016 Homework 6 Due: Wednesday, May 11, 2016 at 11:59pm. Instructions

TR : Knowledge-Based Rational Decisions and Nash Paths

Counting Basics. Venn diagrams

Economics 101. Lecture 3 - Consumer Demand

Maximizing Winnings on Final Jeopardy!

Binomial Coefficient

Elementary Statistics

The Turing Definability of the Relation of Computably Enumerable In. S. Barry Cooper

6.896 Topics in Algorithmic Game Theory February 10, Lecture 3

Regret Minimization and Security Strategies

Generating all nite modular lattices of a given size

THE LYING ORACLE GAME WITH A BIASED COIN

Strategic Trading of Informed Trader with Monopoly on Shortand Long-Lived Information

Gödel algebras free over finite distributive lattices

Transcription:

Quadrant marked mesh patterns in 23-avoiding permutations Dun Qiu Department of Mathematics University of California, San Diego La Jolla, CA 92093-02. USA duqiu@math.ucsd.edu Jeffrey Remmel Department of Mathematics University of California, San Diego La Jolla, CA 92093-02. USA jremmel@ucsd.edu April 29, 207 Abstract Given a permutation σ = σ... σ n in the symmetric group S n, we say that σ i matches the marked mesh pattern MMP(a, b, c, d) in σ if there are at least a points to the right of σ i in σ which are greater than σ i, at least b points to left of σ i in σ which are greater than σ i, at least c points to left of σ i in σ which are smaller than σ i, and at least at least d points to right of σ i in σ which are smaller than σ i. Kitaev, Remmel, and Tiefenbruck [3, 4, 5] systematically studied the distribution of the number of matches of MMP(a, b, c, d) in 32-avoiding permutations. The operation of reverse and complement on permutations allow one to translate their results to find the distribution of the number of MMP(a, b, c, d) matches in 23-avoiding, 23-avoiding, and 32-avoiding permutations. In this paper, we study the distribution of the number of matches of MMP(a, b, c, d) in 23-avoiding permutations. We provide explicit recurrence relations to enumerate our objects which can be used to give closed forms for the generating functions associated with such distributions. In many cases, we provide combinatorial explanations of the coefficients that appear in our generating functions. Keywords: permutation statistics, marked mesh pattern, Catalan number, Dyck path Introduction Given a sequence w = w... w n of distinct integers, let red[w] be the permutation found by replacing the i-th largest integer that appears in σ by i. For example, if σ = 2754, then red[σ] = 432. Given a permutation τ = τ... τ j in the symmetric group S j, we say that the pattern τ occurs in σ = σ... σ n S n provided there exists i < < i j n such that red[σ i... σ ij ] = τ. We say that a permutation σ avoids the pattern τ if τ does not occur in σ. Let S n (τ) denote the set of permutations in S n which avoid τ. In the theory of permutation patterns, τ is called a classical pattern. See [8] for a comprehensive introduction to patterns in permutations. The main goal of this paper is to study the distribution of quadrant marked mesh patterns in 23-avoiding permutations. The notion of mesh patterns was introduced by Brändén and Claesson [2] to provide explicit expansions for certain permutation statistics as, possibly infinite, linear combinations of (classical) permutation patterns. This notion was further studied in [, 7, 9, 0, 9]. Kitaev and Remmel [0] initiated the systematic study of distribution of quadrant marked mesh patterns on permutations. The study was extended to 32-avoiding permutations by Kitaev, Remmel and Tiefenbruck in [3, 4, 5]. Kitaev and Remmel also studied the distribution of quadrant marked mesh patterns in up-down and down-up permutations in [, 2].

Let σ = σ... σ n be a permutation written in one-line notation. Then we will consider the graph of σ, G(σ), to be the set of points (i, σ i ) for i =,..., n. For example, the graph of the permutation σ = 47569283 is pictured in Figure. Then if we draw a coordinate system centered at a point (i, σ i ), we will be interested in the points that lie in the four quadrants I, II, III, and IV of that coordinate system as pictured in Figure. For any a, b, c, d N where N = {0,, 2,...} is the set of natural numbers and any σ = σ... σ n S n, we say that σ i matches the quadrant marked mesh pattern MMP(a, b, c, d) in σ if, in G(σ) relative to the coordinate system which has the point (i, σ i ) as its origin, there are at least a points in quadrant I, at least b points in quadrant II, at least c points in quadrant III, and at least d points in quadrant IV. For example, if σ = 47569283, the point σ 4 = 5 matches the marked mesh pattern MMP(2,, 2, ) since, in G(σ) relative to the coordinate system with the origin at (4, 5), there are 3 points in quadrant I, point in quadrant II, 2 points in quadrant III, and 2 points in quadrant IV. Note that if a coordinate in MMP(a, b, c, d) is 0, then there is no condition imposed on the points in the corresponding quadrant. Thus σ i matches the marked mesh pattern MMP(a, b, c, d) in σ if there are at least a points to the right of σ i in σ which are greater than σ i, at least b points to left of σ i in σ which are greater than σ i, at least c points to left of σ i in σ which are smaller than σ i, and at least at least d points to right of σ i in σ which are smaller than σ i. In addition, we shall consider the patterns MMP(a, b, c, d) where a, b, c, d N { }. Here when a coordinate of MMP(a, b, c, d) is the empty set, then for σ i to match MMP(a, b, c, d) in σ = σ... σ n S n, it must be the case that there are no points in G(σ) relative to the coordinate system with the origin at (i, σ i ) in the corresponding quadrant. For example, if σ = 47569283, the point σ 3 = matches the marked mesh pattern MMP(4, 2,, ) since, in G(σ) relative to the coordinate system with the origin at (3, ), there are 6 points in quadrant I, 2 points in quadrant II, no points in quadrants III and IV. We let mmp (a,b,c,d) (σ) denote the number of i such that σ i matches MMP(a, b, c, d) in σ. 9 8 7 6 5 4 3 2 II III I IV 2 3 4 5 6 7 8 9 Figure : The graph of σ = 47569283. Next we give some examples of how the (two-dimensional) notation of Úlfarsson [9] for marked mesh patterns corresponds to our (one-line) notation for quadrant marked mesh patterns. For example, 2

MMP(0, 0, k, 0) = k, MMP(k, 0, 0, 0) = k, MMP(0, a, b, c) = a b c and MMP(0, 0,, k) = k. Given a permutation τ = τ... τ j S j, it is a natural question to study the distribution of quadrant marked mesh patterns in S n (τ). That is, one wants to study generating function of the form Q (a,b,c,d) τ (t, x) = + t n Q (a,b,c,d) n,τ (x) n where for any a, b, c, d { } N, Q (a,b,c,d) n,τ (x) = σ S n(τ) x mmp(a,b,c,d) (σ). For any a, b, c, d, we will write Q (a,b,c,d) n,τ (x) x k for the coefficient of x k in Q (a,b,c,d) n,τ (x). Given a permutation σ = σ σ 2... σ n S n, we let the reverse of σ, σ r, be defined by σ r = σ n... σ 2 σ, and the complement of σ, σ c, be defined by σ c = (n + σ )(n + σ 2 )... (n + σ n ). It is easy to see that the family of generating functions Q (a,b,c,d) τ r (t, x), Q(a,b,c,d) τ c (t, x), and Q(a,b,c,d) (τ r ) (t, x) can be c obtained from the family of generating functions Q (a,b,c,d) τ (t, x). Kitaev, Remmel, and Tiefenbruck systematically studied the generating functions Q (a,b,c,d) 32 (t, x). Since S n (32) is closed under inverses, there is a natural symmetry on these generating functions. That is, we have the following lemma. Lemma. ([3]) For any a, b, c, d { } N, Q (a,b,c,d) n,32 (x) = Q (a,d,c,b) n,32 (x). In [3], Kitaev, Remmel and Tiefenbrick proved the following. Theorem. ([3, Theorem 4]) and, for k, Theorem 2. ([3, Theorem 5]) Q (0,0,0,0) 32 (t, x) = C(xt) = 4xt 2xt Q (k,0,0,0) 32 (t, x) = tq (k,0,0,0) 32 (t, x). For k, Q (0,0,,0) 32 (t, x) = ( + t tx) ( + t tx) 2 4t. () 2t Q (k,0,,0) 32 (t, x) = tq (k,0,,0) 32 (t, x). (2) 3

Theorem 3. ([3, Theorem 8]) For k, Q (0,0,k,0) + (tx t)( k j=0 32 (t, x) = C jt j ) ( + (tx t)( k j=0 C jt j )) 2 4tx 2tx 2 = + (tx t)( k j=0 C jt j ) + ( + (tx t)(. k j=0 C jt j )) 2 4tx By Lemma, Q (0,k,0,0) 32 (t, x) = Q (0,0,0,k) 32 (t, x) so the remaining two cases of Q (a,b,c,d) 32 (t, x) where a, b, c, d N and exactly one of a, b, c, d is not zero is covered by the following theorem. Theorem 4. ([3, Theorem 2]) Q (0,,0,0) 32 (t, x) = tc(tx). (3) For k >, and Q (0,k,0,0) 32 (t, x) = + t k 2 j=0 C jt j (Q (0,k j,0,0) 32 (t, x) C(tx)) tc(tx) Q (0,k,0,0) 32 (t, 0) = + t k 2 j=0 C jt j (Q (0,k j,0,0) 32 (t, 0) ). (5) t (4) In [4], Kiteav, Remmel, and Tiefenbruck used the results above to cover the cases Q (a,b,c,d) 32 (t, x) where a, b, c, d N and exactly two of a, b, c, d are not zero. For example, they proved the following. Theorem 5. For all k, l, Theorem 6. For all k, l, Q (k,0,0,l) 32 (t, x) = Q (k,0,l,0) 32 (t, x) = tq (k,0,l,0) 32 (t, x). (6) C l t l + l j=0 C jt j ( tq (k,0,0,0) 32 (t, x) + t(q (k,0,0,l j) 32 (t, x) l j s=0 C s t s )) tq (k,0,0,0) 32 (t, x). (7) Finally, in [5], Kitaev, Remmel, and Tiefenbruck used these results to find generating functions to obtain similar recursions for Q (a,b,c,d) 32 (t, x) for arbitrary a, b, c, d N. The situation for the generating functions Q (a,b,c,d) 23 (t, x) is different. First of all it is easy to see that S n (23) is closed under the operation reverse-complement. Thus we have the following lemma. Lemma 2. For any a, b, c, d { } N, Q (a,b,c,d) n,23 (x) = Q (c,d,a,b) n,23 (x). Next it is obvious that if there is a σ i in σ = σ... σ n S n such that σ i matches MMP(a, b, c, d) where a, c, then σ contains an occurrence of 23. Thus there are no permutations σ S n (23) that can match a quadrant marked mesh pattern MMP(a, b, c, d) where a, c. Thus if a, 4

then Q (a,b,0,d) 23 (t, x) = Q (a,b,,d) 23 (t, x). Our first major result is that for all a, b, d N such that a > 0 Q (a,b,,d) 23 (t, x) = Q (a,b,,d) 32 (t, x). (8) We will prove this result by using a bijection of Krattenthaler [6] between S n (32) and D n, the set of Dyck paths of length 2n, and a bijection of Elizalde and Deutsch [5] between S n (23) and D n. It is easier to compute the generating of the form Q (a,b,,d) 32 (t, x) so that we will compute Q (a,b,0,d) 23 (t, x) by computing generating functions of the form Q (a,b,,d) 32 (t, x). The only generating functions of the form Q (a,b,,d) 32 (t, x) where a > 0 that were computed by Kiteav, Remmel, and Tiefenbruck were the generating functions of the form Q (a,0,,0) 32 (t, x) given in Theorem 2 above. However their techniques can be used to compute Q (a,b,0,d) 23 (t, x) when a > 0 for arbitrary b and d. By Lemma 2, Q (a,b,0,d) 23 (t, x) = Q (0,d,a,b) 23 (t, x) so that such computations will cover all the cases of Q (a,b,c,d) 23 (t, x) where one of a and c equals zero. Thus to complete our analysis of Q (a,b,c,d) 23 (t, x) when a, b, c, d N, we need only compute generating functions of the form Q (0,b,0,d) 23 (t, x) which we will compute by other methods. As it was pointed out in [3], avoidance of a marked mesh pattern without quadrants containing the empty set can always be expressed in terms of multi-avoidance of (possibly many) classical patterns. Thus, among our results we will re-derive several known facts in permutation patterns theory as well as several new results. However, our main goals are more ambitious aimed at finding distributions in question. The outline of this paper is as follows. In Section 2, we shall review the bijections of Krattenthaler [6] and Elizalde and Deutsch [5]. In Section 3, we shall prove (8). We shall also prove that Q (k,l,,m) n,32 (x) x 0 = Q (k,l,0,m) n,32 (x) x 0, so that as far as constant terms that occur in the polynomials of the form Q (k,l,0,m) n,23, they reduce to constant terms that appear in polynomials of the form Q (k,l,0,m) n,32 which were analyzed in [3, 4, 5]. Finally, in Section 3, we shall prove some general results about the coefficients of the highest power of x that occur in the polynomials Q (a,b,c,d) n,23 (x). In Section 4, we shall show how to compute generating functions of the Q (k,l,0,m) 23 (x, t) = Q (k,l,,m) 32 (x, t). In Section 5, we will show how to compute generating functions of the form Q (0,k,0,0) 23 (x, t) and Q (0,k,0,l) 23 (x, t). 2 Bijections from S n (32) and S n (23) to Dyck paths on an n n Lattice Given an n n square, we will label the coordinates of the columns from left to right with 0,,..., n and the coordinates of the rows from top to bottom with 0,..., n. A Dyck path is a path made up of unit down-steps D and unit right-steps R which starts at (0, 0) and ends at (n, n) has stays on or below the diagonal x = y. Given a Dyck path P, we let Return(P ) = {i : P goes through the point (i, i)} and we let return(p ) = Return(P ). For example, for the Dyck path P = DDRDDRRRDDRDRDRRDR 5

shown on the right in Figure 2, Return(P ) = {4, 8, 9} and return(p ) = 3. It is well known that for all n, S n (32) = S n (23) = D n = C n where C n = n+( 2n n ) is the n th Catalan number. In 2000, Christian Krattenthaler [6] gave a bijection between S n (32) and D n. Later in 2003, Sergi Elizalde and Emeric Deutsch [5] gave a bijection between S n (23) and D n. The main goal of this section is review these two bijections because the recursions that we can derive from these two bijections which will help us develop recursions that allows us to compute generating functions of the form Q (a,b,c,d) 23 (x, t). 2. The bijection Φ : S n (32) D n In this subsection, we describe Krattenthaler s [6] bijection between S n (32) and D n Given any permutation σ = σ... σ n S n (32), we write it on an n n table by placing σ i in the i th column and σi th row, reading from bottom to top. Then, we shade the cells to the north-east of the cell that contains σ i. Then the path Φ(σ) is the path that goes along the south-west boundary of the shaded cells. For example, this process is pictured in Figure 2 in this case where σ = 86794325 S 9 (32). In this case, Φ(σ) = DDRDDRRRDDRDRDRRDR. 8 6 7 9 4 3 2 5 0 th diagonal st diagonal 2 nd diagonal = return return 2 return 3 Figure 2: S n (32) to D n Given σ = σ... σ n, we say that σ j a left-to-right mininum of σ if σ i > σ j for all i < j. It is easy to see that the left-to-right minima of σ correspond to peaks of the path Φ(σ), i.e., they occupy cells along the inside boundary of the Φ(σ) that correspond to a down step D immediately followed by a right-step R. We call such cells, the outer corners of the path. Thus we shall often refer to the the left-to-right minima of the σ as the set of peaks of σ and the set σ i which are not a left-to-right minina as the non-peaks of σ. For example, for the permutation σ pictured in Figure 2, there are 6 peaks, {8, 6, 4, 3, 2, }, and 3 non-peaks, {7, 9, 5}. The horizontal segments of the path Φ(σ) are the maximal consecutive sequences of R s in Φ(σ). For example, in Figure 2, the lengths of the horizontal segments, reading from top to bottom, are, 3,,, 2,. We will be interested in the set of numbers that lie to the north of each horizontal segments in Φ(σ). For example, in our example, {8} is the set associated with the first horizontal segment of Φ(σ), {6, 7, 9} is the set of numbers associated with second horizontal segment of Φ(σ), etc.. Because σ is a 32-avoiding permutation, it follows that set of numbers above a horizontal segment must occur in increasing order. That is, since the cell immediately above the first right-step of the horizontal segments must be occupied with the least element in the set associated to the horizontal segment, then the remaining numbers must appear in increasing order if we are to avoid 32. 6

We shall also label the diagonal that go through corners of squares that are parallel to and below the main diagonal with 0,, 2,... starting at the main diagonal. In this way, each peak of the permutation correspond to a diagonal. In the example in Figure 2, we have peak on the 0 th diagonal, 4 peaks on the st diagonal and peak on the 2 nd diagonal. The map Φ is easy to describe. That is, given a Dyck path P, we first mark every cell corresponding to a peak of the path with a. Then we look at the rows and columns which do not have a cross. Starting form the left-most column, that does not contain a cross, we put a cross in the lowest possible row without a cross that lies above the path. In this ways we will construct a permutation σ = Φ (P ). This process is pictured in Figure 3. = 8 6 7 9 4 3 2 5 Figure 3: D n to S n (32) Details that Φ : S n (32) D n is a bijection can be found in [6]. However, given that Φ is a bijection, the following properties are easy to prove. Lemma 3. Given any Dyck path P, let σ 32 (P ) = Φ (P ), Then (a) Then for each horizontal segment H of P, the set of numbers associated to H form a consecutive increasing sequence in σ 32 (P ) and the least number of the sequence sits immediately above the first right-step of H. Hence the only decreases in σ 32 (P ) occur between two different horizontal segments of P. (b) The number n is in the column of last right-step before the first return. (c) Suppose that σ i is a peak of σ and the cell containing σ i is on the k th -diagonal. Then there are k elements in the graph G(σ) in the first quadrant relative to coordinate system centered at (i, σ i ). Proof. () easily follows from our description of the bijections Φ and Φ. For (2), we consider two cases. First if Return(P ), then P must start out DR... so that the first outer corner of P is in row n, reading from bottom to top, which must be occupied by n so that n is in the column of the last right-step before the first return. If i > is the least element of Return(P ), then there are i right-steps in the first 2i steps of P. The outer corners in the first 2i steps of P must all be occupied by numbers greater than n i. Thus we can only place the numbers n,..., n i + in the columns above the horizontal segments that occur in the first 2i steps of P. After we place numbers in the outer corners of the first 2i steps, then we always place s in the lowest row that is above the path starting from the left-most column. This means that 7

we will place s in the rows n,..., n i+, before we place a in row n, reading from bottom to top. It follows that the position of the in row n is in column i. For (3), suppose that σ i is a peak of σ and σ i is in the k th -diagonal. This means that the right-step that sits directly below σ i in P is the i th right-step in P and is preceded by i+k down-steps. Hence there are i + k rows above σ i in the graphs of σ. There are i elements that are associated with the horizontal segments to the left of σ i which means by the time that we get to σ i in the construction of σ 32 (P ) from P, there are i elements to the left of σ i in σ which are larger than σ i. Hence there must be exactly k elements to the right of σ i in σ which are larger than σ i. 2.2 The bijection Ψ : S n (23) D n In this section, we will describe the bijection Ψ : S n (23) D n given by Elizalde and Deutsch [5]. Given any permutation σ S n (23), Ψ(σ) is constructed exactly as in the previous section. Figure 4 shows an example of this map, from σ = 86974325 S 9 (23) to Dyck path DDRDDRRRDDR- DRDRRDR. 8 6 9 7 4 3 2 5 = Figure 4: S n (23) to D n Given any Dyck path P, we construct Ψ (P ) = σ 23 (P ) as follows. First we place an in every outer corner of P. Then we consider the rows and columns which do not have a. Processing the columns from top to bottom and the rows from left to right, we place an in the i th empty row and i th empty column. This process is pictured in Figure 5. The details that Ψ is bijection between S n (23) and D n can be found in [5]. = 8 6 9 7 4 3 2 5 Figure 5: D n to S n (23) 8

We then have the following lemma about the properties of this map. Lemma 4. Let P D n and σ = σ 23 (P ) = Ψ (P ). Then the following hold. (a) For each horizontal segment H of P, the least element of the set of numbers associated to H sits directly above the first right-step of H and the remaining numbers of the set form a consecutive decreasing sequence in σ. (b) σ can be decomposed into two decreasing subsequences, the first decreasing subsequence corresponds to the peaks of σ and the second decreasing subsequence corresponds to the non-peaks of σ. (c) Suppose that σ i is a peak of σ and the cell containing σ i is on the k th -diagonal. Then there are k elements in the graph G(σ) in the first quadrant relative to coordinate system centered at (i, σ i ). Proof. It is easy to see that parts () and (2) follow from the construction of Ψ. The proof of part (3) is the same as the proof of part (3) of Lemma 3. 3 General results about Q (a,b,c,d) 23 (t, x) and Q (a,b,c,d) 32 (t, x) In this section, we shall prove several general results about the generating functions Q (a,b,c,d) 23 (t, x) and Q (a,b,c,d) 32 (t, x). First suppose that k > 0. Then since in a 23-avoiding permutation σ = σ... σ n S n (23), no σ i can have elements in the first and third quadrants in G(σ) relative to the coordinate system centered at (i, σ i ), it follows that σ i matches MMP(k, l, 0, m) in σ if and only if it matches MMP(k, l,, m) in σ. Thus Q (k,l,0,m) 23 (t, x) = Q (k,l,,m) 23 (t, x) for all k > 0 and l, m 0. Similarly, one can prove that Q (0,l,k,m) 23 (t, x) = Q (,l,k,m) 23 (t, x) for all k > 0 and l, m 0. Next suppose that P is Dyck path in D n and consider the differences between σ = Φ (P ) and τ = Ψ (P ). Clearly, the elements corresponding to the outer corners of P are the same in both σ and τ. The only difference is how construct the non-peaks. Thus σ and τ have the same peaks. Note, by construction, the non-peaks in σ and τ cannot match a quadrant marked mesh pattern of the form MMP(k, l,, m). That is, a non-peak σ i of σ must have at least one element occurring in the third quadrant of G(σ) relative to the coordinate system centered at (i, σ i ), namely, the least element of the set associated with the horizontal segment H whose associated set contains σ i. A similar statement holds for τ. Now suppose that the number σ j is a peak of σ. Thus σ j sits directly above the first right-step of some horizontal segment H of P in the graph of σ. By Lemma 3, if cell containing σ i is in the r th -diagonal, then in G(σ), there are exactly r-elements in the first quadrant relative to the coordinate system centered at (j, σ j ). It is easy to see that the number of elements in the second quadrant in G(σ) relative to coordinate system centered (j, σ j ) is equal s = j where s is the sum of lengths of the horizontal segments to the left of H and, hence, the number 9

of elements in the fourth quadrant in G(σ) relative to coordinate system centered (j, σ j ) is equal n k s = n k j. However, by Lemma 4, the exact same statement holds for σ j in the graph G(τ) relative to the coordinate system center at (j, σ j ). It follows that for any k, l, m 0, σ j matches MMP(k, l,, m) in σ if and only if σ j matches MMP(k, l,, m) in τ. For example, Figure 6 illustrates this correspondence. It follows that the map Ψ Φ : S n (32) S n (23) shows that for all k > 0 and l, m 0, Q (k,l,,m) n,32 (x) = Q (k,l,,m) n,23 (x). 8 6 7 9 4 3 2 5 = 8 6 9 7 4 3 2 5 Figure 6: S n (32) to S n (23) keeps MMP(k, l,, m) Combining the remarks above with Lemma 2, we have the following theorem. Theorem 7. For any k > 0 and l, m 0, Q (k,l,0,m) 23 (t, x) = Q (k,l,,m) 23 (t, x) = Q (k,l,,m) 32 (t, x) (9) = Q (0,m,k,l) 23 (t, x) = Q (,l,k,m) 23 (t, x). It follows that the only generating functions of the form Q (a,b,c,d) 23 (t, x) that cannot be reduced to generating functions of the form Q (a,b,c,d) 32 (t, x) are generating functions of the form Q (0,b,0,d) 23 (t, x). In the series of papers [3, 4, 5], the only generating function of the form Q (k,l,,m) 32 (t, x) that were computed were the generating functions of the form Q (k,0,,0) 32 (t, x) given in Theorem 2. Our main interest in this paper is to compute generating functions of the form Q (a,b,c,d) 23 (t, x) for a, b, c, d N. Thus we will show how to compute generating functions of the form Q (k,l,,m) 32 (t, x) for k, l, m N and of the form Q (0,b,0,d) 32 (t, x) for b, d N. Before we do this, we shall prove some general results about the constants terms and the coefficients of the highest power of x in the polynomials Q (a,b,c,d) n,23 (x). 4 The coefficients of x 0 and x in polynomials Q (k,l,,m) n,23 (x) Since the coefficients of x k in polynomials of the form Q (a,b,0,d) n,23 (x) and Q (0,d,a,b) n,23 (x) can be found from the coefficients of x k in polynomials of the form Q (a,b,,d) n,32 (x), we start out with an observation about coefficients of x 0 and x in polynomials of the form Q (a,b,,d) n,32 (x). 0

Theorem 8. and Q (k,l,,m) n,32 (x) x 0 = Q (k,l,0,m) n,32 (x) x 0 (0) Q (k,l,,m) n,32 (x) x = Q (k,l,0,m) n,32 (x) x () Proof. For (0), note that any permutation in S n (32) avoiding pattern MMP(k, l, 0, m) must also avoid pattern MMP(k, l,, m). Thus to prove (0), we need to show that any permutation in S n (32) avoiding pattern MMP(k, l,, m) must also avoid pattern MMP(k, l, 0, m). We know that only the peaks of σ can match patterns of the from MMP(k, l,, m). Thus we must show that if the peaks of σ don t match MMP(k, l, 0, m), then the non-peaks of σ don t match MMP(k, l, 0, m) either. To show this, we appeal to part (a) of Lemma 3. That is, we know that on each horizontal segment H of Φ(σ), the elements in the columns above H form a consecutive increasing sequence in σ. But it is easy to see that if σ i < σ i+, then in the graph of G(σ), the number of elements in quadrant A relative to the coordinate system centered at (i, σ i ) is greater than or equal to the number of elements in quadrant A relative to the coordinate system centered at (i+, σ i+ ) for A {I, II, IV }. Thus if the peak corresponding to the horizontal segment H does not match MMP(k, l, 0, m), then no other element associated with H can MMP(k, l, 0, m). For example, Figure 7 illustrate this observation for the horizontal segment corresponding to the set {6, 7, 9}. Thus we have proved that if the peaks of σ don t match MMP(k, l, 0, m), then the non-peaks of σ don t match MMP(k, l, 0, m) either. 8 6 7 9 4 3 2 5 8 6 7 9 4 Figure 7: S n (32) to S n (23) keeps MMP(k, l,, m) To prove (), suppose that σ = σ... σ n S n (32) is such that there is exactly one σ i that matches MMP(k, l, 0, m). We claim that σ i must be a peak. That is, by our argument above, if σ i sits above a horizontal segment H of Φ(σ), then if σ i matches MMP(k, l, 0, m), then the peak corresponding to H must also match MMP(k, l, 0, m). Thus if σ i is the only element of σ that matches MMP(k, l, 0, m), then it must be a peak and hence it also matches MMP(k, l,, m). Clearly, there cannot be two elements of σ that matches MMP(k, l,, m) since otherwise we would have two elements of σ which would match MMP(k, l, 0, m). Thus () follows. Thus we have the following corollary. 3 2 5 8 6 7 9 4 3 2 5

Corollary. and Q (k,l,,m) 23 (t, 0) = Q (k,l,,m) 32 (t, 0) = Q (k,l,0,m) 32 (t, 0) Q (k,l,,m) x = Q (k,l,,m) 32 (t, x) x = Q (k,l,0,m) 32 (t, x) x. We note that [3, 4, 5] contains many results on special cases of of the coefficients of x 0 and x in polynomials of the form Q (k,l,0,m) 32 (t, x). 4. The coefficients of the highest power of x that occurs in the polynomials Q (a,b,c,d) n,23 (x) By our results above, to analyze the coefficients of the highest power of x that occurs in the polynomials Q (a,b,c,d) n,23 (x), we need only consider two cases. Namely, we need to analyze the coefficients of the highest power of x that occurs in polynomials of the form Q (0,k,0,l) n,23 (x) and we need to analyze the coefficients of the highest power of x that occurs in polynomials of the form Q (k,l,,m) n,32 (x). We shall start with analyzing the coefficients of the highest power of x in polynomials of the form Q (0,k,0,l) n,23 (x). Clearly, in any permutation σ S n (23), none of the numbers,..., l or n, n,..., n k+ can match MMP(0, k, 0, l). It follows that if the highest possible power of x that can occur in Q (0,k,0,l) n,23 (x) is x n k l and its coefficient can only be non-zero if n k+l+. Moreover, if σ i matches MMP(0, k, 0, l) in σ, then i {k +,..., n l}. It follows that if mmp (0,k,0,l) (σ) = n k l, then (a) n k +, n k + 2,... n must be positions,..., k, (b) l +,..., n k must be in positions l +,..., n l, and (c),..., l must be in positions n l +,..., n. These observations lead to the following theorem. Theorem 9. If n k + l +, then Proof. Suppose n k + l +. Q (0,k,0,l) n,23 (x) x n k l = Q (0,k,0,l) n,32 (x) x n k l = C k C n k l C l. To have a σ S n (23) where mmp (0,k,0,l) (σ) = n k l, we need only have σ... σ k be any rearrangement of n k +,..., n, which reduces to an element of S k (23) which we can choose in C k ways, σ k+... σ n l be any rearrangement of l +,..., n k, which reduces to an element of S n k l (23) which we can choose in C n k l ways, and σ n l+... σ n be any rearrangement of,..., l, which is in S l (23) which we can choose in C l ways. In the special case where l = 0, we have the following corollary. Corollary 2. If n k +, then Q (0,k,0,0) n,23 (x) x n k = Q (0,k,0,0) n,32 (x) x n k = C k C n k. 2

If we are considering the pattern MMP(0, k,, l), we can do a similar analysis. The only difference is that for the numbers l +,..., n k to match MMP(0, k,, l) in a 23-avoiding permutation σ, they must all be peaks of σ so that these numbers must occur in decreasing order. Thus we have the following theorem. Theorem 0. For any n k + l +, Q (0,k,,l) n,23 (x) x n k l = Q (0,k,,l) n,32 (x) x n k l = C k C l. In the special case where l = 0, we have the following corollary. Corollary 3. Q (0,k,,0) n,23 (x) x n k = Q (0,k,,0) n,32 (x) x n k = C k. Notice that the numbers that match the pattern MMP(0, k,, l) are on the diagonal under the maps Φ and Ψ which means that they also have nothing in their st quadrant. Thus we have the following corollary. Corollary 4. Q (,k,,l) n,23 (x) x n k l = Q (,k,,l) n,32 (x) x n k l = C k C l, Q (,k,,0) n,23 (x) x n k = Q (,k,,0) n,32 (x) x n k = C k. Next we continue our analysis of the coefficients of the highest power of x that can occur in a polynomials of the form Q (k,l,,m) n,23 (x). We start by considering the special case where m = 0. Again the highest power of x that can occur in Q (k,l,,0) n,23 (x) = Q (k,l,,m) n,32 (x) is x n k l if n k + l +. Theorem. For all n k + l +, Q (k,l,,0) n,23 (x) x n k l = Q (k,l,,0) n,32 (x) x n k l = k + k + l + ( k + 2l Proof. Given σ = σ... σ n S n (32), if σ i is the match MMP(k, l,, 0), it must be the case that σ i is a peak and there must be k + l numbers which are larger than σ i in σ. Thus if we want mmp (k,l,,0) (σ) = n k, then the numbers {, 2,..., n k l} must be peaks and appear between the l + st position and n k th position. Moreover, there should be k + l numbers in the first k + l rows, of which l numbers appear before the numbers {, 2,..., n k l} and k numbers appear after the numbers {, 2,..., n k l}. In Figure 8, the position of the numbers {, 2,..., n k l} are marked red while the position of the k + l numbers are marked blue. The numbers {, 2,..., n k l} must appear in decreasing order since they are all peaks. The numbers in the blue region must reduce to a 32-avoiding permutation τ of size k + l with an additional restriction that the numbers in the last k columns must be increasing. Thus, we must count the number of Dyck paths of length 2(k + l) that end in k right-steps which is also equal to the number l ). 3

of standard tableaux of shape (l, k + l) which is equal to k+ k+l+ number of standard tableaux. This fact is also proved in [6, 7]. Thus we have Q (k,l,,0) n,32 (x) x n k l = k+ ( k+2l ) k+l+ l. ( k+2l l ) by the hook formula for the l k k + l Figure 8: structure of Q (k,l,,0) n,32 (x) x n k l Theorem 2. For n k + l + m + and k > 0, Q (k,l,,m) n,23 (x) x n k l m = Q (k,l,,m) n,32 (x) x n k l m = (k + ) 2 (k + l + )(k + m + ) ( )( k + 2l k + 2m Proof. Assume that n k + l + m + and k > 0. Then for σ i to match MMP(k, l,, m) in σ = σ... σ n S n (32), σ i must be a peak of σ and σ i must have m numbers to its right in σ which are smaller than σ i, l numbers to its left in σ which are larger than σ i, and k numbers to its right in σ which are larger than σ i. It follows that the maximum power of x that can appear in Q (k,l,,m) n,23 (x) is x n k l m. Now if mmp (k,l,,m) (σ) = n k l m, then the numbers {m+, m+2,..., n k l} must be peaks and appear between the l+ st position and n k m th position in a decreasing order. These positions are marked red in Figure 9(a). There should be k + l numbers in the first k + l rows, of which l numbers appear before the numbers {m +, m + 2,..., n k l} and k numbers appear after the numbers {m +, m + 2,..., n k l}; and there should be k + m numbers in the last k + m columns, of which m numbers appear under the numbers {m +, m + 2,..., n k l} and k numbers appear above the numbers {m +, m + 2,..., n k l}. In Figure 9, the position of the these k + l + m numbers are marked blue. The numbers in the blue region must reduce to a 32-avoiding permutation τ of size k + l with an additional restriction that the numbers in the last k + m columns and top k + l rows(region A in Figure 9(a)) should be increasing. It is easy to see that under the map Φ such permutations correspond to Dyck paths in the join of the 3 blue regions as pictured Figure 9(b). It follows that the coefficient of x n k l m in Q (k,l,,m) n,32 (x) equals the number of Dyck paths U of length 2(k + l + m) which pass through the points P, Q and R in Figure 9(b). For each such path U, we can uniquely associate two paths U and U 2 where U starts at P goes to the point Q and U 2 starts at ( Q goes to the point R. By our results in the previous k+ theorem the number of such P is k+2l ) ( k+l+ l and the number of such k+ P2 is k+2m ) k+m+ m. It follows that Q (k,l,,m) n,32 (x) ) x n k l =. (k+) 2 (k+l+)(k+m+) ( k+2l l Since Q (k,l,,m) n,23 (x) = Q (k,l,,m) n,32 (x), the theorem follows. )( k+2m m l m ). 4

l k + m A k + l P l k + m A k + l m Q m (a) (b) R Figure 9: structure of Q (k,l,,m) n,32 (x) x n k l m 5 The functions of form Q (k,l,0,m) 23 (t, x) = Q (k,l,,m) 23 (t, x) = Q (k,l,,m) 32 (t, x) In this section, we shall show how we can compute generating functions of the form Q (k,l,0,m) 23 (t, x) = Q (k,l,,m) 23 (t, x) = Q (k,l,,m) 32 (t, x). In this case, it easier to compute generating functions of the form Q (k,l,,m) 32 (t, x). To do this, we will start by computing the marginal distributions Q (k,0,,0) 32 (t, x), Q (0,l,,0) 32 (t, x), and Q (0,0,,m) 32 (t, x). Then we can find expressions for Q (k,l,,0) 32 (t, x), Q (0,l,,m) 32 (t, x), and Q (k,0,,m) 32 (t, x) in terms of the marginal distributions Q (k,0,,0) 32 (t, x), Q (0,l,,0) 32 (t, x), and Q (0,0,,m) 32 (t, x). Finally we show how we can express Q (k,l,,m) 32 (t, x) in terms of the distributions Q (k,l,,0) 32 (t, x), Q (0,l,,m) 32 (t, x), and Q (k,0,,m) 32 (t, x) Recall that Kitaev, Remmel, and Tiefenbruck [3] proved that and, for k, Q (0,0,,0) 32 (t, x) = ( + t tx) ( + t tx) 2 4t 2t Q (k,0,,0) 32 (t, x) = tq (k,0,,0) 32 (t, x). By Lemma, we have that Q (0,l,,0) 32 (t, x) = Q (0,0,,l) 32 (t, x), thus to complete our computations of the marginal distributions we need only compute Q (0,k,,0) 32 (t, x) when k > 0. Let S (i) n (32) be the set of σ = σ σ n S n (32) such that σ i = n. Then the graph G(σ) of each σ S (i) n (32) has the structure showed in Figure 0 (a). That is, in G(σ), the numbers to the left of n, A i (σ), have the structure of 32-avoiding permutation, the numbers to the right of n, B i (σ), have the structure of 32-avoiding permutation, and all the numbers in A i (σ) lie above all the numbers in B i (σ). If we apply the map Φ to such permutations, then for σ S (i) n (32), Φ(σ) will be a Dyck path of the form in Figure 0 (b) where the smaller Dyck path structures A i (σ) and B i (σ) are correspond to 32-avoiding permutation structures A i (σ) and B i (σ). Now assume that k > 0. Then we can derive a simple recursion for based on the position of n in a permutation σ = σ... σ n S n (32). That is, suppose σ i = n and A i (σ) and B i (σ) are as pictured in Figure 0. Clearly σ i = n does not match MMP(0, k,, 0) in σ. Then we have two cases. 5

n n A i (σ) A i i (a) B i (σ) n i (b) B i n Figure 0: S n (32) to D n Case. i < k. Then elements in A i (σ) can not match MMP(0, k,, 0) in σ since no element of A i (σ) as k elements it right which are larger than it. However, an element σ j in B i (σ) matches MMP(0, k,, 0) in σ if and only if it matches MMP(0, k i,, 0) in B i (σ). Thus such permutations contribute C i Q (0,k i,,0) n i,32 (x) to Q (0,k,,0) n,32 (x). Case 2. i > k. Then elements in A i (σ) match MMP(0, k,, 0) in σ if and only if the corresponding element matches MMP(0, k,, 0) in the reduction of A i (σ). An element σ j in B i (σ) automatically has k elements in the graph G(σ) the second quadrant relative to the coordinate system centered at (j, σ j ), namely, the elements in A i (σ) {n} so that σ j matches MMP(0, k,, 0) in σ if and only if σ j is peak of σ, or, equivalently, if and only if σ j matches MMP(0, 0,, 0) in B i (σ). Thus such permutations contribute Q (0,0,,0) (x) to Q(0,k,,0) n,32 (x). i,32 (x)q(0,0,,0) n i,32 It follows that n k +, Q (0,k,,0) k n,32 (x) = C i Q (0,k i,,0) n i,32 (x) + i= n i=k Q (0,k,,0) i,32 (x)q(0,0,,0) n i,32 (x). Multiplying both sides of the equation by t n and summing for n gives that k 32 (t, x) = + t C i t i Q (0,k i,,0) 32 (t, x) + t(q (0,k,,0) 32 (t, x) Q (0,k,,0) i= Thus, we have the following theorem. k 2 C i t i )Q (0,0,,0) 32 (t, x). Theorem 3. For k > 0, Q (0,0,,0) 32 (t, x) = + t tx ( + t tx) 2 4t. 2t Q (0,k,,0) 32 (t, x) = + t k i= C i t i (Q (0,k i,,0) 32 (t, x) Q (0,0,,0) 32 (t, x)) tq (0,0,,0). 32 (t, x)) 6

We list the first 0 terms of function Q (0,k,,0) 32 (t, x) for k = 5. Q (0,,,0) 32 (t, x) = + t + ( + x)t 2 + ( + 3x + x 2) t 3 + ( + 6x + 6x 2 + x 3) t 4 + ( + 0x + 20x 2 + 0x 3 + x 4) t 5 + ( + 5x + 50x 2 + 50x 3 + 5x 4 + x 5) t 6 + ( + 2x + 05x 2 + 75x 3 + 05x 4 + 2x 5 + x 6) t 7 + ( + 28x + 96x 2 + 490x 3 + 490x 4 + 96x 5 + 28x 6 + x 7) t 8 + ( + 36x + 336x 2 + 76x 3 + 764x 4 + 76x 5 + 336x 6 + 36x 7 + x 8) t 9 + We note that if σ i matches MMP(0,,, 0) in σ = σ... σ n S n (32), then σ i must be a peak of σ which has at least one element to its left which is larger than σ i. However, it is easy to see from our description of Φ, the every peak except the first one in σ satisfies this condition. However such peak are just the descents of σ so that Q (0,,,0) n,32 (x) = σ S n(32) xdes(σ). Q (0,2,,0) 32 (t, x) = + t + 2t 2 + (3 + 2x)t 3 + ( 4 + 8x + 2x 2) t 4 + ( 5 + 20x + 5x 2 + 2x 3) t 5 + ( 6 + 40x + 60x 2 + 24x 3 + 2x 4) t 6 + ( 7 + 70x + 75x 2 + 40x 3 + 35x 4 + 2x 5) t 7 + ( 8 + 2x + 420x 2 + 560x 3 + 280x 4 + 48x 5 + 2x 6) t 8 + ( 9 + 68x + 882x 2 + 764x 3 + 470x 4 + 504x 5 + 63x 6 + 2x 7) t 9 + Q (0,3,,0) 32 (t, x) = + t + 2t 2 + 5t 3 + (9 + 5x)t 4 + ( 4 + 23x + 5x 2) t 5 + ( 20 + 65x + 42x 2 + 5x 3) t 6 + ( 27 + 45x + 86x 2 + 66x 3 + 5x 4) t 7 + ( 35 + 280x + 595x 2 + 420x 3 + 95x 4 + 5x 5) t 8 + ( 44 + 490x + 554x 2 + 820x 3 + 820x 4 + 29x 5 + 5x 6) t 9 + Q (0,4,,0) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + (28 + 4x)t 5 + ( 48 + 70x + 4x 2) t 6 + ( 75 + 24x + 26x 2 + 4x 3) t 7 + ( 0 + 54x + 596x 2 + 96x 3 + 4x 4) t 8 + ( 54 + 064x + 2030x 2 + 320x 3 + 280x 4 + 4x 5) t 9 + Q (0,5,,0) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + 42t 5 + (90 + 42x)t 6 + ( 65 + 222x + 42x 2) t 7 + ( 275 + 77x + 396x 2 + 42x 3) t 8 + ( 429 + 87x + 962x 2 + 62x 3 + 42x 4) t 9 + Next we consider Q (k,l,,0) 32 (t, x) where both k and l are nonzero. Again we will develop a simple recursion for Q (k,l,,0) n,32 (x) based on the position of n in σ. That is, let σ = σ... σ n S n (32) and σ i = n. Again σ i = n does not match MMP(k, l,, 0) in σ. Then we have two cases. Case. i < l. Then no element in A i (σ) can not match MMP(k, l,, 0) in σ since no element of A i (σ) has l elements to its left which are larger than it. An element σ j in B i (σ) matches MMP(k, l,, 0) in σ if and only if it matches MMP(k, l i,, 0) in B i (σ). Thus such permutations contribute 7

l i= C i Q (k,l i,,0) n i,32 (x) to Q (k,l,,0) n,32 (x). Case 2. i > l. Then an element σ j in A i (σ) matches MMP(k, l,, 0) in σ if and only if it, in the reduction of A i (σ), the corresponding element matches MMP(k, l,, 0). An element σ j in B i (σ) automatically has l to its left which are larger than in so that σ j matches MMP(k, l,, 0) in σ if and only if it matches MMP(k, 0,, 0) in B i (σ). Thus such permutations contribute n i=l Q(k,l,,0) i,32 (x)q (k,0,,0) n i,32 (x) to Q (k,l,,0) n,32 (x). It follows that for n k + l +, Q (k,l,,0) l n,32 (x) = C i Q (k,l i,,0) n i,32 (x) + i= n i=l Q (k,l,,0) i,32 (x)q (k,0,,0) n i,32 (x). Multiplying both sides of the equation by t n and summing for n gives that l 32 (t, x) = + t C i t i Q (k,l i,,0) 32 (t, x) + (Q (k,l,,0) 32 (t, x) Q (k,l,,0) i= Thus, we have the following theorem. l 2 C i t i )Q (k,0,,0) 32 (t, x). Theorem 4. For all k, l > 0, l 32 (t, x) = + t C i t i Q (k,l i,,0) 32 (t, x) + (Q (k,l,,0) 32 (t, x) Q (k,l,,0) i= l 2 C i t i )Q (k,0,,0) 32 (t, x). We list the first 0 terms of function Q (k,l,,0) 32 (t, x) for k, l 3. Q (,,,0) 32 (t, x) = + t + 2t 2 + (3 + 2x)t 3 + ( 4 + 8x + 2x 2) t 4 + ( 5 + 20x + 5x 2 + 2x 3) t 5 + ( 6 + 40x + 60x 2 + 24x 3 + 2x 4) t 6 + ( 7 + 70x + 75x 2 + 40x 3 + 35x 4 + 2x 5) t 7 + ( 8 + 2x + 420x 2 + 560x 3 + 280x 4 + 48x 5 + 2x 6) t 8 + ( 9 + 68x + 882x 2 + 764x 3 + 470x 4 + 504x 5 + 63x 6 + 2x 7) t 9 + Q (,2,,0) 32 (t, x) = + t + 2t 2 + 5t 3 + (9 + 5x)t 4 + ( 4 + 23x + 5x 2) t 5 + ( 20 + 65x + 42x 2 + 5x 3) t 6 + ( 27 + 45x + 86x 2 + 66x 3 + 5x 4) t 7 + ( 35 + 280x + 595x 2 + 420x 3 + 95x 4 + 5x 5) t 8 + ( 44 + 490x + 554x 2 + 820x 3 + 820x 4 + 29x 5 + 5x 6) t 9 + Q (,3,,0) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + (28 + 4x)t 5 + ( 48 + 70x + 4x 2) t 6 + ( 75 + 24x + 26x 2 + 4x 3) t 7 + ( 0 + 54x + 596x 2 + 96x 3 + 4x 4) t 8 + ( 54 + 064x + 2030x 2 + 320x 3 + 280x 4 + 4x 5) t 9 + 8

Q (2,,,0) 32 (t, x) = + t + 2t 2 + 5t 3 + ( + 3x)t 4 + ( 23 + 6x + 3x 2) t 5 + ( 47 + 56x + 26x 2 + 3x 3) t 6 + ( 95 + 63x + 29x 2 + 39x 3 + 3x 4) t 7 + ( 9 + 429x + 489x 2 + 263x 3 + 55x 4 + 3x 5) t 8 + ( 383 + 062x + 583x 2 + 270x 3 + 487x 4 + 74x 5 + 3x 6) t 9 + Q (2,2,,0) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + (33 + 9x)t 5 + ( 72 + 5x + 9x 2) t 6 + ( 5 + 86x + 83x 2 + 9x 3) t 7 + ( 30 + 556x + 43x 2 + 24x 3 + 9x 4) t 8 + ( 629 + 487x + 688x 2 + 875x 3 + 74x 4 + 9x 5) t 9 + Q (2,3,,0) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + 42t 5 + (04 + 28x)t 6 + ( 235 + 66x + 28x 2) t 7 + ( 505 + 627x + 270x 2 + 28x 3) t 8 + ( 054 + 924x + 454x 2 + 402x 3 + 28x 4) t 9 + Q (3,,,0) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + (38 + 4x)t 5 + ( 0 + 27x + 4x 2) t 6 + ( 266 + 9x + 40x 2 + 4x 3) t 7 + ( 698 + 439x + 232x 2 + 57x 3 + 4x 4) t 8 + ( 829 + 477x + 044x 2 + 430x 3 + 78x 4 + 4x 5) t 9 + Q (3,2,,0) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + 42t 5 + (8 + 4x)t 6 + ( 39 + 96x + 4x 2) t 7 + ( 847 + 425x + 44x 2 + 4x 3) t 8 + ( 223 + 563x + 848x 2 + 206x 3 + 4x 4) t 9 + Q (3,3,,0) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + 42t 5 + 32t 6 + (38 + 48x)t 7 + ( 046 + 336x + 48x 2) t 8 + ( 280 + 506x + 507x 2 + 48x 3) t 9 + If one compares the polynomials Q (0,k,,0) n,32 (x) and Q (,k,,0) n,32 (x), one observes that they are equal for k. Thus we make the following conjecture. Conjecture. For all k, we have Q (0,k,,0) 32 (t, x) = Q (,k,,0) 32 (t, x). We have verified the conjecture for k =, 2, 3 by directly computing the generating functions. That is, we can prove that Q (0,,,0) 32 (t, x) = Q (,0,,0) 32 (t, x), Q (0,2,,0) 32 (t, x) = Q (,,,0) 32 (t, x), Q (0,3,,0) 32 (t, x) = Q (,2,,0) 32 (t, x). 9

However, it is not obvious from the corresponding recursions for Q (0,k,,0) n,32 (x) and Q (,k,,0) that these two polynomials are equal. Next we consider the generating functions Q (0,k,,l) 32 (t, x) = Q (0,k,,l) 23 (t, x) where k, l > 0. n,32 (x) When n k + l, there is no element of a σ S n (32) that can match MMP(0, k,, l) in σ. Thus Q (0,k,,l) n,32 (x) = C n in such cases. Thus assume that n k + l + and σ = σ... σ n S n (32) is such that σ i = n. Clearly σ i can not match MMP(0, k,, l) in σ. We then have 3 cases. Case. i < k. Clearly no σ j in A i (σ) can not match MMP(0, k,, l) since it cannot have k elements to its left which are larger than it. A σ j B i (σ) matches MMP(0, k,, l) in σ if and only if it matches MMP(0, k i,, l) in B i (σ). Thus such permutations contribute k i= C i Q (0,k i,,l) n i,32 (x) to Q (0,k,,l) n,32 (x). Case 2. k i n l. For each peak σ j A i (σ), there are n i l numbers in B i (σ) which are to its right and smaller than it so that σ j matches MMP(0, k,, l) in σ if and only if, in the reduction of A i (σ), its corresponding element matches MMP(0, k,, 0). For each peak σ j B i (σ), there are k numbers in A i (σ) {n} which are to its left and larger than it so that σ j matches MMP(0, k,, l) in σ if and only if σ j matches MMP(0, 0,, l) in B i (σ). Thus such permutations contribute n l i=k Q(0,k,,0) i,32 (x)q(0,0,,l) n i,32 (x) to Q (0,k,,l) n,32 (x). Case 3. i n l +. For each peak σ j A i (σ), there are n i l numbers in B i (σ) which are to its right and smaller than it so that σ j matches MMP(0, k,, l) in σ if and only if, in the reduction of A i (σ), its corresponding element matches MMP(0, k,, 0). Clearly no element of B i (σ) can match MMP(0, k,, l) since it cannot have l to its right which are smaller than it. Thus such permutations contribute n i=n l+ Q(0,k,,l (n i)) i,32 (x)c n i to Q (0,k,,l) n,32 (x). It follows that for n k + l +, Q (0,k,,l) n,32 (x)q (0,k,,l) n,32 (x) = k C i Q (0,k i,,l) n l n i,32 (x) + Q (0,k,,0) i,32 (x)q(0,0,,l) n i,32 (x) + i= n i=n l+ i=k Q (0,k,,l (n i)) i,32 (x)c n i. Multiplying both sides of the equation by t n and summing for n k + l + gives that k+l 32 (t, x) Q (0,k,,l) k C i t i = t i= C i t i (Q (0,k i,,l) k+l i 32 (t, x) +t(q (0,k,,0) j=0 C j t j ) k 2 32 (t, x) C i t i )(Q (0,0,,l) l 32 (t, x) C i t i ) l +t C i t i (Q (0,k,,l i) k+l i 2 32 (t, x) C j t j ). 20 j=0

Note the first term of the last term t l C it i (Q (0,k,,l i) 32 (t, x) k+l i 2 j=0 C j t j ) on the right-hand side of the equation above is t(q (0,k,,l) 32 (t, x) k+l 2 j=0 C j t j ), so we can bring tq (0,k,,l) 32 (t, x) to the other side and solve Q (0,k,,l) 32 (t, x) to obtain the following theorem. Theorem 5. For all k, l > 0, Where Γ k,l (t, x) = k+l k+l 2 C i t i +t(q (0,k,,0) Q (0,k,,l) 32 (t, x) = Γ k,l(t, x), t k C i t i+ + t i= C i t i (Q (0,k i,,l) k+l i 32 (t, x) k 2 32 (t, x) C i t i )(Q (0,0,,l) l 32 (t, x) C i t i ) l +t C i t i (Q (0,k,,l i) k+l i 2 32 (t, x) C j t j ). i= We list the first 0 terms of function Q (0,k,,l) 32 (t, x) for k l 3. Q (0,,,) 32 (t, x) = + t + 2t 2 + (4 + x)t 3 + ( 7 + 6x + x 2) t 4 + ( + 20x + 0x 2 + x 3) t 5 j=0 j=0 C j t j ) + ( 6 + 50x + 50x 2 + 5x 3 + x 4) t 6 + ( 22 + 05x + 75x 2 + 05x 3 + 2x 4 + x 5) t 7 + ( 29 + 96x + 490x 2 + 490x 3 + 96x 4 + 28x 5 + x 6) t 8 + ( 37 + 336x + 76x 2 + 764x 3 + 76x 4 + 336x 5 + 36x 6 + x 7) t 9 + Q (0,,,2) 32 (t, x) = + t + 2t 2 + 5t 3 + (2 + 2x)t 4 + ( 25 + 5x + 2x 2) t 5 + ( 46 + 60x + 24x 2 + 2x 3) t 6 + ( 77 + 75x + 40x 2 + 35x 3 + 2x 4) t 7 + ( 20 + 420x + 560x 2 + 280x 3 + 48x 4 + 2x 5) t 8 + ( 77 + 882x + 764x 2 + 470x 3 + 504x 4 + 63x 5 + 2x 6) t 9 + Q (0,,,3) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + (37 + 5x)t 5 + ( 85 + 42x + 5x 2) t 6 + ( 72 + 86x + 66x 2 + 5x 3) t 7 + ( 35 + 595x + 420x 2 + 95x 3 + 5x 4) t 8 + ( 534 + 554x + 820x 2 + 820x 3 + 29x 4 + 5x 5) t 9 + Q (0,2,,2) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + (38 + 4x)t 5 + ( 9 + 37x + 4x 2) t 6 + ( 92 + 76x + 57x 2 + 4x 3) t 7 + ( 365 + 595x + 385x 2 + 8x 3 + 4x 4) t 8 + ( 639 + 624x + 750x 2 + 736x 3 + 09x 4 + 4x 5) t 9 + Q (0,2,,3) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + 42t 5 + (22 + 0x)t 6 + ( 36 + 03x + 0x 2) t 7 + ( 724 + 540x + 56x 2 + 0x 3) t 8 + ( 493 + 995x + 45x 2 + 29x 3 + 0x 4) t 9 + 2

Q (0,3,,3) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + 42t 5 + 32t 6 + (404 + 25x)t 7 + ( 9 + 286x + 25x 2) t 8 + ( 2762 + 649x + 426x 2 + 25x 3) t 9 + We are now in position to compute the generating functions Q (a,k,,l) 32 (t, x) = Q (a,k,0,l) 23 (t, x) = Q (a,k,,l) 23 (t, x) in the case where a, k, l > 0. Again, we shall show that the polynomials Q (a,k,,l) n,32 (x) satisfy simple recursions. When n a+k +l, there is no element of a σ S n (32) that can match MMP(a, k,, l) in σ. Thus Q (a,k,,l) n,32 (x) = C n in such cases. Thus assume that n a + k + l + and σ = σ... σ n S n (32) is such that σ i = n. Clearly σ i can not match MMP(a, k,, l) in σ. We then have 3 cases. Case. i < k. Clearly no σ j in A i (σ) can not match MMP(a, k,, l) since it cannot have k elements to its left which are larger than it. A σ j B i (σ) matches MMP(a, k,, l) in σ if and only if it matches MMP(a, k i,, l) in B i (σ). Thus such permutations contribute k i= C i Q (a,k i,,l) n i,32 (x) to Q (a,k,,l) n,32 (x). Case 2. k i n l. For each peak σ j A i (σ), there are n i l numbers in B i (σ) which are to its right and smaller than it. Moreover, the number n is to its right and is larger than it. Thus σ j matches MMP(a, k,, l) in σ if and only if, in the reduction of A i (σ), its corresponding element matches MMP(a, k,, 0). For each peak σ j B i (σ), there are k numbers in A i (σ) {n} which are to its left and larger than it so that σ j matches MMP(a, k,, l) in σ if and only if σ j matches MMP(a, 0,, l) in B i (σ). Thus such permutations contribute n l i=k Q(a,k,,0) i,32 (x)q (a,0,,l) n i,32 (x) to Q(a,k,,l) n,32 (x). Case 3. i n l +. For each peak σ j A i (σ), there are n i l numbers in B i (σ) which are to its right and smaller than it and the number n is to its right. Thus σ j matches MMP(a, k,, l) in σ if and only if, in the reduction of A i (σ), its corresponding element matches MMP(a, k,, 0). Clearly no element of B i (σ) can match MMP(0, k,, l) since it cannot have l to its right which are smaller than it. Thus such permutations contribute n (x)c n i to Q (a,k,,l) n,32 (x). i=n l+ Q(a,k,,l (n i)) i,32 It follows that for n a + k + l +, Q (a,k,,l) n,32 (x) = k C i Q (a,k i,,l) n l n i,32 (x) + Q (a,k,,0) i,32 (x)q (a,0,,l) n i,32 (x) + i= n i=n l+ i=k Q (a,k,,l (n i)) i,32 (x)c n i. 22

Multiplying both sides of the equation by t n and summing for n gives that Q (a,k,,l) 32 (t, x) = k+l k C i t i + t +t(q (a,k,,0) i= C i t i (Q (a,k i,,l) k+l i 32 (t, x) j=0 C j t j ) k 2 32 (t, x) C i t i )(Q (a,0,,l) l 32 (t, x) C i t i ) l +t C i t i (Q (a,k,,l i) k+l i 2 32 (t, x) C j t j ), j=0 and we have the following theorem. Theorem 6. For all a, k, l > 0, Q (a,k,,l) 32 (t, x) = k+l k C i t i + t +t(q (a,k,,0) i= C i t i (Q (a,k i,,l) k+l i 32 (t, x) j=0 C j t j ) k 2 32 (t, x) C i t i )(Q (a,0,,l) l 32 (t, x) C i t i ) l +t C i t i (Q (a,k,,l i) k+l i 2 32 (t, x) C j t j ), j=0 We list the first few terms of function Q (a,k,,l) 32 (t, x) for a 3 and k l 3. Q (,,,) 32 (t, x) = + t + 2t 2 + 5t 3 + (0 + 4x)t 4 + ( 7 + 2x + 4x 2) t 5 + ( 26 + 65x + 37x 2 + 4x 3) t 6 + ( 37 + 55x + 76x 2 + 57x 3 + 4x 4) t 7 + ( 50 + 35x + 595x 2 + 385x 3 + 8x 4 + 4x 5) t 8 + ( 65 + 574x + 624x 2 + 750x 3 + 736x 4 + 09x 5 + 4x 6) t 9 + Q (,,,2) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + (32 + 0x)t 5 + ( 62 + 60x + 0x 2) t 6 + ( 07 + 209x + 03x 2 + 0x 3) t 7 + ( 70 + 554x + 540x 2 + 56x 3 + 0x 4) t 8 + ( 254 + 239x + 995x 2 + 45x 3 + 29x 4 + 0x 5) t 9 + Q (,,,3) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + 42t 5 + (04 + 28x)t 6 + ( 29 + 82x + 28x 2) t 7 + ( 40 + 684x + 308x 2 + 28x 3) t 8 + ( 704 + 948x + 720x 2 + 462x 3 + 28x 4) t 9 + Q (,2,,2) 32 (t, x) = + t + 2t 2 + 5t 3 + 4t 4 + 42t 5 + (07 + 25x)t 6 + ( 233 + 7x + 25x 2) t 7 + ( 450 + 669x + 286x 2 + 25x 3) t 8 + ( 794 + 968x + 649x 2 + 426x 3 + 25x 4) t 9 + 23