Next Article in Journal
Quantile Reparameterized Regression Model and Machine Learning with Long-Term Survivors
Previous Article in Journal
Beyond Algebraic Superstring Compactification: Part II
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Generating Trees Unifying Several Classes of Four-Letter Pattern-Avoiding Descent Sequences

Department of Mathematics, University of Haifa, Haifa 3103301, Israel
Axioms 2026, 15(6), 450; https://doi.org/10.3390/axioms15060450
Submission received: 7 May 2026 / Revised: 5 June 2026 / Accepted: 15 June 2026 / Published: 16 June 2026

Abstract

A descent sequence is a word of nonnegative integers satisfying that the first term is zero, and each subsequent term is at most one plus the number of descents among the preceding terms, where a descent is a position at which a term is greater than the term immediately following it. In this work, we study descent sequences subject to the additional restriction of avoiding a given pattern of length four. We analyze seven distinct avoidance classes and provide enumerative results for each of them. Our approach is based on the construction of generating trees with one or two labels, from which we derive succession rules and corresponding systems of recurrence relations. These recurrences are then used to compute explicit generating functions for the number of descent sequences of length n avoiding either 0001, 0010, 0011, 0012, 0021, 0110, 0112, 0123, or 0132.

1. Introduction

Pattern avoidance has been widely investigated across a variety of combinatorial frameworks such as permutations, set partitions, ascent sequences, inversion sequences, and descent-like structures. This line of research is motivated by deep connections with enumerative combinatorics, generating functions, bijective constructions, and Wilf-equivalence phenomena. Among these objects, descent sequences form an interesting family closely linked to Catalan-type structures and other restricted integer sequences that naturally arise in enumeration problems. Investigating pattern avoidance in this setting extends classical avoidance theory to a broader class of combinatorial sequences and sheds light on their structural and enumerative behavior. Standard references include [1,2,3].
A descent in an integer sequence w 1 w 2 w m is an index j such that w j > w j + 1 . We call a sequence of nonnegative integers π 1 π 2 π n a descent sequence of length n if it satisfies:
  • the initial condition π 1 = 0 ,
  • for each i with 2 i n , the inequality π i des ( π 1 π 2 π i 1 ) + 1 holds,
where des ( · ) counts the number of descents in the given prefix. For instance, 010203 satisfies these conditions and is a descent sequence, whereas 01103 fails to satisfy them. These sequences were first introduced by Callan [4], and later studied jointly by the author and Callan in the context of avoidance of pairs of length-three patterns [5].
We now recall the notion of pattern containment for integer sequences. Let w = w 1 w 2 w n be a word over the integers. A pattern τ = τ 1 τ m is a word over { 0 , 1 , , } in which every symbol in this alphabet appears at least once. We say that w contains τ if there exist indices 1 f 1 < f 2 < < f m n such that the subsequence w f 1 w f 2 w f m is order-isomorphic to τ . Equivalently, for any i , j , the relations between w f i and w f j (less than, greater than, or equal) match exactly those between τ i and τ j . If no such subsequence exists, then w is said to avoid τ . As an illustration, the descent sequence 010201303 realizes every pattern of length three but avoids the pattern 0321. We write D n ( τ ( 1 ) , , τ ( m ) ) for the set of descent sequences of length n that avoid all patterns τ ( 1 ) , , τ ( m ) . Two pattern sets T and R are said to be D-Wilf-equivalent, written T d R , if | D n ( T ) |   =   | D n ( R ) | for all n 0 .
Callan and Mansour [5] determined the classification of D-Wilf-equivalence classes: there are 9 classes for single patterns of length three, 23 classes for pairs of length-three patterns, and 69 classes for patterns of length four. They also obtained explicit generating functions in several cases, including
F 1002 ( x ) = F 1012 ( x ) = x ( 1 2 x ) ( 1 x ) ( 1 3 x + x 2 ) , F 0100 ( x ) = F 0101 ( x ) = F 0102 ( x ) = x 1 2 x .
Here F τ ( x ) denotes the generating function counting nonempty descent sequences in D n ( τ ) .
In this work, we focus on computing F τ ( x ) for several patterns of length four. For each equivalence class, we construct a generating tree with one or two labels, extract functional equations from the associated succession rules, and solve them to obtain closed-form generating functions. In particular, we enumerate descent sequences avoiding any of the patterns 0001, 0010, 0011, 0012, 0021, 0110, 0112, 0123, and 0132. (See also [1,2,3] for related results on pattern avoidance in permutations and set partitions.)
The structure of the paper is as follows. Section 2 introduces the framework of generating trees and outlines the general strategy. In Section 2.1, Section 2.2, Section 2.3, Section 2.4, Section 2.5, Section 2.6 and Section 2.7, we treat the individual patterns 0010, 0011, 0110, 0112, 0123, 0132, and 0001 separately. In each case, we derive appropriate succession rules and compute the corresponding generating functions.

2. Generating Trees and Proofs

We now describe the generating tree T ( P ) associated with pattern-avoiding descent sequences in D ( P ) = n 1 D n ( P ) , following the construction in [5] and related works such as [6,7,8,9,10,11,12].
The tree is rooted at the single vertex labeled 0 at level 1. Suppose π 1 π n 1 D n 1 ( P ) . Its children are all sequences obtained by appending a value π n satisfying π n { 0 , 1 , , des ( π 1 π n 1 ) + 1 } , provided that the resulting sequence still avoids all patterns in P.
For a node π , let T ( P ; π ) denote the subtree rooted at π that contains all of its descendants. Two nodes π and π are considered equivalent, written as π π , if their corresponding subtrees are isomorphic as ordered rooted trees.
We then form a reduced tree T [ P ] by identifying each node with the first representative (in a breadth-first, left-to-right traversal) of its isomorphism class. From this point onward, we treat T ( P ) and T [ P ] as the same object.
Example 1.
Let P = { 0021 } . The children of 0 in the generating tree T ( P ) are 00 and 01, which leads to the succession rule 0 00 , 01 .
Clearly, the children of 00 T ( P ) are 000 and 001. The descent sequence 000 π avoids P if and only if the descent sequence 00 π avoids P, so 000 00 . Also, the descent sequence 001 π avoids P if and only if the descent sequence 00 π avoids P (by removing the third letter in 001 π ), so 001 00 . Thus, we have the succession rule 00 00 , 00 . Similarly, we have 01 010 , 01 and 010 010 , 00 , 010 . Hence, the generating tree T ( P ) is determined by the following succession rules: 0 00 , 01 , 00 00 , 00 , 01 010 , 01 , and 010 010 , 00 , 010 .
For a given set P, we aim to obtain an explicit expression for the generating function
F P ( x ) = n 1 number of nodes at level n of T ( P ) x n .
To this end, we introduce the more refined quantity
F P ; π ( x ) = n 1 number of nodes at level n of T ( P ; π ) x n ,
where π D ( P ) . It is immediate that F P ( x ) = F P ; 0 ( x ) . Furthermore, any succession rule of the form
v v ( 1 ) , , v ( k ) with v , v ( 1 ) , , v ( k ) D ( P ) ,
corresponds to the functional equation
F P ; v ( x ) = x + x i = 1 k F P ; v ( i ) ( x ) .
Let P = { 0012 } . By Example 1, we have
F P ; 0 ( x ) = x + x F P ; 00 ( x ) + x F P ; 01 ( x ) , F P ; 00 ( x ) = x + 2 x F P ; 00 ( x ) , F P ; 01 ( x ) = x + x F P ; 010 ( x ) + x F P ; 01 ( x ) , F P ; 010 ( x ) = x + 2 x F P ; 010 ( x ) + x F P ; 00 ( x ) .
From the solution of this linear system, we obtain the following result.
Theorem 1.
The generating function F 0012 ( x ) for the number of descent sequences of length n that avoid 0012 is given by
x ( 1 3 x + 2 x 2 + x 3 ) ( 1 x ) ( 1 2 x ) 2 .
Note that D S n ( 021 ) = D S n ( 0021 ) for all n 1 . Hence, by [5], we have the following formula.
Theorem 2.
The generating function F 0021 ( x ) for the number of descent sequences of length n that avoid 0021 is given by
( 1 x ) 2 ( 1 x ) ( 1 3 x x 2 x 3 ) 2 x ( 1 x ) .
We now apply the previously described technique to derive explicit formulas for the remaining six patterns of length 4, as presented in the next six subsections. Note that the proof of a succession rule of the form v v ( 1 ) , , v ( k ) typically involves appending a letter s j to v and verifying that if v s j avoids the given pattern, then v s j v ( j ) for all j = 1 , 2 , , s .

2.1. The Pattern 0010

