The q-exponential generating function for permutations by consecutive patterns and inversions

Similar documents
Consecutive Patterns: From Permutations to Column-ConvexAugust Polyominoes 10, 2010 and Back 1 / 36

Restricted words by adjacencies

A Blossoming Algorithm for Tree Volumes of Composite Digraphs

Counting permutations by cyclic peaks and valleys

The distribution of run lengths in integer compositions

ENUMERATIVE APPLICATIONS OF SYMMETRIC FUNCTIONS. Ira M. GESSEL 1

Asymptotics for minimal overlapping patterns for generalized Euler permutations, standard tableaux of rectangular shapes, and column strict arrays

GENERALIZATION OF UNIVERSAL PARTITION AND BIPARTITION THEOREMS. Hacène Belbachir 1

Self-dual interval orders and row-fishburn matrices

A BIJECTION BETWEEN WELL-LABELLED POSITIVE PATHS AND MATCHINGS

ACYCLIC ORIENTATIONS AND CHROMATIC GENERATING FUNCTIONS. Ira M. Gessel 1

COMBINATORIAL PROOFS OF GENERATING FUNCTION IDENTITIES FOR F-PARTITIONS

MULTI-RESTRAINED STIRLING NUMBERS

A Combinatorial Interpretation of the Numbers 6 (2n)! /n! (n + 2)!

arxiv:math/ v1 [math.co] 2 Oct 2002

COMBINATORICS OF GENERALIZED q-euler NUMBERS. 1. Introduction The Euler numbers E n are the integers defined by E n x n = sec x + tan x. (1.1) n!

Chapter 5: Integer Compositions and Partitions and Set Partitions

Chapter 5: Integer Compositions and Partitions and Set Partitions

Matrix compositions. Emanuele Munarini. Dipartimento di Matematica Politecnico di Milano

Course 311: Michaelmas Term 2005 Part III: Topics in Commutative Algebra

Two truncated identities of Gauss

arxiv:math/ v2 [math.co] 30 Jan 2003

1. Introduction

A Characterization of (3+1)-Free Posets

arxiv: v3 [math.ac] 29 Aug 2018

Enumeration Schemes for Words Avoiding Permutations

DIFFERENTIAL POSETS SIMON RUBINSTEIN-SALZEDO

