1. Introduction
An
ascent in a sequence
is a position
such that
. An
ascent sequence is a sequence of non-negative integers satisfying
and, for
,
where
denotes the number of ascents in the prefix
. Ascent sequences were introduced by Bousquet-Mélou, Claesson, Dukes, and Kitaev [
1] in connection with
-free posets, and their generating function was first obtained in that work. Since then, ascent sequences have become a central object in enumerative combinatorics due to their rich structure and connections with pattern avoidance, posets, and other Catalan families. We refer the reader to [
2,
3] for further background and developments.
A pattern is a word in containing each letter for some and . Let be an ascent sequence and let be a pattern. We say that a contains if it has a subsequence with that is order-isomorphic to , meaning that all pairwise comparisons between entries are preserved. Otherwise, a is said to avoid .
Pattern avoidance in ascent sequences has been an exceptionally active area of research over the past decade. The systematic study of short patterns was initiated by Duncan and Steingrímsson [
4], who classified and conjectured avoidance formulas for several patterns of lengths 3 and 4, establishing deep connections to Catalan families and classical permutation avoidance. Many of these foundational conjectures were subsequently resolved using a variety of bijective and analytic techniques; for instance, Mansour and Shattuck [
5] established the exact counts for patterns like 0012, 0021, and 1012 (see
Table 1). Concurrently, Liu, Kitaev, and Zhang [
6] successfully enumerated classes avoiding specific subsets of length-4 patterns, such as 0101 and 0102, by introducing specialized refined statistics.
Beyond classical avoidance, the literature has expanded in several distinct directions to map the structural landscape of these sequences. For example, Fu [
7] and Yan [
8,
9] investigated the avoidance of consecutive patterns and barred patterns, revealing close ties to inversion sequences and restricted permutations. Meanwhile, algorithmic and structural frameworks—such as the use of generating trees and the definition of new Wilf-equivalence classes—have been significantly advanced by works such as Callan and Mansour [
10], Boliac et al. [
11,
12,
13], and Baxter and Pudwell [
14].
Despite this rich body of work, a comprehensive classification for all patterns of length four remains incomplete. Indeed, determining avoidance formulas for patterns of length four is widely recognized as an exceptionally difficult problem across classical combinatorial structures, including permutations, involutions, and
k-ary words (see, e.g., Bóna [
15] and Kitaev [
3]). For instance, while Regev [
16] successfully determined the asymptotic behavior for
k-ary words avoiding 0123 via representation theory tools, an explicit formula for the generating function of permutations avoiding the pattern 1324 (and its Wilf-equivalent classes) remains one of the most famous open problems in the discipline.
The pattern 0132 in the context of ascent sequences represents a parallel, notorious gap. Unlike patterns that yield conventional Catalan or binomial distributions, 0132-avoiding sequences generate a highly complex tree structure where the placement of new elements depends non-trivially on multiple tracking statistics of the prefix. Consequently, its explicit enumeration has remained open, and its generating function cannot be derived from any previously known framework.
The main contribution of this paper is to bridge this gap by providing the first complete enumerative and structural analysis of 0132-avoiding ascent sequences. Specifically, we achieve the following:
Exact Enumeration: We establish that the generating function for 0132-avoiding ascent sequences is algebraic of degree three, satisfying a definitive cubic equation (Theorem 1). This provides a sharp contrast to simpler length-4 patterns that typically yield quadratic generating functions.
Methodological Framework: We introduce a refined generating tree framework utilizing multiple catalytic variables to capture the subtle interactions within the prefix ascents. This provides a systematic workflow for solving the resulting complex systems of functional equations, which may be applicable to other unresolved pattern classes. See the last section.
Our core result is formulated as follows.
Theorem 1. The generating function for the number of ascent sequences of length avoiding the pattern 0132
satisfies The proof of Theorem 1 proceeds in three stages:
- (1)
We construct a generating tree for 0132-avoiding ascent sequences;
- (2)
We derive a system of recurrence relations for associated generating functions, including f;
- (3)
We solve the resulting functional equations to obtain the cubic equation satisfied by f.
By applying the above theorem and following the standard procedure for obtaining trigonometric solutions to cubic equations, we obtain that the generating function
for the number of ascent sequences of length
that avoid 0132 is given by
This paper is organized as follows. In
Section 2, we introduce the generating tree framework that serves as the basis for our enumeration. In
Section 3, we derive the recurrence relations governing the generating tree and translate them into a system of functional equations for the associated generating functions. In
Section 2.1 and
Section 2.2, we solve this system of equations and use the resulting generating functions to establish the main enumeration theorem (Theorem 1). In
Section 3, we illustrate the flexibility of our approach by applying it to several additional pattern classes, namely those avoiding 0123, 0122, 0120, 0102, and 0101, obtaining their corresponding enumerations through analogous generating tree constructions. We conclude with a discussion of possible directions for future research.
2. Proof of Theorem 1
Generating trees have proved to be an effective tool for studying pattern avoidance in many combinatorial structures, particularly in the study of ascent sequences. Their main advantage is that they encode the recursive growth of ascent sequences and often reveal a finite collection of equivalence classes from which recurrence relations and generating functions can be derived. Following [
10], we recall the generating-tree framework for pattern-avoiding ascent sequences.
Let
denote the pattern-avoidance generating tree associated with the set of ascent sequences avoiding every pattern in a given set
P. The root of
is the sequence 0, placed at level 1. The tree is constructed recursively: for each
, the nodes at level
n are precisely the ascent sequences of length
n that avoid all patterns in
P. If
is such a sequence, then its parent is the sequence
. To generate the children of a node
, we consider all possible ascent sequences
, where
and retain only those that continue to avoid every pattern in
P. Thus, the generating tree records all admissible extensions of pattern-avoiding ascent sequences.
For any node a in , let denote the subtree rooted at a and consisting of all its descendants. Given two nodes a and in , we say that the subtrees and are isomorphic, denoted by , if they are isomorphic as plane trees. This induces an equivalence relation ∼ on the nodes of , where if and only if .
Finally, we define the reduced generating tree by replacing each node a of with the leftmost node occurring at the lowest possible level such that .
In the next two figures, we illustrate the first levels of the generating trees
and
. More precisely,
Figure 1 presents the generating tree
without using the equivalence relation. For instance, the children of 0 are 00 and 01, and the children of 01 are 010, 011, and 012. Thus, in this generating tree, we have the succession rules
and
.
Figure 2, on the other hand, presents the generating tree
under the equivalence relation. For instance, the children of 0 are
and 01, and the children of 01 are 010,
, and 012. Thus, in this generating tree, we have the succession rules
and
. Note that this equivalence relation allows us to characterize the succession rules of the generating tree
, as stated in Lemma 1.
Now, we are ready to describe the generating tree .
Lemma 1. The generating tree has root 0
and it satisfies the following succession rules
where , , , , and (for a sequence X and an integer d, the constant sequence of d occurrences of X is denoted by ). Proof. Clearly, the children of 0 are 00 and . Since if and only if , it follows that . Therefore, the succession rule holds.
Let , the children of are with . By definition, we have that , , and for all . Therefore, the succession rule holds.
Let , the children of are with . By definition, we have that , , and for all . Therefore, the succession rule holds.
Now, let and , the children of are with . By definition, we have that , , with contains 0132, , and for all . Therefore, the succession rule holds.
Similarly, all the other succession rules hold. □
Let
be the generating function for the number of nodes at level
n in the subtree of
rooted at
v and containing all its descendants, where the root stays at level 1; that is,
Define
,
,
,
, and
. Thus, by Lemma 1, we have
Define
with
and
with
. Here, we used either one or two catalytic variables. By multiplying (4)–(6) by
and summing over
and
, and by multiplying (2)–(3) by
and summing over
, we obtain
and similarly,
In order to solve this system of equations, we assume the following:
This assumption is motivated by the computation of the first terms of the generating functions
A,
B, and
C.
The strategy to solve (
7) and (
8) is as follows. First, we solve (
7) and (
8) under the assumption of (
9). Then, we verify whether the resulting solution satisfies both (
7)–(
9). If it does, the obtained solution is indeed a solution to (
7) and (
8).
2.1. Solving (7) and (8) Under the Assumption of (9)
By (
7)–(
9), we have
Solving the third and fourth equations of (
10) for
and
, and then substituting at the second equation of (
10), we obtain
where
. This type of equation can be solved using the kernel method (see [
17]). For the equation
, there are three roots
,
, where
Hence, by substituting
and
into (
11), and then solving for
and
, we obtain
Thus, by the second, the third, and the fourth equations of (
10), we obtain
where
By solving the sixth equation of (
10) for
, and substituting its expression into the fifth equation of (
10) with
, we obtain
2.2. A Solution for (7) and (8)
Therefore, by taking
for all
and the expression of
, we see that the second, third, fourth, fifth, and sixth equations of (
10) hold. Hence, by the first equation of (
10), we solved the system (
10), which implies the following result.
Theorem 2. The generating function is given by Note that by the definitions of the roots
, we have
and
. So, by Theorem 2, we have
Note that
satisfies
. Hence, by finding
in terms of
and then substituting into the equation
, we obtain the result in Theorem 1.
3. Further Results and Conclusions
In this section, we present several applications of the generating-tree framework developed in the proof of Theorem 1. In particular, we derive explicit formulas for the generating functions that count ascent sequences avoiding a specific pattern of length four, illustrating the utility and versatility of our recursive approach.
As a first consequence, we find an explicit formula for the generating function for the number of ascent sequences of length
n avoiding the pattern 0101. One can show that the generating tree
has root 0 and satisfies the succession rules
for all
. Thus, the corresponding weights satisfy the recurrence relation
To solve this, we define the bivariate generating function
. Multiplying the recurrence by
and summing over
yields the functional equation
This type of linear functional equation can be solved systematically using the kernel method (see, e.g., [
17]). By setting
to cancel the kernel coefficient, we obtain
which matches the known results established in [
4,
6].
As another application, we derive an explicit formula for the generating function counting ascent sequences of length
n that avoid the pattern 0102. It can be shown that the generating tree
has root 0 and obeys the following succession rules:
for all
. Translating these rules into a system of recurrence relations and converting them into a functional equation allows us to apply the kernel method once more. This shows that the generating function for the number of ascent sequences of length
n avoiding 0102 is given by
which matches the known results established in [
4,
6].
Similarly, we can study the pattern 0112. It can be shown that the generating tree
has root 0 and obeys the following succession rules:
From these rules, it is straightforward to see that the generating trees
and
are isomorphic, immediately implying that the two corresponding generating functions are equal.
Also, we can study the pattern 0123. It can be shown that the generating tree
has root 0 and obeys the following succession rules:
for all
. Translating these rules into a system of recurrence relations, we obtain
for all
. Translating these recurrence relations to functional equations allows us to apply the kernel method once more. This shows that
for all
. Hence, we have the following theorem.
Theorem 3. The generating function for the number of ascent sequences of length n avoiding 0123
is given by Similarly, we can study the pattern 0122. It can be shown that the generating tree
has root 0 and obeys the following succession rules:
for all
and
. Translating these rules into a system of recurrence relations, we obtain
for all
and
. Define
,
, and
. Now, the above recurrence relations can be written as
Here, we were unable to solve this system to derive an explicit generating function for the number of ascent sequences of length
n avoiding the pattern 0122.
Another direction is to consider the set of ascent sequences of length
n that avoid both 0132 and another pattern
. For instance, it can be shown that the generating tree
has root 0 and obeys the following succession rules:
where
and
. Translating these rules into a system of recurrence relations and converting them into a functional equation allows us to apply the kernel method once more. This shows that the generating function for the number of ascent sequences of length
n avoiding both 0132 and 0123 is given by
In another example, it can be shown that the generating tree
has root 0 and obeys the following succession rules:
Translating these rules into a system of recurrence relations and converting them into a functional equation allows us to show that the generating function for the number of ascent sequences of length
n avoiding both 0132 and 0123 is given by
In conclusion, the methodology presented above—constructing the underlying generating tree, translating its succession rules into a system of recurrence relations, deriving the corresponding functional equations, and systematically solving them using tools such as the kernel method—provides a powerful framework for obtaining explicit formulas for pattern-avoiding ascent sequences. We have demonstrated the effectiveness of this approach by resolving the non-trivial avoidance case of 0132, along with several other cases considered in this work. A limitation of the method is that, in its current form, it does not immediately lead to a universal procedure for deriving closed formulas for all pattern-avoidance classes.
We anticipate that this approach is robust enough to be applied to many of the pattern sets discussed in the introduction, although a complete characterization remains open. As a natural direction for future research, we therefore propose the following conjecture: it should be possible to obtain explicit generating functions for ascent sequences avoiding any given single pattern of length four. More generally, one may also investigate the simultaneous avoidance of arbitrary sets of length-four patterns.