Lemma 1.
The generating tree T ( { 0010 } ) is determined by the following succession rules:
0 00 , 01 , 00 00 , 001 , 001 001 , 01 a 1 , b 1 , b 1 f 1 , b 1 , a m a m , d m , e m + 1 , b m f m , b m , c m c m , d m d m , c m + 1 , e m a m , b m , f m f m , d m , c m + 1 ,
where a m = 01021 m ( m 1 ) , b m = a m 1 m m , c m = a m 1 ( m 1 ) m , d m = a m m , e m = a m 1 m , and f m = a m 1 m m ( m 1 ) .
Proof. 
Clearly, the children of 0 T ( P ) are 00 and 01. Thus, we obtain the succession rule 0 00 , 01 . The children of 00 T ( P ) are 000 and 001. Note that a descent sequence 000 π avoids P if and only if 00 π avoids P, which implies that 000 00 . Thus, we obtain the succession rule 00 00 , 001 .
The only child of 001 T ( P ) is 0010. Moreover, a descent sequence 0010 π avoids P if and only if 001 π avoids P, which implies that 0010 001 . Hence, we obtain the succession rule 001 001 .
Clearly, the children of 01 T ( P ) are a 1 = 010 and b 1 = 011 , and the children of b 1 T ( P ) are f 1 = 0110 and 0111 b 1 . Thus, we have the succession rules 01 a 1 , b 1 and b 1 f 1 , b 1 .
The children of a m = 01021 m ( m 1 ) T ( P ) are a m 0 a m , d m = 01021 m ( m 1 ) m , and e m + 1 = 01021 m ( m 1 ) ( m + 1 ) . Thus, we obtain the succession rule a m a m , d m , e m + 1 . Moreover, the children of b m = 01021 ( m 1 ) ( m 2 ) m m T ( P ) are f m = b m ( m 1 ) and b m m b m . Thus, we obtain the succession rule b m f m , b m .
Similarly, we have c m c m , d m d m , c m + 1 , e m a m , b m , and f m f m , d m , c m + 1 . □
Lemma 2.
We have
F { 0010 ; 0 } ( x ) = x + x F { 0010 ; 00 } ( x ) + x F { 0010 ; 01 } ( x ) , F { 0010 ; 00 } ( x ) = x + x F { 0010 ; 00 } ( x ) + x F { 0010 ; 001 } ( x ) , F { 0010 ; 001 } ( x ) = x + x F { 0010 ; 001 } ( x ) , F { 0010 ; 01 } ( x ) = x + x A ( 0 ) + x B ( 0 ) , B ( 0 ) = x + x F ( 0 ) + x B ( 0 ) ,
where A ( v ) , B ( v ) and F ( v ) satisfies the following system of equations:
A ( v ) = x 1 v + x A ( v ) + x D ( v ) + x v ( E ( v ) E ( 0 ) ) , B ( v ) = x 1 v + x F ( v ) + x B ( v ) , C ( v ) = x 1 v + x C ( v ) , D ( v ) = x 1 v + x D ( v ) + x v ( C ( v ) C ( 0 ) ) , E ( v ) = x 1 v + x A ( v ) + x B ( v ) , F ( v ) = x 1 v + x F ( v ) + x D ( v ) + x v ( C ( v ) C ( 0 ) )
with K ( v ) = m 1 F { 0010 } ; k m ( x ) v m 1 , for all K { A , B , C , D , E , F } .
Proof. 
By translating the first five succession rules in Lemma 1 into equations, we obtain (1).
Translating the succession rule a m a m , d m , e m + 1 into an equation in terms of F P ; π ( x ) yields
F P ; a m ( x ) = x + x F P ; a m ( x ) + x F P ; d m ( x ) + x F P ; e m + 1 ( x ) .
Multiplying both sides by v m 1 and summing over m 1 , we obtain
m 1 F P ; a m ( x ) v m 1 = m 1 x v m 1 + x m 1 F P ; a m ( x ) v m 1 + x m 1 F P ; d m ( x ) v m 1 + x m 1 F P ; e m + 1 ( x ) v m 1 .
Therefore,
A ( v ) = x 1 v + x A ( v ) + x D ( v ) + x v ( E ( v ) E ( 0 ) ) .
Similarly, the remaining equations can be derived from the corresponding succession rules. □
By solving (2) for B ( v ) , C ( v ) , D ( v ) , F ( v ) , we obtain
B ( v ) = ( 1 2 x + 3 x 2 x 3 ) x ( 1 x ) 4 ( 1 v ) , C ( v ) = x ( 1 x ) ( 1 v ) , D ( v ) = x ( 1 x ) 2 ( 1 v ) , F ( v ) = x ( 1 x ) 3 ( 1 v ) .
By these expressions, (2) reduces to
( 1 x x 2 v ) A ( v ) = x 2 v A ( 0 ) + ( ( 1 x ) 2 + x 3 ) x ( 1 x ) 4 ( 1 v ) .
This class of functional equations can be solved systematically via the kernel method; see Banderier et al. [13] for details. The equation is first rearranged so that the unknown generating function is multiplied by a polynomial kernel in x and v. The choice v = x 2 1 x is made so that this kernel vanishes, thereby eliminating the unknown term and allowing us to solve for A ( 0 ) explicitly. In this case, we obtain
A ( 0 ) = ( ( 1 x ) 2 + x 3 ) x ( 1 x x 2 ) ( 1 x ) 4 .
Hence, by using the expression of A ( 0 ) , we have
A ( v ) = ( ( 1 x ) 2 + x 3 ) x ( 1 x x 2 ) ( 1 x ) 4 ( 1 v ) , E ( v ) = ( 1 2 x + 2 x 2 + x 3 x 4 ) x ( 1 x x 2 ) ( 1 x ) 3 ( 1 v ) ,
By using the expressions for A ( v ) , B ( v ) , and F ( v ) , we obtain explicit formulas for A ( 0 ) , B ( 0 ) , and F ( 0 ) . Hence, by solving (1) for F 0010 ; 0 ( x ) , we obtain the following result.
Theorem 3.
The generating function F 0010 ( x ) for the number of descent sequences of length n that avoid 0010 is given by
( x 3 + x 2 2 x + 1 ) x ( 1 x x 2 ) ( 1 x ) 3 .

2.2. The Pattern 0011