L a(w)w = (1 - L a(w)wr (1)

Words restricted by patterns with at most 2 distinct letters

BOOK REVIEWS 297 WILLIAM D. SUDDERTH American Mathematical Society /85 $ $.25 per page

The Symbolic Goulden Jackson Cluster Method

Counting Peaks and Valleys in a Partition of a Set

2. Sets. 2.1&2.2: Sets and Subsets. Combining Sets. c Dr Oksana Shatalov, Spring

Pattern Avoidance in Set Partitions

Consecutive Patterns: From Permutations to Column-Convex Polyominoes and Back

A PROOF OF PIERI S FORMULA USING GENERALIZED SCHENSTED INSERTION ALGORITHM FOR RC-GRAPHS.

Partitions, rooks, and symmetric functions in noncommuting variables

A relative of the Thue-Morse Sequence

Counting Three-Line Latin Rectangles

SHI-MEI MA AND YEONG-NAN YEH

A New Shuffle Convolution for Multiple Zeta Values

On certain combinatorial expansions of the Legendre-Stirling numbers

Ira M. Gessel Department of Mathematics, Brandeis University, P.O. Box 9110, Waltham, MA Revised September 30, 1988

q-eulerian POLYNOMIALS: EXCEDANCE NUMBER AND MAJOR INDEX

A conjecture on the alphabet size needed to produce all correlation classes of pairs of words

Disjoint paths in unions of tournaments

A new Euler-Mahonian constructive bijection

Applications of Chromatic Polynomials Involving Stirling Numbers

ASYMPTOTIC ENUMERATION OF PERMUTATIONS AVOIDING GENERALIZED PATTERNS

Intrinsic products and factorizations of matrices

ENUMERATION OF CONNECTED CATALAN OBJECTS BY TYPE. 1. Introduction

Parity Theorems for Statistics on Domino Arrangements

ON ENUMERATORS OF SMIRNOV WORDS BY DESCENTS AND CYCLIC DESCENTS

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

An Involution for the Gauss Identity

Discrete Applied Mathematics

Shellability of Interval Orders

Generating Functions

Permutation Statistics and q-fibonacci Numbers

Partitions and the FermiDirac Distribution

STAT (2016) ISSN

Cyclic Derangements. Sami H. Assaf. Department of Mathematics MIT, Cambridge, MA 02139, USA

RANDOM PERMUTATIONS AND BERNOULLI SEQUENCES. Dominique Foata (Strasbourg)

Discrete Mathematics. Benny George K. September 22, 2011

arxiv:math/ v2 [math.co] 19 Sep 2005

LaCIM seminar, UQÀM. March 15, 2013

Spanning Trees in Grid Graphs

A Generalization of Wigner s Law

The cycle polynomial of a permutation group

Pattern correlation matrices and their properties

Isomorphism of free G-subflows (preliminary draft)

Title: Equidistribution of negative statistics and quotients of Coxeter groups of type B and D

Fix-Mahonian Calculus, I: two transformations. Dominique Foata and Guo-Niu Han

EQUIDISTRIBUTION AND SIGN-BALANCE ON 132-AVOIDING PERMUTATIONS. Toufik Mansour 1,2

Determinants of Partition Matrices

Context-free languages in Algebraic Geometry and Number Theory

MATH 580, midterm exam SOLUTIONS

THE LECTURE HALL PARALLELEPIPED

Week 15-16: Combinatorial Design

Homology of Newtonian Coalgebras

Invertible Matrices over Idempotent Semirings

THE THEORY OF HEAPS AND THE CARTIER FOATA MONOID. C. Krattenthaler

A Bijection between Maximal Chains in Fibonacci Posets

#A69 INTEGERS 13 (2013) OPTIMAL PRIMITIVE SETS WITH RESTRICTED PRIMES

d-regular SET PARTITIONS AND ROOK PLACEMENTS

Counting Matrices Over a Finite Field With All Eigenvalues in the Field

MATH 326: RINGS AND MODULES STEFAN GILLE

Equational Logic. Chapter Syntax Terms and Term Algebras

Formal Group Laws and Chromatic Symmetric Functions of Hypergraphs

Isomorphisms between pattern classes

Two-boundary lattice paths and parking functions

Quadrant marked mesh patterns in alternating permutations


q-pell Sequences and Two Identities of V. A. Lebesgue

Enumeration of Chord Diagrams without Loops and Parallel Chords

Noncommutative Abel-like identities

Standard paths in another composition poset

Enumeration schemes for vincular patterns

On the symmetry of the distribution of k-crossings and k-nestings in graphs

Bourget-du-lac cedex, France. Extended Abstract

Transcription:

The q-exponential generating function for permutations by consecutive patterns and inversions Don Rawlings Abstract The inverse of Fedou s insertion-shift bijection is used to deduce a general form for the q-exponential generating function for permutations by consecutive patterns overlaps allowed and inversion number from a result due to Jackson and Goulden for enumerating words by distinguished factors. Explicit q-exponential generating functions are then derived for permutations by the consecutive patterns 12...m, 12...m 2mm 1,1mm 1...2, and by the pair of consecutive patterns 123, 132. 1. Introduction Denoting the set of permutations of {1, 2,...,n} by S n,letσ σ 1 σ 2...σ n S n and p S m with m n. Fori n m + 1, σ i σ i+1...σ i+m 1 is said to be a consecutive pattern p if σ i σ i+1...σ i+m 1 p where, for 0 k m 1, σ i+k denotes the number of elements in the set {σ i,σ i+1,...,σ i+m 1 } that are less than or equal to σ i+k. For example, p 132 S 3 occurs consecutively twice in σ 14253 S 5 : σ 1 σ 2 σ 3 142 132 and σ 3 σ 4 σ 5 253 132. The two consecutive occurrences of p 132 in σ 14253 overlap in the sense that σ 3 2is common to both. A number of results for the enumeration of permutations by consecutive patterns have recently been discovered. Kitaev [7,8] determined a formula that related the exponential generating function for permutations by the maximal number of nonoverlapping consecutive occurrences of any

pattern p to the exponential generating function for permutations having no consecutive occurrences of p. Subsequently, Mendes and Remmel [9] used the theory of symmetric functions to reprove and extend Kitaev s result in three ways: They replaced the single pattern p by a set of patterns, expanded the theory to deal with tuples of permutations, and threw the inversion number in so as to obtain q-analogs. Mendes and Remmel further obtained some results on permutations by consecutive patterns overlaps allowed subject to a certain constraint. Prior to [9], Elizalde and Noy [2] also obtained several results on permutations by consecutive patterns overlaps allowed. Their approach was based on solving systems of linear ordinary differential equations. The purpose here is to present yet another approach to the problem of enumerating permutations by consecutive patterns overlaps allowed. In brief, the inverse of Fedou s [3] insertionshift bijection is used to convert Jackson and Goulden s [5] result [6, Theorem 2.8.6] for enumerating words by distinguished factors into an identity for the q-exponential generating function for permutations by consecutive patterns and inversion number. To be more explicit, the number of times a pattern p occurs consecutively in a permutation σ will be denoted by pσ. A nonempty finite set P of patterns of possibly varying lengths, each greater than or equal to 2, is said to be permissible if no pattern in P occurs as a consecutive pattern in another pattern in P.The inversion number of σ S n, denoted by inv σ, is defined to be the number of integer pairs i, j such that 1 i<j n and σ i >σ j.theq-analog and q-factorial of a nonnegative integer n are respectively defined by [n]1 + q + q 2 + +q n 1 and [1][2] [n]. After presenting Jackson and Goulden s result in Section 2 and the inverse of Fedou s bijection in Section 3, the following corollary is deduced in Section 4. Corollary 1. If P is a permissible set of consecutive patterns and A n,p q, t q inv σ tp pσ, σ S n p P then A n,p q, tz n 1, 1 z C P q,t 1,1 qz 1 where C P q, t,zis as in 7. Although not done so here, Corollary 1 may easily be extended to tuples of permutations. Such extensions have been considered by Carlitz, Scoville, and Vaughan [1], by Fedou and Rawlings [4], and by Mendes and Remmel [9]. The difficulty in using 1 to determine the q-exponential generating function for permutations by a particular permissible set P lies in computing a certain q-sum that arises in connection with C P q, t,z. The details when P {p} for p 12...m 2mm 1, p 1mm 1...2, and p 12...m S m are worked out in Sections 5 7. The q-exponential generating function for the joint distribution of 123 and 132 is derived in Section 8. 2. Words by distinguished factors For the purposes at hand, Jackson and Goulden s [6] Theorem 2.8.6 is best as formulated by Stanley [10, pp. 266 267] in the context of formal series over the free monoid. Let X be a

nonempty alphabet and X be the free monoid of words formed with letters from X. Thelength of a word w X, denoted by lw, is the number of letters in w. The set of words of length n in X is signified by X n.awordv X is said to be a factor of w X if there exist words r and s possibly empty in X such that w rvs.theith letter of a nonempty word w will be denoted by w i. A nonempty set D X is said to be distinguished if no word in D is a factor of another word in D. Acluster of distinguished factors or D-cluster is an ordered triple w,δ,βwhere such that w w 1 w 2...w lw X, δ d 1,d 2,...,d k for some k 1 with each d i D, and β b 1,b 2,...,b k is a k-tuple of positive integers d i w bi w bi +1...w bi +ld i 1 for 1 i k each d i appears as a factor of w, 1 b 1 <b 2 < <b k 1 <b k lw ld k + 1w begins with a copy of d 1, a copy of d i+1 begins to the right of the initial letter of a copy of d i in w, and w ends with d k, and b i+1 b i + ld i 1 the copy of d i beginning at w bi and the copy of d i+1 beginning at w bi+1 overlap in w. Roughly speaking, a D-cluster is a word w together with a recipe for covering w with overlapping distinguished factors. A word w which appears as the first component in a D-cluster is said to be D-coverable. Let C D denote the set of D-clusters. The cluster generating function is then defined to be the formal series C D y,w y dδ d w R[[y d : d D]] X, 2 w,δ,β C D d D where dδ denotes the number of times d appears as a component in δ. Theorem 2.8.6 in [6] as reformulated by Stanley reads as follows. Theorem 1 Jackson and Goulden. For a nonempty alphabet X and a distinguished set D X, the generating function for words by distinguished factors is given by w 1 1 x C D y 1,w, 3 x X w X d D y dw d where dw denotes the number of times d appears as a factor of w and C D y 1,wis obtained by replacing each y d in C D y,wwith y d 1. Independently of Jackson and Goulden, Zeilberger presented an erroneous version of Theorem 1 in [11]. Although stated and proven in both [6,10] for X finite, Theorem 1 actually holds for any nonempty alphabet. The proof for a finite alphabet works without modification for an infinite alphabet. Results for enumerating permutations by consecutive patterns may be extracted directly from 3. For instance, consider the problem of determining the number c n,k of permutations in S n with exactly k occurrences of the consecutive pattern p 12...m S m where m 2.

In order to apply 3, take X {1, 2,...,n} and let D {w X m :1 w 1 w 2 w m }. Then set y d y for all d D and map w z w1 z w2 z wn where z 1,z 2,...,z n are commuting indeterminates. With these choices in 3, c n,k is the coefficient of y k z 1 z 2 z n. The derivation of the exponential generating function for c n,k requires much more work. Corollary 1 provides a more elegant means of obtaining the generating function for c n,k. 3. The inverse of Fedou s bijection Let N {0, 1, 2,...} and Λ n {λ N n :0 λ 1 λ 2 λ n }.Forw N n,set w w 1 + w 2 + +w n. An element λ Λ n satisfying λ k may be viewed as a partition of k with at most n parts. Note that q λ 1 1 q1 q 2 1 q n. λ Λ n The number of inversions in σ S n induced by σ i is defined to be inv i σ {j: i<j n, σ i >σ j }. The inverse of Fedou s [3] insertion-shift bijection f n as described by Foata personal communication maps S n Λ n onto N n by the rule f n σ, λ w where w i inv i σ + λ σi.for instance, f 6 sends 314652, 011112 S 6 Λ 6 to 302421 N 6. Tracking the pattern and inversion counts through the bijection f n is key. Let σ S n and p S m. Further, suppose that f n σ, λ w. For the inversion count, note that the definition of f n implies that inv σ + λ w. For the pattern count, observe for 1 i<k n that σ i <σ k if and only if w i w k + {j: i<j<k,σ i >σ j } and σ i >σ k if and only if w i >w k + {j: i<j<k,σ i >σ j }. 4 To see how 4 may be used to track a pattern through f n, consider the case when p 14352 S 5 occurs at σ i σ i+1 σ i+2 σ i+3 σ i+4 in σ. Then σ i+3 >σ i+1 >σ i+2 >σ i+4 >σ i. 5 In view of 4, 5 holds if and only if w i+3 + 1 w i+1 >w i+2 >w i+4 w i. So 4 provides a one-to-one correspondence between the occurrences of the consecutive pattern p 14352 in σ and the factors in w belonging to the distinguished set D 14352 { v v 1 v 2 v 3 v 4 v 5 N 5 : v 4 + 1 v 2 >v 3 >v 5 v 1 }. In general, for any pattern p, there is a one-to-one correspondence of the set of consecutive occurrences of p in σ with the set of factors in w belonging to a distinguished set D p completely determined by 4. Furthermore, pσ dw. 6 d D p Tracking a permissible set of patterns is much the same. If P is a permissible set of patterns, then D P p P D p is a distinguished set of factors and 6 holds for each p P.

4. Proof of Corollary 1 Let P be a permissible set of patterns. The map φ that sends w N to q w z lw where q and z are commuting indeterminates and y d to t p for each pattern p P and each d D p extends to a continuous homomorphism from R[[y d : d C DP ]] N to R[[t p : p P ]][[q,z]]. The image under φ of the cluster generating function C DP y,wis C P q, t,z q w z lw tp dδ. 7 w,δ,β C DP p P d D p The properties of f n and the application of φ to Theorem 1 justify the following computation: A n,p q, tz n 1 q1 q 2 1 q n z n q inv σ + λ tp pσ σ,λ S n Λ n p P q w z lw w N p P 1 z 1 q tp dw d D p q w z lw w,δ,β C DP p P d D p t dδ p 1 1. The replacement of z by z1 q then yields 1. The above derivation is just an extension of the proof used by Fedou and Rawlings [4] to obtain the q-exponential generating function for the q-eulerian polynomials. In contrast to the methods used to enumerate permutations by consecutive patterns in [2,9], the inversion number is indispensable in the approach embodied in Corollary 1. 5. Consecutive 12...m 2mm 1 patterns Beginning with the case m 3, let p 132. The associated set of distinguished factors is D 132 {w N 3 : w 2 >w 3 w 1 }. Note that two distinct distinguished factors may overlap in a word in at most one letter. So for w N to be D 132 -coverable, lw must be odd and greater than or equal to three. Moreover, a D 132 -coverable word can be covered with distinguished factors in only one way. For instance, w 27586 {0, 1,...,8} 5 may only be covered with d 1 275 D 132 beginning at w 1 2 and d 2 586 D 132 beginning at w 3 5. In other words, w 27586 appears in but one D 132 -cluster, namely 27586,275, 586, 1, 3. In general, w,δ,β C D132 is such that w N 2k+1, δ d 1,d 2,...,d k with each d i D 132, and β 1, 3,...,2k 1, where k d D 132 dw. Thus, there is a natural one-to-one correspondence between C D132 and the set { w N 2k+1 : w 2j >w 2j+1 w 2j 1 for 1 j k }. 8 k 1

Denoting the kth set appearing in the union in 8 by N 2k+1 132 and putting t t 132 in 7, we have C 132 q,t,z t k z 2k+1 q w. 9 k 1 w N 2k+1 132 As an example of how to compute the q-sum on the right-hand side of 9, note when k 2 that In general, Thus, w N 5 132 q w w 1 0 w N 2k+1 132 q w q w 1 w 3 w 1 q w3 w 5 w 3 q w5 w 2 >w 3 q w 2 q 2 1 q 2 1 q 2 1 q 4 1 q 5. C 132 q,t 1,1 qz w 4 >w 5 q w 4 q k 1 q k 1 q 2 1 q 4 1 q 2k 1 q 2k+1. k 1 By defining the q-integral of a formal series in z to be a k z k dz q a k z k+1 [k + 1], k 0 k 0 10 may be expressed as C 132 q,t 1,1 qz k 1 In view of Corollary 1, it follows that A n,132 q, tz n 1 q k t 1 k z 2k+1 [2][4] [2k][2k + 1]. 10 k 0 qt 1z 2 k [2][4] [2k] dz q. qt 1z 2 k 1 [2][4] [2k] dz q. 11 Elizalde and Noy [2] deduced 11 for the case q 1. Mendes and Remmel [9] subsequently indicated how to obtain 11 for general q. Treatment of the pattern p 12...m 2mm 1 S m for m>3 is much the same as for m 3. Omitting the details, the extension of 11 to m 3 is recorded below. Corollary 2. The q-exponential generating function for permutations by the consecutive pattern p 12...m 2mm 1 S m m 3 and t t p and by the inversion number is A n,p q, tz n 1 k 0 qt 1z m 1 k k 1 j1 [jm 1 + 1] 1 dz q. [km 1]!

6. Consecutive 1mm 1...2 patterns In general, consecutive patterns p S m with a single peak p i <p i+1 >p i+2 for but one i, such as the one of Section 5, are easily dealt with. As a second example of such a pattern, consider p 1mm 1...2 S m where m 3. Arguing in much the same way as in Section 5, there is a natural one-to-one correspondence between C Dp and k 1 N p m 1k+1 the set {w N m 1k+1 : w m 1j+2 >w m 1j+3 > >w m 1j+m and where N m 1k+1 p is As w m 1j+1 w m 1j+1+1 for 0 j k 1 }. w N m 1k+1 p q w q km 1 2 1 q m 1k+1 m 2 j1 1 qj k k i1 1 q m 1i, the corresponding cluster generating function with t t p is C q,t,1 qz q m 1 2 tz m 1 k [m 2]! k k i1 [m 1i] dz q. k 1 Therefore, by Corollary 1, we have Corollary 3. The q-exponential generating function for permutations by the consecutive pattern p 1mm 1...2 S m m 3 and t t p and by the inversion number is A n,p q, tz n q m 1 2 t 1z m 1 k 1 1 [m 2]! k k i1 [m 1i] dz q. k 0 The case m 4 and q 1 of Corollary 3 is due to Elizalde and Noy [2]. 7. Consecutive 12...mpatterns For m 2, let p 12...m S m. The associated set of distinguished factors is D p {w N m : w 1 w 2 w m }Λ m. Note that, for n m, w N n is D p -coverable if and only if w Λ n. Generally, w Λ n may be covered by distinguished factors in more than one way since two distinct distinguishable factors may overlap in a word in as many as m 1letters. For instance, the word w 24789 {0, 1,...,9} 5 appears as the first component in both of the D 123 -clusters 24789,247, 789, 1, 3 and 24789,247, 478, 789, 1, 2, 3. Let a n,k m be the number of times a w Λ n appears in a D p -cluster w,δ,βwith δ having k components. The cluster generating function with t t p is then Cq,t,z w,δ,β n m z lw q w t dδ d D p n m n m+1 z n k1 a n,k mt k w Λ n q w z n n m+1 1 q1 q 2 1 q n a n,k mt k. 12 k1

To determine a n,k m, consider a typical D p -cluster w,δ,b 1,b 2,...,b k. Asb 2 may be 2, 3,...,m 1, or m, it follows that m 1 a n,k m a n j,k 1 m, k 2. 13 j1 Define Gx, z k 1 a n,kmx k z n. Then 13 implies that xz m Gx, z 1 xz1 + z + +z m 2 1 z xzm xz j m 1 j. 14 1 z j 0 Extraction of the coefficient of x k z n from 14 yields { χn m if k 1, a n,k m k 1 j0 1j k 1 n jm m+j 1 if k 2, j k 2 where χn m is 1 if n m and is 0 otherwise. The cases m 2 and m 3 have particularly simple forms: { 1 ifn k + 1 2, k 1 a n,k 2 and a n,k 3, 16 0 otherwise, n k 2 with the latter equality holding for 1 k n 2. By noting 12 and invoking Corollary 1, we obtain Corollary 4. The q-exponential generating function for permutations by the consecutive pattern p 12...m S m m 2 and t t p and by the inversion number is A n,p q, tz n 1 z z n n m+1 1 a n,k mt 1 k, n m k1 where a n,k m is as in 15 or 16. A system of differential equations for the q 1 case of the reciprocal of the generating function in Corollary 4 may be found in [2]. For p 12, Corollary 4 gives the generating function for the classical q-eulerian polynomials associated with the inversion number: If we set e q z zn /, then A n,12 q, tz n 1 t t + e q t 1z. A consecutive occurrence of p 12 in σ is known as a rise. 8. The joint distribution 123, 132, inv The set of distinguished factors associated with the permissible set P {123, 132} is D P D 123 D 132 { w N 3 : w 1 w 2 w 3 } { w N 3 : w 2 >w 3 w 1 }. 15

For a nonempty word v, letflv and LLv, respectively, denote the first and last letters of v. Note that w N n is D P -coverable if and only if there is an integer k 0 and positive integers n k,...,n 0 with n 0 2 such that w v k x k v k 1 x k 1 v 1 x 1 v 0, 17 where x 1,...,x k N, v i Λ ni, and x i > FLv i 1 LLv i.awordw as in 17 contains exactly k distinguished factors from D 132, namely LLv i x i FLv i 1 for 1 i k.letn n P,n k,...,n 0 denote the set of words satisfying 17. For instance, N 9 P,1,3,3 { w N 9 : w 2 >w 3,w 6 >w 7,w 1 w 3 w 4 w 5 w 7 w 8 w 9 }. Note that w N 9 P,1,3,3 In general, q w w N n P,n k,...,n 0 q w q 2 [3][7] 1 q1 q 2 1 q 9. q k k i1 [n 0 + +n i 1 + i 1] 1 q1 q 2 1 q n. 18 Let a nk,...,n 0,j be the number of times that a word w as in 17 appears in a D P -cluster w,δ,β where k signifies the number of components in δ belonging to D 132 and j denotes the number of components in δ belonging to D 123. Noting that x i may or may not be the last letter in a distinguished factor from D 123, repeated use of 16 leads to the conclusion that a nk,...,n 0,j is equal to A {1,2,...,k} A j j 0 + +j k j i A\{l: n l 1} ji 1 n i j i 1 i A\{l: n l 1} ji 1, n i j i 2 where A is the complement of A relative to {0, 1,...,k} so 0 A and, for convenience, μ ν 0 if either ν>μor ν<0. Relative to 7, put t 132 t and t 123 s. The cluster generating function Cq,t,s,z is then n 3 n 1 2 n 2 t k s j z n k0 j0 n k + +n 0 n k n k,...,n 0 1 a nk,...,n 0,j So 18 implies that Cq,t,s,1 qz equals n 3 n 1 2 n 2 q k t k s j z n k0 j0 a nk,...,n 0,j n k,...,n 0 i1 w N n P,n k,...,n 0 q w. k [n 0 + +n i 1 + i 1], 19 where the intermediate sum is over positive integers n k,...,n 0 such that n k + +n 0 n k. Invoking Corollary 1 leads to Corollary 5. The q-exponential generating function for permutations by the permissible set of patterns P {132, 123} t 132 t, t 123 s and by the inversion number is

A n,p q,t,sz n 1 z C q,t 1,s 1,1 qz 1, where Cq,t,s,1 qz is as in 19. A system of differential equations for the q 1 case of the reciprocal of the generating function in Corollary 5 is given in [2]. 9. Concluding remarks As noted in the introduction, the problem that arises in using 1 lies in the computation of a certain q-sum. In the examples of Sections 5 8, the q-sums were relatively straightforward to compute. However, many of the q-sums that arise appear to be intractable. References [1] L. Carlitz, R. Scoville, T. Vaughan, Enumeration of pairs of permutations, Discrete Math. 14 1976 215 239. [2] S. Elizalde, M. Noy, Consecutive patterns in permutations, Adv. Appl. Math. 30 2003 110 125. [3] J.M. Fedou, Fonctions de Bessel, empilements et tresses, in: P. Leroux, C. Reutenauer Eds., Séries Formelles et Combinatoire Algébrique, in: Publ. du LaCIM, Unversité à Montréal, Québec 11, 1992, pp. 189 202. [4] J.M. Fedou, D.P. Rawlings, Adjacencies in words, Adv. Appl. Math. 16 1995 206 218. [5] I.P. Goulden, D.M. Jackson, An inversion theorem for cluster decompositions of sequences with distinguished subsequences, J. London Math. Soc. 2 20 1979 567 576. [6] I.P. Goulden, D.M. Jackson, Combinatorial Enumeration, Wiley, 1983. [7] S. Kitaev, Generalized patterns in words and permutations, PhD thesis, Chalmers University of Technology and Göteborg University, 2003. [8] S. Kitaev, Partially ordered generalized patterns, Discrete Math. 298 2005 212 229. [9] A. Mendes, J.B. Remmel, Permutations and words counted by consecutive patterns, Adv. Appl. Math., in press. [10] R.P. Stanley, Enumerative Combinatorics, vol. I, Wadsworth & Brooks/Cole, 1986. [11] D. Zeilberger, Enumeration of words by their number of mistakes, Discrete Math. 34 1981 89 91.