arXiv:2108.04302v1 [math.CO] 9 Aug 2021 hr pi either is op where n bandfo h nie ftevralsin variables the of indices the from obtained inserting h recurrence the r aee yteeeet of elements the by labeled are hi flength of chain hrfr,wa-reigcan r nmrtdb h sequ the by enumerated are chains weak-ordering Therefore, where lc ftepriinwhenever partition the of block i.I te od,spoeta ed o lo oe with nodes allow not do we that suppose words, other In tie. odrdBl ubr)1 numbers) Bell (ordered aibe.Every variables. A vr element Every o,spoeta ews oso h bv eeaigproces generating above the stop to wish we that suppose Now, ekodrn chain weak-ordering ETITDGNRTN RE O EKORDERINGS WEAK FOR TREES GENERATING RESTRICTED ij AILBRAE,JA .GL AI .KNP,ADMCALD. MICHAEL AND KENEPP, S. DAVID GIL, B. JUAN BIRMAJER, DANIEL y < x otesuyo ecn ttsiso eti ams’patte ‘almost’ certain of statistics descent of study the to certain a aibeit ahnd teeyse.And eoe efei leaf a becomes node A step. every at node each into variable evso eti etitdroe re.Ate forder of tree A trees. weak rooted of restricted enumeration certain the of consider leaves we partitions, ordered and Abstract. sasotu for shortcut a is x i or , 2 23 321 tgte iheither with (together tpigcondition stopping i x − ≤ w oiae ytesuyo atr viac ntecnetof context the in avoidance pattern of study the by Motivated x < 3 213 231 1 .Ti rcs eeae otdlbldte hs oe a nodes whose tree labeled rooted a generates process This 1. y 2 w WOC ∈ n eea odtoso ie3 oeo h ae consider cases the of Some 3. size of conditions several and ) x < r= elet We =. or WOC ∈ 21 f , 4 0 ntevariables the in x 3 = and 1 = , i 13 x < ( x n , 5 ( WOC a ercrieygnrtdsatn with starting generated recursively be can ) n 75 smt nti ae efcso odtoso ie2( 2 size of conditions on focus we paper this In met. is x x < 213 j orsod oa ree atto f[ of partition ordered an to corresponds ) i , and x 541 = < i WOC 1 1. 1 ( f x i x < op .Freape for example, For ). , n r= noapeiul osrce weak-ordering constructed previously a into =) or ij j 312 Introduction 4683 o example, For . = x represents 3 ( i x n 2 X i 1 =1 n , 123 eoetesto l ekodrn hisin chains weak-ordering all of set the denote ) op →{{ ←→ x , 12 47293 w 1 1 hr h numbers the where , 2 · · · x , . . . , n i 12 op , 3 f 545835 x n x 2 − i } i n n i = , n 1 13 312 , { sa xrsino h form the of expression an is naodn permutations. rn-avoiding for sgnrtdb netn new a inserting by generated is 4 x n , j , . . . , 5 odrn hisotie as obtained chains -ordering . ne( ence ,w e h tree the get we 3, = n } x hrafter ther , ≥ i 3 123 132 2 { 1 = 4 007] hc satisfy which A000670], [4, 1 } f 12 . , x n { j sso sw aea have we as soon as s i ) 3 n o some for }} and ∈ n N . tp rwhen or steps permutations fFbn numbers Fubini of dhr lead here ed j 123 n r ntesame the in are WEINER = ] x j > i x 1 = n then and , { y 1 , level t n , . . . , ohave to } i 2 BIRMAJER,GIL,KENEPP,ANDWEINER descendants. Then, the above tree would take the form
1 (1.1)
21 12 12
321 231 231 213 213 312 132 132 123 123 with only 11 leaves instead of 13. We call (1.1) a restricted generating tree of weak-ordering chains subject to the stopping condition xi = xj. The goal of this paper is to study the enumeration of weak-ordering chains subject to various stopping conditions. This is equivalent to counting the number of leaves of the corresponding restricted generating subtree of (n). Our strategy relies on separating the leaves thatWOC avoid the stopping condition, call them active leaves, from the leaves that contain the stopping condition, call them inactive leaves. Throughout this paper, we will consistently use an to denote the total number of active leaves after n steps, and bn for the total number of inactive leaves. We also let ∆n be the number of leaves that become inactive at level n, thus ∆1 = 0 and ∆n = bn bn−1 for n 2. Note that the meaning of active/inactive depends on the given stopping− condition. ≥ For example, for the stopping condition xi = xj, we have
a1 = 1, b1 = 0, a2 = 2, b2 = 1, a3 = 6, b3 = 5. The five inactive leaves at step 3 are the ones labelled by 12, 231, 213, 132, and 123. This manuscript is organized as follows. In Section 2, we start with the simpler case when the stopping condition involves only one operation (=, <, or ). In Sections 3–5, ≤ we consider stopping conditions of the form xi1 op xi2 op xi3 where op is either < or . Our approach leads to descent statistics of certain ‘almost’ pattern-avoiding permutations.≤ Finally, in Section 6, we consider the k-equal case and other stopping conditions with restrictions in both the order and the sizes of the parts in the partitions corresponding to the weak-ordering chains.
2. Trees with stopping condition of size 2 In this section, we will discuss the enumeration of weak-ordering chains subject to the stopping conditions xi = xj, xi In conclusion, wn = an + bn = 2n! 1. − Theorem 2.2 (Stopping condition xi < xj). If wn is the number of weak-ordering chains n−1 in (n), subject to the stopping condition xi Proof. The only active chain at level n is xn < xn− < < x , so an = 1. Moreover, 1 · · · 1 the active chain xj− < < x generates 2(j 1) inactive leaves at level j, obtained 1 · · · 1 − by replacing xk with either xk < xj or xk = xj for k 1,...,j 1 . Therefore, bn = n ∈ {2 − } 2(j 1) = n(n 1), which implies wn = an + bn = n n + 1. j=1 − − − P 3. Stopping condition xi1 x Our connection between weak-ordering chains and permutations makes it clear that a leaf is inactive if the associated permutation has a 123 pattern. Thus, in order to count the elements that become inactive at level n, we need to enumerate the following set: For n> 3 and 1 d n 3, define ≤ ≤ − d ′ (123) = σ Sn σ has a 123 pattern, d descents, and σ Sn− (123) , (3.4) Gn { ∈ | ∈ 1 } ′ where σ Sn−1 denotes the permutation obtained from σ Sn by removing n. Clearly,∈ d(123) = d(123) = ∅, and for n = 3, only 123∈ has the desired property. G1 G2 d Proposition 3.5. If gn,d = (123) , then g (0) = 1, and for n> 3 and 1 d n 3, |Gn | 3 ≤ ≤ − gn,d = (d + 1)en− ,d + (n d)en− ,d− en,d, (3.6) 1 − 1 1 − ∞ n−3 d 3 n d where en,d = S (123) . Therefore, G(x,y)= x + gn,d x y satisfies | n | nP=4 dP=1 2 2 G(x,y)= x + (x 1)E(x,y)+ x yEx(x,y) + (xy xy )Ey(x,y). − − RESTRICTEDGENERATINGTREESFORWEAKORDERINGS 5 where Ex, Ey = E, and E(x,y) is the function in (3.2). In other words, h i ∇ 1 4xy(1 + x xy) + 2x2y (1 2xy) 1 4xy(1 + x xy) G(x,y)= − − − − − − . 2xy2 1 4xy(1 + x pxy) − − d p Proof. For n > 3, every σ in n(123) can be generated by inserting n into a permutation ′ d d−1 G σ Sn−1(123) Sn−1(123) at a position where it creates a 123 pattern. ∈ ′ ∪ If σ has d descents, then n may only be inserted at a descent or at the last position of ′ ′ d d σ . Thus, each σ Sn−1(123) generates d + 1 permutations in Sn. On the other hand, if σ′ has d 1 descents,∈ then n will have to be inserted at one of the n d available ascents ′ − ′ d−1 − of σ in order to create an extra descent. Therefore, each σ Sn−1(123) generates n d d ∈ − permutations in Sn. Together, the above insertion procedures generate (d + 1)en− ,d + (n d)en− ,d− permu- 1 − 1 1 tations of size n with d descents. However, since the elements of d(123) are required to Gn have a 123 pattern, we need to remove the en,d permutations that avoid 123. The first statement about G(x,y) then follows from (3.6) by means of routine algebraic manipulations. The closed form statement is just a consequence of (3.2). Theorem 3.7. If wn is the number of weak-ordering chains in (n), subject to the WOC stopping condition xi1 n−1 n j−3 d d wn = 2 en,d + 2 gj,d. Xd=0 Xj=3 Xd=0 The sequence (wn)n∈N starts with 1, 3, 13, 69, 401, 2433, 15121, 95441, 609025, 3918273,..., ∞ n and W (x)= wnx satisfies nP=1 x + x√1 8x + 8x2 W (x)= − . 2(1 x)√1 8x + 8x2 − − n−1 d Proof. By (3.1), the number of actives leaves after n steps is an = 2 en,d, and their d=0 generating function A(x) is given by P (1 2x)2 √1 8x + 8x2 A(x)= E(x, 2) = − − − . 8x(1 x) − On the other hand, a weak-ordering chain that becomes inactive at level j 3 leads ′ ≥ to a σ Sj that have a 123 pattern, and such that σ Sj− (123). The number of such ∈ ∈ 1 permutations having d descents is given by gj,d in (3.6). Now, since a descent σ(i) >σ(i+1) d in σ comes from either xσ(i) n The formula for wn = an + bn follows from the fact that bn = ∆j. j=3 ∞ Pn Finally, using Proposition 3.5 we can write B(x)= n=1 bnx as G(x, 2) 1 8x + 12x2 (1 P4x)√1 8x + 8x2 B(x)= = − − − − , 1 x 8x(1 x)√1 8x + 8x2 − − − and the claimed expression for W (x) is obtained by combining A(x)+ B(x). 4. Stopping condition xi1 xi2 xi3 with i < i < i ≤ ≤ 1 2 3 This case is more restrictive than the previous one. For example, the chains x1 = x2 x5 = x7