As in the proof of Lemma 1, one can show that the generating tree T ( 0011 ) is determined by the following succession rules:
0 00 , 01 , 00 00 , 001 , 001 0010 , 0010 0010 , 00102 , 00102 001020 , 001020 001020 , j 3 , 01 010 , 01 , 010 010 , 0101 , 0102 , 0101 01010 , 00102 , 01010 01010 , b 2 , 010103 , 010103 f 2 , a 3 , 0102 01010 , b 2 , a m e m , i m + 1 ( m 3 ) , b m f m , j m + 1 ( m 2 ) , c m f m 1 , a m ( m 3 ) , d m e m 1 , b m + 1 ( m 3 ) , e m e m , b m + 1 , c m + 1 ( m 2 ) , f m f m , a m + 1 , d m + 1 , ( m 2 ) , g m g m , j m + 1 ( m 4 ) , h m h m , i m + 1 ( m 3 ) , i m g m ( m 4 ) , j m h m , ( m 3 ) ,
where a m = 01010320540 ( m 2 ) ( m 3 ) 0 m ( m 1 ) , b m = 010210430 ( m 2 ) ( m 3 ) 0 m ( m 1 ) , c m = a m 2 0 m , d m = b m 2 0 m , e m = a m 0 , f m = b m 0 , g m = a m 1 m 0 , h m = b m 1 m 0 , i m = a m 1 m , and j m = b m 1 m .
Define K ( v ) = m 3 F { 0011 } ; k m ( x ) v m 2 for K { B , E , F } , K ( v ) = m 3 F { 0011 } ; k m ( x ) v m 3 for K { A , C , D , H , J } , and K ( v ) = m 3 F { 0011 } ; k m ( x ) v m 4 for K { G , I } . Similar to the arguments in the proof of Lemma 2, we can translate these succession rules into the following equations:
F { 0011 } ; 0 ( x ) = x + x F { 0011 } ; 00 ( x ) + x F { 0011 } ; 01 ( x ) , F { 0011 } ; 00 ( x ) = x + x F { 0011 } ; 00 ( x ) + x F { 0011 } ; 001 ( x ) , F { 0011 } ; 001 ( x ) = x + x F { 0011 } ; 0010 ( x ) , F { 0011 } ; 0010 ( x ) = x + x F { 0011 } ; 0010 ( x ) + x F { 0011 } ; 00102 ( x ) , F { 0011 } ; 00102 ( x ) = x + x F { 0011 } ; 001020 ( x ) , F { 0011 } ; 001020 ( x ) = x + x F { 0011 } ; 001020 ( x ) + x F { 0011 } ; j 3 ( x ) , F { 0011 } ; 01 ( x ) = x + x F { 0011 } ; 010 ( x ) + x F { 0011 } ; 01 ( x ) , F { 0011 } ; 010 ( x ) = x + x F { 0011 } ; 010 ( x ) + x F { 0011 } ; 0101 ( x ) + x F { 0011 } ; 0102 ( x ) , F { 0011 } ; 0101 ( x ) = x + x F { 0011 } ; 01010 ( x ) + x F { 0011 } ; 00102 ( x ) , F { 0011 } ; 01010 ( x ) = x + x F { 0011 } ; 01010 ( x ) + x F { 0011 } ; b 2 ( x ) + x F { 0011 } ; 010103 ( x ) , F { 0011 } ; 010103 ( x ) = x + x F { 0011 } ; f 2 ( x ) + x F { 0011 } ; a 3 ( x ) , F { 0011 } ; 0102 ( x ) = x + x F { 0011 } ; 01010 ( x ) + x F { 0011 } ; b 2 ( x ) ,
and
F { 0011 } ; a m ( x ) = x + x F { 0011 } ; e m ( x ) + x F { 0011 } ; i m + 1 ( x ) , ( m 3 ) , F { 0011 } ; b m ( x ) = x + x F ( v ) + x v ( J ( v ) J ( 0 ) ) , F { 0011 } ; c m ( x ) = x + x F { 0011 } ; f m 1 ( x ) + x F { 0011 } ; a m ( x ) , ( m 3 ) , F { 0011 } ; d m ( x ) = x + x F { 0011 } ; e m 1 ( x ) + x F { 0011 } ; b m + 1 ( x ) , ( m 3 ) , F { 0011 } ; e m ( x ) = x + x F { 0011 } ; e m ( x ) + x F { 0011 } ; b m + 1 ( x ) + x F { 0011 } ; c m + 1 ( x ) , ( m 2 ) , F { 0011 } ; f m ( x ) = x + x F { 0011 } ; f m ( x ) + x F { 0011 } ; a m + 1 ( x ) + x F { 0011 } ; d m + 1 ( x ) , ( m 2 ) , F { 0011 } ; g m ( x ) = x + x F { 0011 } ; g m ( x ) + x F { 0011 } ; j m + 1 ( x ) , ( m 4 ) , F { 0011 } ; h m ( x ) = x + x F { 0011 } ; h m ( x ) + x F { 0011 } ; i m + 1 ( x ) , ( m 3 ) , F { 0011 } ; i m ( x ) = x + x F { 0011 } ; g m ( x ) , ( m 4 ) , F { 0011 } ; j m ( x ) = x + x F { 0011 } ; h m ( x ) , ( m 3 ) .
By multiplying each equation in (4) by v m s (where s 2 , 3 , 4 corresponds to the definitions of the generating functions A ( v ) , B ( v ) , , J ( v ) ), we obtain
A ( v ) = x 1 v + x E ( v ) + x v ( I ( v ) I ( 0 ) ) , B ( v ) = x 1 v + x F ( v ) + x v ( J ( v ) J ( 0 ) ) , C ( v ) = x 1 v + x F ( v ) + x A ( v ) , D ( v ) = x 1 v + x E ( v ) + x v ( B ( v ) B ( 0 ) ) , E ( v ) = x 1 v + x E ( v ) + x v ( B ( v ) B ( 0 ) ) + x v ( C ( v ) C ( 0 ) ) , F ( v ) = x 1 v + x F ( v ) + x v ( A ( v ) A ( 0 ) ) + x v ( D ( v ) D ( 0 ) ) , G ( v ) = x 1 v + x G ( v ) + x v ( J ( v ) J ( 0 ) ) , H ( v ) = x 1 v + x H ( v ) + x v ( I ( v ) I ( 0 ) ) , I ( v ) = x 1 v + x G ( v ) , J ( v ) = x 1 v + x H ( v ) .
By solving (5) throughout the algorithm in [14], we obtain
A ( v ) = B ( v ) = ( 1 + x ) x ( 1 x 2 x 2 x 3 ) ( 1 v ) , C ( v ) = D ( v ) = ( 1 x 2 x 3 ) x ( 1 x x 2 ) ( 1 x 2 x 2 x 3 ) ( 1 v ) , E ( v ) = F ( v ) = ( 1 + x ) ( 1 x 2 x 3 ) x ( 1 x x 2 ) ( 1 x 2 x 2 x 3 ) ( 1 v ) , G ( v ) = H ( v ) = ( 1 + x ) x ( 1 x x 2 ) ( 1 v ) , I ( v ) = J ( v ) = x ( 1 x x 2 ) ( 1 v ) .
Thus, by (3), we have
F { 0011 } ; 0 ( x ) = ( 1 x 2 x 3 ) x ( 1 x ) ( 1 x 2 x 2 x 3 ) , F { 0011 } ; 00 ( x ) = F { 0011 } ; 001020 ( x ) = F { 0011 } ; 0010 ( x ) = ( 1 + x ) x 1 x x 2 , F { 0011 } ; 01 ( x ) = ( 1 x x 2 + x 3 + x 4 ) x ( 1 x ) ( 1 x x 2 ) ( 1 x 2 x 2 x 3 ) , F { 0011 } ; 001 ( x ) = F { 0011 } ; 00102 ( x ) = x 1 x x 2 , F { 0011 } ; 010 ( x ) = F { 0011 } ; 01010 ( x ) = ( 1 + x ) ( 1 x 2 x 3 ) x ( 1 x x 2 ) ( 1 x 2 x 2 x 3 ) , F { 0011 } ; 0101 ( x ) = ( 1 + x ) x 1 x 2 x 2 x 3 , F { 0011 } ; 0102 ( x ) = F { 0011 } ; 010103 ( x ) = ( 1 x 2 x 3 ) x ( 1 x x 2 ) ( 1 x 2 x 2 x 3 ) .
Therefore, we can present the following result.
Theorem 4.
The generating function F 0011 ( x ) for the number of descent sequences of length n that avoid 0011 is given by
( 1 x 2 x 3 ) x ( 1 x ) ( 1 x 2 x 2 x 3 ) .

2.3. The Pattern 0110

As in the proof of Lemma 1, one can show that the generating tree T ( { 0110 } ) is determined by the following succession rules
0 0 , 01 , 01 d 1 , 0 , d 1 , 1 , a m a m , b m + 1 , ( m 1 ) , b m d m , m 1 , d m , m , ( m 2 ) , c m , j d m , j , d m , j + 1 , , d m , m , ( 0 j m 2 ) , d m , m d m , m , ( m 1 ) , d m , j d m , j , d m , j + 1 , , d m , m 1 , a m , c m + 1 , j , ( 0 j m 1 ) ,
where a m = 0102 0 m 0 m , b m = a m 1 m , c m , j = 0102 0 ( m 1 ) j m , and d m , j = 0102 0 m j . Note that by translating these succession rules into equations, we obtain
F P ; 0 ( x ) = x + x F P ; 0 ( x ) + x F P ; 01 ( x ) , F P ; 01 ( x ) = x + x F P ; d 1 , 0 ( x ) + x F P ; d 1 , 1 ( x ) , F P ; a m ( x ) = x + x F P ; a m ( x ) + x F P ; b m + 1 ( x ) , ( m 1 ) , F P ; b m ( x ) = x + x F P ; d m , m 1 ( x ) + x F P ; d m , m ( x ) , ( m 2 ) , F P ; c m , j ( x ) = x + x i = j m F P ; d m , i ( x ) , ( 0 j m 2 ) , F P ; d m , m ( x ) = x + x F P ; d m , m ( x ) , ( m 1 ) , F P ; d m , j ( x ) = x + x i = j m 1 F P ; d m , j ( x ) + x F P ; a m ( x ) + x F P ; c m + 1 , j ( x ) , ( 0 j m 1 ) .
To solve this system of recurrence relations, we define
A ( v ) = m 1 F { 0110 } ; a m ( x ) v m 1 , B ( v ) = m 2 F { 0110 } ; b m ( x ) v m 2 , C ( u , v ) = m 2 j = 0 m 2 F { 0110 } ; c m , j ( x ) v m 2 u m 2 j , D ( u , v ) = m 2 j = 0 m 2 F { 0110 } ; d m , j ( x ) v m 1 u m 1 j .
Then, the above succession rules can be written as
A ( v ) = x 1 v + x A ( v ) + x B ( v ) , B ( v ) = x ( 1 x ) ( 1 v ) + x D ( 0 , v ) , C ( u , v ) = x ( 1 v ) ( 1 u v ) + x u v ( 1 u ) ( D ( u , v ) u D ( 1 , u v ) D ( 0 , v ) + u D ( 0 , u v ) ) + x v ( 1 u ) ( D ( 0 , v ) D ( 0 , u v ) ) + x 2 ( 1 x ) ( 1 u ) ( 1 / ( 1 v ) u / ( 1 u v ) ) , D ( u , v ) = x ( 1 v ) ( 1 u v ) + x 1 u ( D ( u , v ) u D ( 1 , u v ) ) + x 1 u ( A ( v ) u A ( u v ) ) + x C ( u , v ) .
To solve this system, we guessed that
D ( 0 , v ) = ( 1 x ) M ( x ) 1 x ( 1 x ) ( 1 v ) ,
based on the initial coefficients of x n in the generating function D ( 0 , v ) , where
M ( x ) = 1 x 1 2 x 3 x 2 2 x 2
is the generating function for the Motzkin numbers (see Sequence A001006 in [15]). We now proceed to solve the system under this assumption. From the system, we have that
A ( v ) = 1 x 1 2 x 3 x 2 2 x ( 1 x ) ( 1 v ) , B ( v ) = 1 x 2 x 2 1 2 x 3 x 2 2 x 2 ( 1 v ) .
Thus, by finding C ( u , v ) from the equation of C ( u , v ) , and substituting it into the equation of D ( u , v ) , we obtain
u v + v x + x 2 v v ( 1 u ) D ( u , v / u ) = x ( v + x ) u v ( 1 u ) D ( 1 , v ) + ( x + v 1 ) 1 2 x 3 x 2 + v x v x 2 2 x + 1 2 x ( 1 x ) v ( 1 v / u ) ( 1 v ) .
This class of functional equations can be solved systematically via the kernel method; see Banderier et al. [13] for details. The equation is first rearranged so that the unknown generating function is multiplied by a polynomial kernel in x, v, and u. The choice u = ( v x + x 2 v ) / v is made so that this kernel vanishes, thereby eliminating the unknown term and allowing us to solve for D ( 1 , v ) explicitly. In this case, we obtain
D ( 1 , v ) = ( x + v 1 ) 1 2 x 3 x 2 + v x v x 2 2 x + 1 2 x ( 1 x ) ( v 2 + v x + x 2 v ) ( 1 v ) .
Using this expression with (6), we obtain
D ( u , v ) = ( x + u v 1 ) 1 2 x 3 x 2 + u v x u v x 2 2 x + 1 2 x ( 1 x ) ( u 2 v 2 + u v x + x 2 u v ) ( 1 v ) , C ( u , v ) = ( ( x 1 ) u 2 v 2 + ( x 2 ) ( x 1 ) u v + x 3 x 2 + 2 x 1 ) 1 2 x 3 x 2 2 x 2 ( 1 x ) ( u 2 v 2 + u v x + x 2 u v ) ( 1 v ) ( 1 u v ) + ( 1 x 2 ) ( 1 2 x ) u 2 v 2 + ( 2 x 4 3 x 3 + 5 x 2 ) u v + 2 x 5 x 4 + x 2 3 x + 1 2 x 2 ( 1 x ) ( u 2 v 2 + u v x + x 2 u v ) ( 1 v ) ( 1 u v ) .
Note that the expressions A ( v ) , B ( v ) , C ( u , v ) , and D ( u , v ) (without any assumptions) satisfy the system, and therefore constitute its solution. Hence, from the first two succession rules, we observe
F P ( x ) = x 1 x + x 1 x ( x + x D ( 0 , 0 ) + x 2 1 x ) ,
which leads to the following result.
Theorem 5.
The generating function F 0110 ( x ) for the number of descent sequences of length n that avoid 0110 is given by
1 x 1 2 x 3 x 2 2 x ( 1 x ) .

