On square permutations
Abstract
Severini and Mansour introduced in [4]square polygons, as graphical representations of square permutations, that is, permutations such that all entries are records (left or right, minimum or maximum), and they obtained a nice formula for their number. In this paper we give a recursive construction for this class of permutations, that allows to simplify the derivation of their formula and to enumerate the subclass of square permutations with a simple record polygon. We also show that the generating function of these permutations with respect to the number of records of each type is algebraic, answering a question of Wilf in a particular case.
Full text
ON SQUARE PERMUTATIONS ENRICA DUCHI AND DOMINIQUE POULALHON Abstract. Severini and Mansour introduced in [4] square polygons, as graphical representations of square permutations, that is, permutations such that all entries are records (left or right, minimum or maximum), and they obtained a nice formula for their number. In this paper we give a recursive construction for this class of permutations, that allows to simplify the derivation of their formula and to enumerate the subclass of square permutations with a simple record polygon. We also show that the generating function of these permutations with respect to the number of records of each type is algebraic, answering a question of Wilf in a particular case. 1. Introduction A permutation π=π1...πnof size ncan be naturally represented on Z2 by the set Gπof points (i, πi). In order to construct a grid polygon on Gπ, we classify its elements as follows: a point (i, j)∈ Gπis respectively said to be •aleft-right minimum (lrmin) if, for any (i′, j′)∈ Gπ,i′< i =⇒ j′> j; •aright-left minimum (rlmin) if, for any (i′, j′)∈ Gπ,i′> i =⇒ j′> j; •aleft-right maximum (lrmax) if, for any (i′, j′)∈ Gπ,i′< i =⇒ j′< j; •aright-left maximum (rlmax) if, for any (i′, j′)∈ Gπ,i′> i =⇒ j′< j; •an interior point otherwise. Observe that these definitions agree with usual definitions of lrmin, rlmin, lrmax, rlmax on permutations. The sequences of lrmin, rlmin, lrmax and rlmax are respectively called left lower path,right lower path,left upper path and right upper path of Gπ. This paper has been partially supported by Centre de Recerca Matemàtica, Universitat Autònoma de Barcelona. 1
2 ENRICA DUCHI AND DOMINIQUE POULALHON The record polygon of πis the grid polygon with the concatenation of its left lower path, right lower path, right upper path and left upper path as contour. Asquare permutation is a permutation without interior point, and a square polygon is the record polygon of such a permutation. Square polygons were defined in a slightly different but equivalent way by Severini and Mansour [4]. They are also related to the permutominoes considered by Boldi et al. [2] and Rinaldi et al. [3]. b b b b b b b b b b (a) An ordinary one, b b b b b b b b b b b b (b) a square one, with ascending double points b b b b b b b b b b (c) and a simple square one. Figure 1. Some examples of record polygons. An extremal point is a point on the border of the bounding box of the polygon. A descending double point is a non extremal point that is simultaneously lrmin and rlmax. An ascending double point is a non extremal point that is simultaneously lrmax and rlmin. These points are respectively the common points between the left lower and right upper paths, and between the left upper and right lower paths. Points of the polygon that are neither extremal nor double are said simple. A simple square polygon is a square polygon without double points. Observe that ascending double points of a record polygon are fixed points of the associated permutation,
ON SQUARE PERMUTATIONS 3 and descending double points are fixed points of the reverse permutation; moreover, a non simple square polygon has either descending or ascending double points, but not both, and these two classes of square polygons are mapped one onto the other by vertical symmetry. From now on we denote indifferently by π=π1π2...πna square permutation or the associated square polygon, and by SPnthe class of square permutations (or square polygons) of size n. In Section 2 we present a construction for square permutations of size n. Our construction allows us in Section 2.3 to recover easily the formula obtained by Severini and Mansour, but also to control various parameters in Section 3: we show in particular that their generating function according to the parameters lrmin, lrmax, rlmin and rlmax is algebraic. This answers in the special case of square permutations a question of Wilf during an invited communication at CRM [5], asking for a way yo keep track simultaneously of these four types of records in permutations. Finally our construction allows us to calculate the number of square permutations with a simple record polygon. 2. A construction for the class of square polygons 2.1. The construction. We now define some operations to produce unambiguously all permutations in class SPn+1 out of permutations in class SPn. In order to define these operations, we introduce the following notations. Given a square permutation π, let jπdenote the least integer such that (jπ, πjπ)is a simple point belonging to the left lower path of π. Observe that this point is well defined except for the permutation π=n, n−1,...,1, for which we set jπ=n, and for permutations πsuch that π1= 1, in which case the left lower path is reduced to the extremal point (1,1), and we set jπ= 1. Then the points of left lower path with absissa strictly between 1 and jπform a (possibly empty) sequence of ℓ(π)descending double points which we call the initial double points of π. Let also H(π) = ([[πjπ+ 1, π1]] if πjπ6= 1, [[1, π1]] if πjπ= 1, so that h(π) = |H(π)|=(π1−πjπif πjπ6= 1, π1if πjπ= 1. We are now in position to define the construction. For any p∈H(π), let ϑp 1(π)and ϑp 2(π)be respectively the permutation σ=σ1...σn+1 and
4 ENRICA DUCHI AND DOMINIQUE POULALHON τ=τ1. . . τn+1 defined by: σm= pif m= 1 πm−1if m⩾2and πm−1< p πm−1+ 1 if m⩾2and πm−1⩾p and by τ1=σ2 τ2=σ1 τm=σmif m⩾3. b b b b b b b b b b b b πj= 3 j= 7 π1= 7 p= 5 (a) A permutation π, b b b b b b b b b b b (b) ϑp 1(π), b b b b b b b b b b b (c) and ϑp 2(π). Figure 2. Example of the ϑ-construction This construction is illustrated in Figure 2. In other terms, given a polygon πand an integer p∈H(π), we produce a polygon ϑp 1(π)by inflating the polygon between lines p−1and pto insert a point in a new first column, and a polygon ϑp 2(π)by exchanging the first two columns of the previous
ON SQUARE PERMUTATIONS 5 1234 2134 1 12 21 13245 23145 31245 32145 123 2314 3124 213 1324 3214 2143 1342 2341 3241 3142 1423 2413 3412 4123 4213 4312 1432 2431 3421 4132 4231 4321 132 231 312 321 1243 14325 21345 12345 21435 12435 13425 23415 31425 32415 14235 24135 34125 43125 42135 41235 Figure 3. The first levels of the generating tree of square permutations. polygon. Finally let ϑ(π)be the set of all ϑp i(π)for iin {1,2}and pin H(p). This set has clearly cardinality 2h(π). Theorem 1. All elements of SPn+1 are produced in a unique manner by applying the operator ϑto all objects in SPn: SPn+1 =G π∈SPn ϑ(π). Proof. Omitted. Observe that ϑforms an ECO operator in the sense of [1]. Figure 3 shows the first levels of the generating tree associated with the previous construction. 2.2. The succession rule. Now we want to describe the way the construction ϑaffects the parameter h. This leads us to distinguish four different
6 ENRICA DUCHI AND DOMINIQUE POULALHON b b b b b b b b π1=n n−1 . . . n−ℓ πj= 1 1··· ℓ+ 1 j h=n (a) Class A, b b b b b b b b b b π1< n π1−1 . . . π1−ℓ πj= 1 1j h=π1 (b) class B, b b b b b b b b b π1=n n−1 . . . n−ℓ πj>1 1··· ℓ+ 1 j h=n−πj (c) class C, b b b b b b b b b b b π1< n πj>1 π1−1 . . . π1−ℓ 1j h=π1−πj (d) and class D. Figure 4. The four subclasses of square polygons (cases of a non-empty initial sequence of double points). sub-classes An,Bn,Cnand Dnof SPn, depending on the values of π1and πjπ: π1=n π1< n πjπ= 1 A(Fig. 4(a)) B(Fig. 4(b)) πjπ>1C(Fig. 4(c)) D(Fig. 4(d)) Figure 4 shows the shapes of generic square permutations in each subclass, with a non-empty initial sequence of double points, but of course this sequence may be empty. For each one of the previous classes, we want to describe the evolution of the parameter h(the label in ECO-terminology) by giving a so-called succession rule, which describes the types and labels of the polygons generated out of a polygon with a given type and label.
ON SQUARE PERMUTATIONS 7 b b b b b b b b σ1= 1 (a) ϑ1 1(π)∈ B, with label 1, b b b b b b b b b b σ1=p σj= 1 (b) ϑp 1(π)∈ B, with label p, b b b b b b b b b b σ1=n σj= 1 (c) ϑn 1(π)∈ B, with label n, b b b b b b b b n+ 1 τj= 1 (d) ϑ1 2(π)∈ A, with label n+ 1, b b b b b b b b b b n+ 1 τj=p (e) ϑp 2(π)∈ C, with label n+ 1 −p, b b b b b b b b b n+ 1 τj= 1 (f) ϑn 2(π)∈ A, with label n+ 1. Figure 5. Construction for polygons of class A(with shape as in Fig. 4(a)), in the three cases p= 1,1< p < n and p=n. 2.2.1. Class A, illustrated in Figure 5. For any polygon π∈ An,h(π) = n and the construction consists in adding a point with ordinate p,1⩽p⩽n,
8 ENRICA DUCHI AND DOMINIQUE POULALHON in the first or second column of the polygon. In the picture we distinguish the cases in which the added point has ordinate p= 1,1< p < n or p=n. The first operation ϑ1produces only polygons σof type Bsince σ1= p < n + 1, and 1remains the ordinate of the first simple point in the left lower path of σ(in other words σjσ= 1); for these polygons, h(σ) = p. The second operation ϑ2produces polygons τof type Afor p= 1 and p=n, since in these cases τ1=n+ 1, and 1remains the ordinate of the first simple point in the left lower path of τ. Hence for both of these cases h(τ) = n+ 1. For 1< p < n, the second operation produces a polygon τof type Csince τ2=pis the first simple point in the left lower path of τ. For these cases h(τ) = n+ 1 −p. Then this can be summarized by a succession rule as follows: (n)a→(1)b(2)b...(n)b(2)c(3)c...(n−1)c(n+ 1)a(n+ 1)a meaning that a polygon of type Aand label nproduces: •npolygons of type bwith respective labels 1,2,...,n, •n−2polygons of type Cwith respective labels 2,3,...,n−1, •2polygons of type Awith labels n+ 1. 2.2.2. Class B, illustrated in Figure 6. Let π∈ Bn; observe that h(π) = π1. In Figure 6 we distinguish the case p= 1 and the generic case 1< p ⩽k. The first operation ϑ1produces polygons σof type Bsince σ16=n+ 1, and 1remains the ordinate of the first simple point in the left lower path. For these polygons h(σ) = p. The second operation produces for p= 1 a polygon τof type Bsince τ16=n+ 1, and 1remains the ordinate of the first simple point in the left lower path. For this polygon h(τ) = h(π) + 1. The other polygons have type Dsince τ16=n+ 1 and τ2=p > 1is the ordinate of the first simple point in the left lower path. Hence h(τ) = h(π) + 1 −pfor these polygons. Therefore we have the following succession rule for this case: (h)b→(1)b(2)b...(h)b(h+ 1)b(1)d(2)d...(h−1)d. 2.2.3. Class C, illustrated in Figure 7. Let π∈ Cn; observe that 1< h(π)< n−1. We distinguish the case p=nand the cases n−h(π)< p < n. The first operation ϑ1produces in any case a polygon σof type D, since σ16=n+ 1 and πj6= 1 is the ordinate of the first simple point in the left lower path. Hence for these polygons h(σ) = p−n+h(π). The second operation ϑ2produces only polygons of type C. Indeed when τ2=p=nthen πj6= 1 remains the ordinate of the first simple point in the left lower path, and h(τ) = h(π) + 1 for this polygon. On the contrary,
ON SQUARE PERMUTATIONS 9 b b b b b b b b b σ1= 1 (a) ϑ1 1(π)∈ B, with label 1, b b b b b b b b b b b σ1=p σj= 1 (b) ϑp 1(π)∈ B, with label p, b b b b b b b b b τ1 =π1+ 1 τj= 1 (c) ϑ1 2(π)∈ B, with label h(π) + 1, b b b b b b b b b b b τj=p τ1 =π1+ 1 (d) ϑp 2(π)∈ B, with label h(π) + 1 −p. Figure 6. The construction for polygons of type B(with shape as in Fig. 4(b)), in the two cases p= 1 and 1< p ⩽ h(π). when τ2=p < n then pis the ordinate of the first simple point of the left lower path and h(τ) = n+ 1 −pfor these polygons. Therefore we have the following succession rule for this case: (h)c→(1)d(2)d...(h)d(2)c(3)c...(h)c(h+ 1)c. 2.2.4. Class D, illustrated in Figure 8. Let π∈ Dn. In this case, π1< n and πj>1, hence pmay not be equal to 1nor n. The first operation ϑ1produces polygons σof type Dsince σ1=p < n and the ordinate of the first simple point of the lower path is the same as for π. Hence h(σ) = p−π1+h(π).
16 ENRICA DUCHI AND DOMINIQUE POULALHON Proposition 3. Any succession rule of type (p, q, r, s)f→(0,1, p+r, s)g... (0, p+1, r, s+p)ggives in the equation for the associated generating function G(y, z) = Po∈G xn(o)yp(o)zq(o)wr(o)ts(o)of the class Ga contribution xz w−tz [wF (w, 1, w, t)−tzF (tz, 1, w, t)] , where F(y, z, w, t) = Po∈F xn(o)yp(o)zq(o)wr(o)ts(o)is the generating function for the class F. Proof. Omitted. Let A(y, z, u, v) = X o∈A xn(o)yl(o)zh(o)wm(o)uα(o)vβ(o)sγ(o)tδ(o) where we indicate only the variables that we will need to substitute to write the equations, and similarly for B,Cand D. According to the previous propositions we can easily translate the refined succession rule in the following system of functional equations: A(y, z, u, v) = x2z2us +xzutA(sz, z, 1,1) + xyuA(y, z, 1,1) B(y, z, u, v) = x2zvt +xzvtA(s, 1,1,1) + xzuv 1−z(zA(s, 1,1,1) −A(s, z, 1,1)) + xyuv s−y(A(s, z, 1,1) −A(y, z, 1,1)) +xzvtB(s, 1,1, v) + xzutB(sz, z, 1, v) +xuvz 1−z(zB(s, 1,1, v)−B(s, z, 1, v)) +xyuv s−y(B(s, z, 1, v)−B(y, z, 1, v)) C(y, z, u, v) = xz2u2s w−sz (A(w, 1,1,1) −A(sz, 1,1,1)) +xu2 1−z(z2A(zs, 1,1,1) −A(zs, z, 1,1)) +xyC(y, z, u, 1) + xz2us w−sz (C(w, 1, u, 1) −C(sz, 1, u, 1)) + xzu 1−z(zC(sz, 1, u, 1) −C(sz, z, u, 1))
ON SQUARE PERMUTATIONS 17 D(y, z, u, v) = xuz w−sz (wB(w, 1, u, v)−szB(sz, 1, u, v)) +xu 1−z(z2B(sz, 1, u, v)−B(sz, z, u, v)) +xzv 1−z(C(s, 1, u, 1) −C(s, z, u, 1)) +xvy s−y(C(s, z, u, 1) −C(y, z, u, 1)) +xvz 1−z(D(s, 1, u, v)−D(s, z, u, v)) +xvy s−y(D(s, z, u, v)−D(y, z, u, v)) +xuz w−sz (wD(w, 1, u, v)−szD(sz, 1, u, v)) +xuz 1−z(zD(sz, 1, u, v)−D(sz, z, u, v)) Theorem 3. The series A,B,Cand Dare algebraic series. Proof. •Setting y=sz in the first equation we obtain A(sz, z, 1,1) and then A(y, z, 1,1) and A(y, z, u, v), all are rational in the variables. •Setting y=sz and u= 1, the terms in B(s, z, 1, v)cancel and it remains an equation between B(sz, z, 1, v)and B(s, 1,1, v)which is solved by the kernel method for variable z. Then we apply the kernel method for variable yto the original equation with u= 1, to get B(y, z, 1, v)and B(s, z, 1, v). Finally returning again to the original equation we get B(y, z, u, v)which is rational in the variables and the Catalan refinement: Z0(x;v, t) = 1−xv +xt −p(1 −xv +xt)2−4xt 2xt . •We subtract to the third equation with v= 1, the same equation with v= 1 and y=sz, to get an equation between C(y, z, u, 1) and C(sz, z, u, 1). Setting y=wand z= 1 in this equation gives C(w, 1, u, 1) in terms of C(s, 1, u, 1). Setting instead z= 1 and y=sz in this equation gives C(sz, 1, u, 1) in terms of C(s, 1, u, 1). With these equation the original equation is rewritten in terms of C(sz, z, u, 1) and C(s, 1, u, 1) and the kernel method for variable zallows to express these series, and then C(y, z, u, v)as rational functions of the variables and Z0(x;u, s) = 1−xu +xs −p(1 −xu +xs)2−4xs 2xs .
18 ENRICA DUCHI AND DOMINIQUE POULALHON •We subtract to the fourth equation, the same equation with y= sz, to get an equation (*) between D(y, z, u, v),D(sz, z, u, v)and D(s, z, u, v). Applying the kernel method for the variable ythen gives D(s, z, u, v)in terms of D(sz, z, u, v), which allows to rewrite (*) as an equation between D(y, z, u, v)and D(sz, z, u, v)in which we can set z= 1 (the terms of the form 1 1−zhave cancelled). We then obtain D(s, 1, u, v),D(y, 1, u, v)and D(y, z, u, v)as rational functions of the variables, Z0(x;v, t)and Z0(x;u, s). 4. Counting simple square polygons Proposition 4. The number snof simple square polygons of size nis sn=pn−2(pn−qn), where pnis the number of square polygons of size n, and qnis the number of square polygons without descending double points. Proof. pn−qnis the number of square polygons with at least one descending double point, and also by symmetry, the number of square polygons with at least one ascending double point. Since a square polygon cannot have both ascending and descending double points the result follows. The generating series of qnis P|y=0,w=0, where P=A+B+C+Das above: P|y=0,z=0 =1 2(2 + x)x2(8 −23x) (1 −4x)2−x3(17 + 4x) (1 −4x)3/2. Theorem 4. The generating series of simple square polygons with respect to the size is 1 2 + xx2(4 −13x+ 6x2) (1 −4x)2−9x3 (1 −4x)3/2. Acknowledgements The authors are grateful to Simone Rinaldi for interesting discussions and to Gilles Schaeffer for useful comments on a preliminary version of this paper. References [1] Barcucci, E., Del Lungo, A., Pergola, E., Pinzani, R. ECO: a methodology for the Enumeration of Combinatorial Objects. J. Diff. Eq. and App. 5(1999) 435-49. [2] Boldi, P., Lonati, V., Radicioni, R., Santini, M. The number of convex permutominoes. Rapporto Interno n.311-06, Universita‘ degli Studi di Milano, available electronically at http://santini.dsi.unimi.it/research/papers.php.
ON SQUARE PERMUTATIONS 19 [3] Disanto, F., Frosini, A., Pinzani, R., Rinaldi, S. A closed formula for the number of convex permutominoes. The Electronic Journal of Combinatorics, Volume 14(1), 2007, R57. [4] Mansour, T., Severini, S. Grid polygons from permutations and their enumeration by the kernel method. 19-th Intern. Conf. on Formal Power Series and Algebraic Combinatorics, Center for Combin., Nankai Uni., Tianjin, China, July 2-6, 2007. [5] Wilf, H. Invited talk at CRM Conference Enumeration and Probabilistic Methods in Combinatorics, June 2007, Barcelona.