2.4. The Pattern 0112

As in the proof of Lemma 1, one can show that the generating tree T ( { 0112 } ) is determined by the following succession rules
0 0 , a 1 , a m c m , b 1 , b 2 , , b m , ( m 1 ) , b m b m , b 1 , b 2 , , b m , ( m 1 ) , c m c m , b 1 , b 2 , , b m , a m + 1 , ( m 1 ) ,
where a m = 0102 0 m , b m = a m m , and c m = a m 0 . As before, we can translate these rules to equations:
F { 0112 } ; 0 ( x ) = x + x F { 0112 } ; 0 ( x ) + x A ( 0 ) , A ( v ) = x 1 v + x C ( v ) + x 1 v B ( v ) , B ( v ) = x 1 v + x B ( v ) + x 1 v B ( v ) , C ( v ) = x 1 v + x C ( v ) + x 1 v B ( v ) + x v ( A ( v ) A ( 0 ) ) .
where K ( v ) = m 1 F P ; k m ( x ) v m 1 for K { A , B , C } . Thus,
F { 0112 } ; 0 ( x ) = x 1 x ( 1 + A ( 0 ) ) , ( 1 x 2 v ( 1 x ) ) A ( v ) = x 2 v ( 1 x ) A ( 0 ) + x 1 2 x v + v x .
This class of functional equations can be solved systematically via the kernel method; see Banderier et al. [13] for details. The equation is first rearranged so that the unknown generating function is multiplied by a polynomial kernel in x and v. The choice v = x 2 / ( 1 x ) is made so that this kernel vanishes, thereby eliminating the unknown term and allowing us to solve for A ( 0 ) explicitly. In this case, we obtain A ( 0 ) = x 1 2 x x 2 . Hence, by the first equation, we obtain the following result.
Theorem 6.
The generating function F 0112 ( x ) for the number of descent sequences of length n that avoid 0112 is given by
( 1 x x 2 ) x ( 1 x ) ( 1 2 x x 2 ) .

2.5. The Pattern 0123

We start with the following result. For the proof, see Appendix A.
Lemma 3.
The generating tree T ( { 0123 } ) is determined by the following succession rules
0 0 , a 1 , a m b m , a m , c m , 2 , c m , 3 , , c m , m , m 1 , b m b m , a m + 1 , f m , 2 , f m , 3 , , f m , m + 1 , m 1 , c m , j d m , j , e m , j , c m + 1 , 2 , c m + 1 , 3 , , c m + 1 , j 1 , c m , j , 2 j m , d m , j d m , j , e m , j , c m , 2 , c m , 3 , , c m , j 1 , c m + 1 , j , 2 j m , e m , j d m + 1 , j , e m , j , c m , 2 , c m , 3 , , c m , j 1 , c m + 1 , j , 2 j m , f m , j g m , j , h m , j , f m + 1 , 2 , f m + 1 , 3 , , f m + 1 , j 1 , f m , j , 2 j m + 1 , g m , j g m , j , h m , j , f m , 2 , f m , 3 , , f m , j 1 , f m + 1 , j , 2 j m + 1 , h m , j g m + 1 , j , h m , j , f m , 2 , f m , 3 , , f m , j 1 , f m + 1 , j , 2 j m + 1 .
where a m = ( 01 ) m , b m = a m 0 , c m , j = a m j , d m , j = c m , j 0 , e m , j = c m , j 1 , f m , j = a m 0 j , g m , j = f m , j 0 , and h m , j = f m , j 1 .
Now, we define the following eight generating functions:
K ( v ) = m 1 F ( P ; k m ) ( x ) v m 1 , K { A , B } , K ( v , u ) = m 2 j = 2 m F ( P ; k m , j ) ( x ) v m 2 u m j , K { C , D , E } , K ( v , u ) = m 1 j = 1 m + 1 F ( P ; k m , j ) ( x ) v m 1 u m + 1 j , K { F , G , H } .
Then, the above succession rules can be written as
F P ( x ) = x + x F P ( x ) + x A ( 0 ) , A ( v ) = x 1 v + x B ( v ) + x A ( v ) + v x C ( v , 1 ) , B ( v ) = x 1 v + x B ( v ) + x v ( A ( v ) A ( 0 ) ) + x F ( v , 1 ) , C ( v , u ) = x ( 1 v ) ( 1 v u ) + x D ( v , u ) + x E ( v , u ) + x u v ( 1 u ) ( u C ( v , 1 ) C ( v , u ) + ( 1 u ) C ( v , 0 ) ) + x C ( v , u ) , D ( v , u ) = x ( 1 v ) ( 1 v u ) + x D ( v , u ) + x E ( v , u ) + x 1 u ( C ( v , 1 ) C ( v , u ) ) + x u v ( C ( v , u ) C ( v , 0 ) ) , E ( v , u ) = x ( 1 v ) ( 1 v u ) + x u v ( D ( v , u ) D ( v , 0 ) ) + x E ( v , u ) + x 1 u ( C ( v , 1 ) C ( v , u ) ) + x u v ( C ( v , u ) C ( v , 0 ) ) , F ( v , u ) = x ( 1 v ) ( 1 v u ) + x G ( v , u ) + x H ( v , u ) + x u v ( 1 u ) ( u F ( v , 1 ) F ( v , u ) + ( 1 u ) F ( v , 0 ) ) + x F ( v , u ) , G ( v , u ) = x ( 1 v ) ( 1 v u ) + x G ( v , u ) + x H ( v , u ) + x 1 u ( F ( v , 1 ) F ( v , u ) ) + x u v ( F ( v , u ) F ( v , 0 ) ) , H ( v , u ) = x ( 1 v ) ( 1 v u ) + x u v ( G ( v , u ) G ( v , 0 ) ) + x H ( v , u ) + x 1 u ( F ( v , 1 ) F ( v , u ) ) + x u v ( F ( v , u ) F ( v , 0 ) ) .
Theorem 7.
We have
A ( v ) = x ( x 2 3 x + 1 ) ( 3 x 1 ) ( x 3 6 x 2 + 5 x 1 ) ( 2 v x v 3 x + 1 ) , B ( v ) = x ( 3 x 1 ) ( 2 x 1 ) ( x 3 6 x 2 + 5 x 1 ) ( 2 v x v 3 x + 1 ) , C ( v , u ) = v x ( u v 1 ) ( 2 v x v 3 x + 1 ) ,
and C ( v , u ) = D ( v , u ) = E ( v , u ) = F ( v , u ) = G ( v , u ) = H ( v , u ) .
Proof. 
Since the expressions of the generating functions A ( v ) , B ( v ) , C ( v , u ) , D ( v , u ) , E ( v , u ) , F ( v , u ) , G ( v , u ) , and H ( v , u ) satisfy the system of equations, the proof is complete. □
Hence, the above theorem gives A ( 0 ) = x ( x 2 3 x + 1 ) 1 5 x + 6 x 2 x 3 . Thus, by the fact that F P ( x ) = x + x F P ( x ) + x A ( 0 ) , we obtain the following result.
Theorem 8.
The generating function F 0123 ( x ) for the number of descent sequences of length n that avoid 0123 is given by
x ( 1 3 x ) 1 5 x + 6 x 2 x 3 .

2.6. The Pattern 0132

As in the proof of Lemma 1, one can show that the generating tree T ( { 0132 } ) is determined by the following succession rules:
0 0 , a 1 , a m b m , a m , c m , c m 1 , , c 2 , b m b m , a m + 1 , c m + 1 , c m , , c 2 , c m b m , a m + 1 , c m , c m 1 , , c 2 ,
where a m = ( 01 ) m , b m = a m 0 , and c m = a m 2 .
Define K ( v ) = m 1 F P ; k m ( x ) v m 1 with K { A , B } and C ( v ) = m 2 F P ; c m ( x ) v m 2 . Then, the above succession rules lead to the following equations
F P ( x ) = x + x F P ( x ) + x A ( 0 ) , A ( v ) = x 1 v + x B ( v ) + x A ( v ) + v x 1 v C ( v ) , B ( v ) = x 1 v + x B ( v ) + x v ( A ( v ) A ( 0 ) ) + x 1 v C ( v ) , C ( v ) = x 1 v + x v ( B ( v ) B ( 0 ) ) + x v 2 ( A ( v ) A ( 0 ) v d d v A ( v ) v = 0 ) + x 1 v C ( v ) .
Solving the last two equations for B ( v ) and C ( v ) , and then substituting their expressions into the equation of A ( v ) , we obtain
( ( 1 x ) 2 ) v 3 + ( x 3 4 x 2 + 3 x 1 ) v 2 + x 2 ( 3 2 x ) v + x 3 ) A ( v ) = x 2 ( v 2 + v x 2 v x ) A ( 0 ) + v x 2 ( v x v x ) B ( 0 ) + d d v A ( v ) v = 0 + v x ( v x 2 v x x 2 + v ) .
Let v 1 , v 2 , v 3 be the roots of the kernel equation ( 1 x ) 2 ) v 3 + ( x 3 4 x 2 + 3 x 1 ) v 2 + x 2 ( 3 2 x ) v + x 3 = 0 . Note that
v 1 = 1 x 2 x 2 6 x 3 19 x 4 66 x 5 + , v 2 = x x + 3 2 x 2 21 8 x 2 x + 4 x 3 839 128 x 3 x + 11 x 4 19757 1024 x 4 x + 35 x 5 + , v 3 = x x + 3 2 x 2 + 21 8 x 2 x + 4 x 3 + 839 128 x 3 x + 11 x 4 19757 1024 x 4 x + 35 x 5 + .
Thus, by substituting v = v 1 and v = v 2 within the equation, which are chosen so as to annihilate the kernel, and solving for A ( 0 ) and B ( 0 ) + d d v A ( v ) v = 0 , we obtain
A ( 0 ) = v 2 v 3 ( x 2 2 x + 2 ) v 2 v 3 + x ( 1 x ) ( v 2 + v 3 ) + x 2 .
By the definitions we have that v 1 v 2 v 3 = x 2 / ( 1 x ) 2 and v 1 + v 2 + v 3 = 1 x + x 2 / ( 1 x ) 2 . Thus,
A ( 0 ) = x 2 x 2 ( x 2 2 x + 2 ) + ( 1 x ) ( x 3 3 x 2 + 2 x 1 ) v 1 + ( 1 x ) 3 v 1 2 .
Hence, by F P ( x ) = x + x F P ( x ) + x A ( 0 ) , we obtain,
F P ( x ) = x 1 x 1 + x 2 x 2 ( x 2 2 x + 2 ) + ( 1 x ) ( x 3 3 x 2 + 2 x 1 ) v 1 + ( 1 x ) 3 v 1 2 .
By expressing v 1 in terms of F P ( x ) , then substituting this expression into the kernel equation ( 1 x ) 2 ) v 3 + ( x 3 4 x 2 + 3 x 1 ) v 2 + x 2 ( 3 2 x ) v + x 3 = 0 , we have the following result.
Theorem 9.
The generating function f = F 0132 ( x ) for the number of descent sequences of length n that avoid 0132 satisfies
x 3 + x 2 ( x 2 3 x + 3 ) f + x ( 2 x 3 5 x 2 + 7 x 3 ) f 2 + ( 1 x ) 4 f 3 = 0 .
Moreover,
F { 0132 } ( x ) = x 3 7 x + 5 x 2 2 x 3 2 x A · cos 1 3 arccos x B 2 A A + π 3 3 ( 1 x ) 4 ,
where A = x 5 + x 4 10 x 3 + 20 x 2 14 x + 3 and B = 2 x 7 24 x 6 + 72 x 5 107 x 4 + 90 x 3 60 x 2 + 34 x 9 .

2.7. The Pattern 0001

We start with the following result. For the proof, see Appendix B.
Lemma 4.
The generating tree T ( { 0001 } ) is determined by the following succession rules
0 00 , 01 , 00 000 , 00 , 000 000 , 01 a 1 , d 1 , a 2 m + 1 f m + 1 , 0 , g m + 2 , 1 , , f 2 m , 2 m 2 , g 2 m + 1 , 2 m 1 , b 2 m + 1 , 2 m , f 2 m + 1 , 2 m + 1 , b 2 m + 1 , 2 m + 2 , ( m 0 ) , a 2 m g m + 1 , 0 , f m + 1 , 1 , , g 2 m 1 , 2 m 4 , f 2 m 1 , 2 m 3 , g 2 m , 2 m 2 , b 2 m , 2 m 1 , f 2 m , 2 m , b 2 m , 2 m + 1 , ( m 1 ) , b 2 m + 1 , 2 m f m + 1 , 0 , g m + 2 , 1 , , f 2 m , 2 m 2 , g 2 m + 1 , 2 m 1 , b 2 m + 1 , 2 m , ( m 0 ) , b 2 m + 1 , 2 m + 2 f m + 1 , 0 , g m + 2 , 1 , , f 2 m , 2 m 2 , g 2 m + 1 , 2 m 1 , f 2 m + 1 , 2 m , a 2 m + 2 , d 2 m + 2 , ( m 0 ) , b 2 m , 2 m 1 g m + 1 , 0 , f m + 1 , 1 , , g 2 m 1 , 2 m 4 , f 2 m 1 , 2 m 3 , g 2 m , 2 m 2 , b 2 m , 2 m 1 , ( m 1 ) , b 2 m , 2 m + 1 g m + 1 , 0 , f m + 1 , 1 , , g 2 m , 2 m 2 , f 2 m , 2 m 1 , a 2 m + 1 , d 2 m + 1 , , ( m 1 ) , c 2 m + 1 g m + 1 , 0 , f m + 1 , 1 , , g 2 m , 2 m 2 , f 2 m , 2 m 1 , e 2 m + 1 , c 2 m + 1 , ( m 0 ) , c 2 m f m , 0 , g m + 1 , 1 , , f 2 m 2 , 2 m 4 , g 2 m 1 , 2 m 3 , f 2 m 1 , 2 m 2 , e 2 m , c 2 m , ( m 1 ) , d 2 m + 1 g m + 1 , 0 , f m + 1 , 1 , , g 2 m , 2 m 2 , f 2 m , 2 m 1 , f 2 m + 1 , 2 m + 1 , c 2 m + 1 , ( m 0 ) , d 2 m f m , 0 , g m + 1 , 1 , , f 2 m 2 , 2 m 4 , g 2 m 1 , 2 m 3 , f 2 m , 2 m , c 2 m , ( m 1 ) , e 2 m + 1 f m + 1 , 0 , g m + 2 , 1 , , f 2 m , 2 m 2 , g 2 m + 1 , 2 m 1 , f 2 m + 1 , 2 m , e 2 m + 1 , ( m 0 ) , e 2 m g m + 1 , 0 , f m + 1 , 1 , , g 2 m , 2 m 2 , f 2 m , 2 m 1 , e 2 m , ( m 1 ) , f 2 m + 1 , 2 m + 1 f m + 1 , 0 , g m + 2 , 1 , , f 2 m , 2 m 2 , g 2 m + 1 , 2 m 1 , f 2 m + 1 , 2 m , e 2 m + 1 , f 2 m + 1 , 2 m + 1 , ( m 0 ) , f 2 m , 2 m g m + 1 , 0 , f m + 1 , 1 , , g 2 m , 2 m 2 , f 2 m , 2 m 1 , e 2 m , f 2 m , 2 m , ( m 1 ) , f 2 m + 1 , 2 j + 1 f 2 m + 1 j , 0 , g 2 m + 1 j , 1 , , f 2 m , 2 j 2 , g 2 m , 2 j 1 , f 2 m + 1 , 2 j , f 2 m + 1 , 2 j + 1 , ( 0 j m 1 ) , f 2 m + 1 , 2 j g 2 m + 2 j , 0 , f 2 m + 2 j , 1 , , g 2 m + 1 , 2 j 2 , f 2 m + 1 , 2 j 1 , f 2 m + 1 , 2 j , ( 0 j m ) , f 2 m , 2 j + 1 f 2 m j , 0 , g 2 m + 1 j , 1 , , f 2 m 1 , 2 j 1 , g 2 m , 2 j 1 , f 2 m , 2 j , f 2 m , 2 j + 1 , ( 0 j m 1 ) , f 2 m , 2 j g 2 m + 1 j , 0 , f 2 m + 1 j , 1 , , g 2 m , 2 j 2 , f 2 m , 2 j 1 , f 2 m , 2 j , ( 0 j m 1 ) , g 2 m + 1 , 2 j + 1 g 2 m + 1 j , 0 , f 2 m + 1 j , 1 , , g 2 m , 2 j 2 , f 2 m , 2 j 1 , g 2 m + 1 , 2 j , g 2 m + 1 , 2 j + 1 , ( 0 j m 1 ) , g 2 m + 1 , 2 j f 2 m + 1 j , 0 , g 2 m + 2 j , 1 , , f 2 m , 2 j 2 , g 2 m + 1 , 2 j 1 , g 2 m + 1 , 2 j , ( 0 j m ) , g 2 m , 2 j + 1 g 2 m j , 0 , f 2 m j , 1 , , g 2 m 1 , 2 j 2 , f 2 m 1 , 2 j 1 , g 2 m , 2 j , g 2 m , 2 j + 1 , ( 0 j m 1 ) , g 2 m , 2 j f 2 m j , 0 , g 2 m + 1 j , 1 , , f 2 m 1 , 2 j 2 , g 2 m , 2 j 1 , g 2 m , 2 j , ( 0 j m 1 ) ,
where a m = 01021 m ( m 1 ) , b m , j = a m j , c m = a m 1 m m m , d m = a m 1 m m , e m = a m m m , f m , j = a m m ( m 1 ) j , and g m , j = a m ( m 2 ) ( m 3 ) j .
Then, we translate these succession rules to equations, and solving the system (leaving to the interested reader), we obtain
F { 0001 } ; 0 ( x ) = x ( 1 x + x 3 + x 4 ) ( 1 x x 2 ) ( 1 x ) 2 , F { 0001 } ; 00 ( x ) = x ( 1 x ) 2 , F { 0001 } ; 000 ( x ) = x 1 x , F { 0001 } ; 01 ( x ) = x ( 1 x + x 2 + 2 x 3 ) ( 1 x x 2 ) ( 1 x ) 2 , F { 0001 } ; a m ( x ) = x ( 1 x + x 3 + x 4 ) ( 1 x x 2 ) ( 1 x ) m + 2 , F { 0001 } ; c m ( x ) = x ( 1 x + x 2 ) ( 1 x ) m + 2 , F { 0001 } ; d m ( x ) = x ( 1 x + 2 x 2 ) ( 1 x ) m + 2 , F { 0001 } ; e m ( x ) = x ( 1 x ) m + 1 , F { 0001 } ; b m , m 1 ( x ) = x ( 1 x ) m , F { 0001 } ; b m , m + 1 ( x ) = x ( 1 x + x 2 + 2 x 3 ) ( 1 x x 2 ) ( 1 x ) m + 2 , F { 0001 } ; f m , j ( x ) = x ( 1 x ) j + 1 + δ ( m = j ) , F { 0001 } ; g m , j ( x ) = x ( 1 x ) j + 1 .
Let us give an example explaining how to confirm these formulas. For example, the rule 01 a 1 , d 1 is equivalent to
F { 0001 } ; 01 ( x ) = x + x F { 0001 } ; a 1 ( x ) + x F { 0001 } ; d 1 ( x ) .
Thus, we need to show
x ( 1 x + x 2 + 2 x 3 ) ( 1 x x 2 ) ( 1 x ) 2 = x + x 2 ( 1 x + x 3 + x 4 ) ( 1 x x 2 ) ( 1 x ) 3 + x 2 ( 1 x + 2 x 2 ) ( 1 x ) 3 ,
which it is true.
Therefore, we can present the following formula.
Theorem 10.
The generating function F 0001 ( x ) for the number of descent sequences of length n that avoid 0001 is given by
x ( 1 x + x 3 + x 4 ) ( 1 x x 2 ) ( 1 x ) 2 .

3. Conclusions

In this paper, we studied pattern avoidance in descent sequences of D n for several patterns of length four. Using the framework of generating trees, we developed a systematic approach based on labelled trees and succession rules. For each pattern, we derived a system of recurrence relations and solved it to obtain explicit formulas for the corresponding generating functions F τ ( x ) . Our results show that the generating tree method provides a unified and effective strategy for analyzing different pattern-avoidance classes. In particular, despite the diversity of the patterns considered, each case can be reduced to a manageable system of functional equations that leads to closed-form expressions.
A natural direction for future work is to extend this approach to other classes of patterns or longer patterns and to investigate possible Wilf-equivalences between additional families of pattern-avoiding descent sequences.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

No datasets were generated or analyzed during the current study.

Acknowledgments

We thank the referees for their careful reading of and helpful comments on the previous version of this manuscript.

Conflicts of Interest

The author declares no conflicts of interest.

Appendix A

Here we give a detailed proof for Lemma 3. In order to do that, we define the following descent sequences a m = ( 01 ) m , b m = a m 0 , c m , j = a m j , d m , j = c m , j 0 , e m , j = c m , j 1 , f m , j = a m 0 j , g m , j = f m , j 0 , and h m , j = f m , j 1 and we show that all the succession rules of the generating tree T ( { 0123 } ) are hold:
  • Clearly, the children of 0 are 00 and 01. Since any descent sequence 00 π avoids 0123 if and only if 0 π avoids 0123, this 00 0 . Thus, we have the succession rule
    0 0 , a 1 .
  • Let m 1 . The children of a m = ( 01 ) m are ( 01 ) m 0 = b m , ( 01 ) m 1 a m , and ( 01 ) m j = c m , j with j = 2 , 3 , , m . Thus, we have the succession rule
    a m b m , a m , c m , 2 , c m , 3 , , c m , m .
  • Let m 1 . The children of b m = ( 01 ) m 0 are b m 0 b m , b m 1 = a m + 1 , and b m j = f m , j with j = 2 , 3 , , m + 1 . Thus, we have the succession rule
    b m b m , a m + 1 , f m , 2 , f m , 3 , , f m , m + 1 .
  • Let 2 j m . The children of c m , j are c m , j 0 = d m , j , c m , j 1 = e m , j , c m , j i c m + 1 , i with i = 2 , 3 , , j 1 , and c m , j j c m , j (since we avoid 0123 there is no child c m , j i with i > j ). To show c m , j i c m + 1 , j , we note that any descent sequence c m , j i π avoids 0123 if and only if c m + 1 , i avoids 0123. Thus, we have the succession rule
    c m , j d m , j , e m , j , c m + 1 , 2 , c m + 1 , 3 , , c m + 1 , j 1 , c m , j .
  • Let 2 j m . The children of d m , j are d m , j 0 d m , j , d m , j 1 e m , j , d m , j i c m , i with i = 2 , 3 , , j 1 , and d m , j j c m + 1 , j (since we avoid 0123 there is no child d m , j i with i > j ). Thus, we have the succession rule
    d m , j d m , j , e m , j , c m , 2 , c m , 3 , , c m , j 1 , c m + 1 , j .
  • Let 2 j m . The children of e m , j are e m , j 0 d m + 1 , j , e m , j 1 e m , j , e m , j i c m , i with i = 2 , 3 , , j 1 , and e m , j j c m + 1 , j (since we avoid 0123 there is no child e m , j i with i > j ). Thus, we have the succession rule
    e m , j d m + 1 , j , e m , j , c m , 2 , c m , 3 , , c m , j 1 , c m + 1 , j .
  • Let 2 j m + 1 . The children of f m , j are f m , j 0 = g m , j , f m , j 1 h m , j , f m , j i f m + 1 , i with i = 2 , 3 , , j 1 , and f m , j j f m , j (since we avoid 0123 there is no child f m , j i with i > j ). Thus, we have the succession rule
    f m , j g m , j , h m , j , f m + 1 , 2 , f m + 1 , 3 , , f m + 1 , j 1 , f m , j .
  • Let 2 j m + 1 . The children of g m , j are g m , j 0 g m , j , g m , j 1 h m , j , g m , j i f m , i with i = 2 , 3 , , j 1 , and g m , j j f m + 1 , j (since we avoid 0123 there is no child g m , j i with i > j ). Thus, we have the succession rule
    g m , j g m , j , h m , j , f m , 2 , f m , 3 , , f m , j 1 , f m + 1 , j .
  • Let 2 j m + 1 . The children of h m , j are h m , j 0 g m + 1 , j , h m , j 1 h m , j , h m , j i f m , i with i = 2 , 3 , , j 1 , and h m , j j f m + 1 , j (since we avoid 0123 there is no child h m , j i with i > j ). Thus, we have the succession rule
    h m , j g m + 1 , j , h m , j , f m , 2 , f m , 3 , , f m , j 1 , f m + 1 , j .
Note that, in our setting, to show v v , it suffices to construct a bijection between the set of descent sequences of the form v π of length n and the set of descent sequences of the form v π of length n . In our cases, this bijection is obtained by rearranging and relabeling the letters of v to produce v , while keeping π = π . This is the main reason why we only needed to prove three cases.

Appendix B

Here we give a detailed proof for Lemma 4. In order to do that, we define the following descent sequences a m = 01021 m ( m 1 ) , b m , j = a m j , c m = a m 1 m m m , d m = a m 1 m m , e m = a m m m , f m , j = a m m ( m 1 ) j , and g m , j = a m ( m 2 ) ( m 3 ) j . As shown and noted in Appendix B, we show that all the succession rules of the generating tree T ( { 0001 } ) hold:
  • Clearly, the children of 0 are 00 and 01. Thus, we have the succession rule 0 00 , 01 .
  • The children of 00 are 000 and 001 00 . To show 001 00 , we note that any descent sequence 00 π (or 001 π ) avoids 0001 has the form either 0011 1 or 0011 100 0 . Thus, we have the succession rule 00 000 , 00 .
  • The only child of 000 is 0000 000 . Thus, we have the succession rule 000 000 .
  • The children of 01 are 010 = a 1 and 011 = d 1 . Thus, we have the succession rule 01 a 1 , d 1 .
  • Let m 0 . The children of a 2 m + 1 are a 2 m + 1 ( 2 i ) f m + 1 + i , 2 i with i = 0 , 1 , 2 , , m 1 , a 2 m + 1 ( 2 i 1 ) g m + 1 + i , 2 i 1 with i = 1 , 3 , , m , a 2 m + 1 ( 2 m ) = b 2 m + 1 , 2 m , a 2 m + 1 ( 2 m + 1 ) f 2 m + 1 , 2 m + 1 , and a 2 m + 1 ( 2 m + 2 ) = b 2 m + 1 , 2 m + 2 . Thus, we have the succession rule
    a 2 m + 1 f m + 1 , 0 , g m + 2 , 1 , , f 2 m , 2 m 2 , g 2 m + 1 , 2 m 1 , b 2 m + 1 , 2 m , f 2 m + 1 , 2 m + 1 , b 2 m + 1 , 2 m + 2 .
  • Let m 1 . The children of a 2 m are a 2 m ( 2 i ) g m + 1 + i , 2 i with i = 0 , 1 , , m 1 , a 2 m ( 2 i 1 ) f m + i , 2 i 1 with i = 1 , 2 , , m 1 , a 2 m ( 2 m 1 ) = b 2 m , 2 m 1 , a 2 m ( 2 m ) f 2 m , 2 m , and a 2 m ( 2 m + 1 ) = b 2 m , 2 m + 1 . Thus, we have the succession rule
    a 2 m g m + 1 , 0 , f m + 1 , 1 , , g 2 m 1 , 2 m 4 , f 2 m 1 , 2 m 3 , g 2 m , 2 m 2 , b 2 m , 2 m 1 , f 2 m , 2 m , b 2 m , 2 m + 1 .
  • Let m 0 . The children of b 2 m + 1 , 2 m are b 2 m + 1 , 2 m ( 2 i ) f m + 1 + i , 2 i with i = 0 , 1 , , m 1 , b 2 m + 1 , 2 m ( 2 i 1 ) g m + 1 + i , 2 i 1 with i = 1 , 2 , , m , and b 2 m + 1 , 2 m ( 2 m ) b 2 m + 1 , 2 m . Thus, we have the succession rule
    b 2 m + 1 , 2 m f m + 1 , 0 , g m + 2 , 1 , , f 2 m , 2 m 2 , g 2 m + 1 , 2 m 1 , b 2 m + 1 , 2 m .
  • Let m 0 . The children of b 2 m + 1 , 2 m + 2 are b 2 m + 1 , 2 m + 2 ( 2 i ) f m + 1 + i , 2 i with i = 0 , 1 , , m , b 2 m + 1 , 2 m + 2 ( 2 i 1 ) g m + 1 + i , 2 i 1 with i = 1 , 2 , , m , b 2 m + 1 , 2 m + 2 ( 2 m + 1 ) = a 2 m + 2 , and b 2 m + 1 , 2 m + 2 ( 2 m + 2 ) = d 2 m + 2 . Thus, we have the succession rule
    b 2 m + 1 , 2 m + 2 f m + 1 , 0 , g m + 2 , 1 , , f 2 m , 2 m 2 , g 2 m + 1 , 2 m 1 , f 2 m + 1 , 2 m , a 2 m + 2 , d 2 m + 2 .
  • Let m 1 . Very similarly to the last two items, one can obtain the following succession rules:
    b 2 m , 2 m 1 g m + 1 , 0 , f m + 1 , 1 , , g 2 m 1 , 2 m 4 , f 2 m 1 , 2 m 3 , g 2 m , 2 m 2 , b 2 m , 2 m 1 , b 2 m , 2 m + 1 g m + 1 , 0 , f m + 1 , 1 , , g 2 m , 2 m 2 , f 2 m , 2 m 1 , a 2 m + 1 , d 2 m + 1 .
  • Let m 0 . The children of c 2 m + 1 are c 2 m + 1 ( 2 i ) g m + 1 + i , 2 i with i = 0 , 1 , , m 1 , c 2 m + 1 ( 2 i 1 ) f m + i , 2 i 1 with i = 1 , 2 , , m , c 2 m + 1 ( 2 m ) e 2 m + 1 , and c 2 m + 1 ( 2 m + 1 ) c 2 m + 1 . Thus, we have the succession rule
    c 2 m + 1 g m + 1 , 0 , f m + 1 , 1 , , g 2 m , 2 m 2 , f 2 m , 2 m 1 , e 2 m + 1 , c 2 m + 1 .
    Very similarly, for m 1 , one can show the following succession rule:
    c 2 m f m , 0 , g m + 1 , 1 , , f 2 m 2 , 2 m 4 , g 2 m 1 , 2 m 3 , f 2 m 1 , 2 m 2 , e 2 m , c 2 m
  • Let m 0 . The children of d 2 m + 1 are d 2 m + 1 ( 2 i ) g m + 1 + i , 2 i with i = 0 , 1 , , m 1 , d 2 m + 1 ( 2 i 1 ) f m + i , 2 i 1 with i = 1 , 2 , , m , d 2 m + 1 ( 2 m ) f 2 m + 1 , 2 m + 1 , and d 2 m + 1 ( 2 m + 1 ) = c 2 m + 1 . Thus, we have the succession rule
    d 2 m + 1 g m + 1 , 0 , f m + 1 , 1 , , g 2 m , 2 m 2 , f 2 m , 2 m 1 , f 2 m + 1 , 2 m + 1 , c 2 m + 1 .
    Very similarly, for m 1 , one can show the following succession rule:
    d 2 m f m , 0 , g m + 1 , 1 , , f 2 m 2 , 2 m 4 , g 2 m 1 , 2 m 3 , f 2 m , 2 m , c 2 m .
  • Let m 0 . The children of e 2 m + 1 are e 2 m + 1 ( 2 i ) f m + 1 + i , 2 i with i = 0 , 1 , , m , e 2 m + 1 ( 2 i 1 ) g m + 1 + i , 2 i 1 with i = 1 , 2 , , m , and e 2 m + 1 ( 2 m + 1 ) e 2 m + 1 . Thus, we have the succession rule
    e 2 m + 1 f m + 1 , 0 , g m + 2 , 1 , , f 2 m , 2 m 2 , g 2 m + 1 , 2 m 1 , f 2 m + 1 , 2 m , e 2 m + 1 .
    Very similarly, for m 1 , one can show the following succession rule:
    e 2 m g m + 1 , 0 , f m + 1 , 1 , , g 2 m , 2 m 2 , f 2 m , 2 m 1 , e 2 m .
  • Let m 0 . The children of f 2 m + 1 , 2 m + 1 are f 2 m + 1 , 2 m + 1 ( 2 i ) f m + 1 + i , 2 i with i = 0 , 1 , , m , f 2 m + 1 , 2 m + 1 ( 2 i 1 ) g m + 1 + i , 2 i 1 with i = 1 , 2 , , m , f 2 m + 1 , 2 m + 1 ( 2 m + 1 ) = e 2 m + 1 , f 2 m + 1 , 2 m + 1 ( 2 m + 2 ) f 2 m + 1 , 2 m + 1 . Thus, we have the succession rule
    f 2 m + 1 , 2 m + 1 f m + 1 , 0 , g m + 2 , 1 , , f 2 m , 2 m 2 , g 2 m + 1 , 2 m 1 , f 2 m + 1 , 2 m , e 2 m + 1 , f 2 m + 1 , 2 m + 1 .
    Very similarly, for m 1 , one can show the following succession rule:
    f 2 m , 2 m g m + 1 , 0 , f m + 1 , 1 , , g 2 m , 2 m 2 , f 2 m , 2 m 1 , e 2 m , f 2 m , 2 m .
  • Let 0 j m 1 , The children of f 2 m + 1 , 2 j + 1 are f 2 m + 1 , 2 j + 1 ( 2 i ) f 2 m + 1 j + i , 2 i with i = 0 , 1 , , j , f 2 m + 1 , 2 j + 1 ( 2 i 1 ) g 2 m j + i , 2 i 1 with i = 1 , 2 , , j , and f 2 m + 1 , 2 j + 1 ( 2 j + 1 ) f 2 m + 1 , 2 j + 1 . Thus, we have the succession rule
    f 2 m + 1 , 2 j + 1 f 2 m + 1 j , 0 , g 2 m + 1 j , 1 , , f 2 m , 2 j 2 , g 2 m , 2 j 1 , f 2 m + 1 , 2 j , f 2 m + 1 , 2 j + 1 .
    Let 0 j m , The children of f 2 m + 1 , 2 j are f 2 m + 1 , 2 j ( 2 i ) g 2 m + 2 j + i , 2 i with i = 0 , 1 , , j 1 , f 2 m + 1 , 2 j ( 2 i 1 ) f 2 m + 1 j + i , 2 i 1 with i = 1 , 2 , , j , and f 2 m + 1 , 2 j ( 2 j ) f 2 m + 1 , 2 j . Thus, we have the succession rule
    f 2 m + 1 , 2 j g 2 m + 2 j , 0 , f 2 m + 2 j , 1 , , g 2 m + 1 , 2 j 2 , f 2 m + 1 , 2 j 1 , f 2 m + 1 , 2 j .
    Very similarly, for 0 j m 1 , one can show the following succession rules:
    f 2 m , 2 j + 1 f 2 m j , 0 , g 2 m + 1 j , 1 , , f 2 m 1 , 2 j 1 , g 2 m , 2 j 1 , f 2 m , 2 j , f 2 m , 2 j + 1
    and
    f 2 m , 2 j g 2 m + 1 j , 0 , f 2 m + 1 j , 1 , , g 2 m , 2 j 2 , f 2 m , 2 j 1 , f 2 m , 2 j .
  • Let 0 j m 1 . The children of g 2 m + 1 , 2 j + 1 are g 2 m + 1 , 2 j + 1 ( 2 i ) g 2 m + 1 j + i , 2 i with i = 0 , 1 , , j , g 2 m + 1 , 2 j + 1 ( 2 i 1 ) f 2 m j + i , 2 i 1 with i = 1 , 2 , , j , and g 2 m + 1 , 2 j + 1 ( 2 j + 1 ) g + 2 m + 1 , 2 j + 1 . Thus, we have the succession rule
    g 2 m + 1 , 2 j + 1 g 2 m + 1 j , 0 , f 2 m + 1 j , 1 , , g 2 m , 2 j 2 , f 2 m , 2 j 1 , g 2 m + 1 , 2 j , g 2 m + 1 , 2 j + 1 .
    Let 0 j m . Then the children of g 2 m + 1 , 2 j are g 2 m + 1 , 2 j ( 2 i ) f 2 m + 1 j + i , 2 i with i = 0 , 1 , , j 1 , g 2 m + 1 , 2 j ( 2 i + 1 ) g 2 m + 1 j + i , 2 i 1 with i = 1 , 2 , , j , and g 2 m + 1 , 2 j ( 2 j ) g 2 m + 1 , 2 j . Thus, we have the succession rule
    g 2 m + 1 , 2 j f 2 m + 1 j , 0 , g 2 m + 2 j , 1 , , f 2 m , 2 j 2 , g 2 m + 1 , 2 j 1 , g 2 m + 1 , 2 j .
    Very similarly, for 0 j m 1 , one can show the following succession rules:
    g 2 m , 2 j + 1 g 2 m j , 0 , f 2 m j , 1 , , g 2 m 1 , 2 j 2 , f 2 m 1 , 2 j 1 , g 2 m , 2 j , g 2 m , 2 j + 1
    and
    g 2 m , 2 j f 2 m j , 0 , g 2 m + 1 j , 1 , , f 2 m 1 , 2 j 2 , g 2 m , 2 j 1 , g 2 m , 2 j .
Again, note that, in our setting, to show v v , it suffices to construct a bijection between the set of descent sequences of the form v π of length n and the set of descent sequences of the form v π of length n . In our cases, this bijection is obtained by rearranging and relabeling the letters of v to produce v , while keeping π = π . This is the main reason why we did not prove each equivalence separately.

References

  1. Bóna, M. Combinatorics of Permutations, 2nd ed.; Discrete Mathematics and Its Applications; CRC Press: Boca Raton, FL, USA, 2012. [Google Scholar]
  2. Kitaev, S. Patterns in Permutations and Words; Monographs in Theoretical Computer Science. An EATCS Series; Springer: Berlin/Heidelberg, Germany, 2011. [Google Scholar]
  3. Mansour, T. Combinatorics of Set Partitions; CRC Press: Boca Raton, FL, USA, 2013. [Google Scholar]
  4. Callan, D. On ascent, repetition and descent sequences. arXiv 2019, arXiv:1911.02209. [Google Scholar]
  5. Callan, D.; Mansour, T. Wilf classes for descent sequences avoiding a pattern or a pair of patterns of length three. Filomat 2026, 40, 3081–3095. [Google Scholar]
  6. Baril, J.-L. Avoiding patterns in irreducible permutations. Discret. Math. Theor. Comput. Sci. 2016, 17, 97–124. [Google Scholar]
  7. Baril, J.-L.; González, J.F.; Ramírez, J.L. Last symbol distribution in pattern avoiding Catalan words. Math. Comput. Sci. 2024, 18, 1. [Google Scholar] [CrossRef]
  8. Elizalde, S. Generating trees for permutations avoiding generalized patterns. Ann. Comb. 2007, 11, 435–458. [Google Scholar] [CrossRef]
  9. Ma, S.-M. Counting permutations by numbers of excedances, fixed points and cycles. Bull. Aust. Math. Soc. 2011, 84, 97–105. [Google Scholar]
  10. Ma, S.-M. Some combinatorial sequences associated with context-free grammars. arXiv 2012, arXiv:1208.3104. [Google Scholar]
  11. West, J. Generating trees and the Catalan and Schröder numbers. Discret. Math. 1995, 146, 247–262. [Google Scholar] [CrossRef]
  12. West, J. Generating trees and forbidden subsequences. Discret. Math. 1996, 157, 363–374. [Google Scholar] [CrossRef]
  13. Banderier, C.; Bousquet-Mélou, M.; Denise, A.; Flajolet, P.; Gardy, D.; GouyouBeauchamps, D. Generating functions for generating trees. Discret. Math. 2002, 246, 29–55. [Google Scholar] [CrossRef]
  14. Hou, Q.; Mansour, T. Kernel Method and Linear Recurrence System. J. Comput. Appl. Math. 2008, 261, 227–242. [Google Scholar] [CrossRef]
  15. Sloane, N.J.A. The On-Line Encyclopedia of Integer Sequences. 2020. Available online: http://oeis.org (accessed on 1 May 2026).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mansour, T. Generating Trees Unifying Several Classes of Four-Letter Pattern-Avoiding Descent Sequences. Axioms 2026, 15, 450. https://doi.org/10.3390/axioms15060450

AMA Style

Mansour T. Generating Trees Unifying Several Classes of Four-Letter Pattern-Avoiding Descent Sequences. Axioms. 2026; 15(6):450. https://doi.org/10.3390/axioms15060450

Chicago/Turabian Style

Mansour, Toufik. 2026. "Generating Trees Unifying Several Classes of Four-Letter Pattern-Avoiding Descent Sequences" Axioms 15, no. 6: 450. https://doi.org/10.3390/axioms15060450

APA Style

Mansour, T. (2026). Generating Trees Unifying Several Classes of Four-Letter Pattern-Avoiding Descent Sequences. Axioms, 15(6), 450. https://doi.org/10.3390/axioms15060450

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop