Skip to Main Content

Riordan Matrices and Lattice Path Enumeration

Naiomi Cameron
Asamoah Nkwanta

Communicated by Notices Associate Editor Emilie Purvine

Article cover

In this friendly survey, we look at some interactions between a certain class of infinite matrices called Riordan matrices and the class of combinatorial objects called lattice paths. There are a variety of interesting algebraic and combinatorial relationships between Riordan matrices and lattice path enumeration problems. This article attempts to introduce the reader to the concepts and techniques that may be used to explore these relationships.

The lattice paths considered in this article are presented as combinatorial objects which are subject to specific construction rules, and our interest is to enumerate and classify them with counting sequences. Riordan matrices are infinite matrices whose columns can be associated with a certain kind of sequence of generating functions. There are many interesting Riordan matrices that contain column entries or row sums associated with well-known counting numbers, such as the binomial coefficients, the ballot, Catalan, Motzkin, Schröder, Fine, Delannoy, and RNA numbers, and other counting numbers that can be found in Sloane’s On-line Encyclopedia of Integer Sequences S1. The aim of this article is to introduce the reader to Riordan matrices and to present examples of solutions to particular lattice path counting problems, where the lattice paths are enumerated by the column entries or row sums of Riordan matrices.

Algebraic combinatorics involves the use of techniques from algebra, topology, and geometry in the solution of combinatorial problems. Because of this interplay with many fields of mathematics, algebraic combinatorics is an area in which a wide variety of ideas and methods come together. Riordan arrays appear in algebraic combinatorics and are useful for proving combinatorial sums and identitites. They also appear in various counting problems in enumerative combinatorics. A certain subset of Riordan arrays called proper Riordan arrays, otherwise known as Riordan matrices, form the Riordan group, an infinite non-commutative matrix group, which is the main combinatorial device reported in this article. The Riordan group can be characterized as being algebraic and combinatorial. Thus, as a subfield of enumerative and algebraic combinatorics, the Riordan group brings together a wide variety of combinatorial methods and mathematical ideas. There are also some interesting mathematical contributions outside of combinatorics that touch on geometry, group theory, Lie algebra and groups, functional analysis, representation theory, and queuing theory. For a more thorough survey of contributions of the Riordan group to other areas of mathematics and combinatorics, see the monograph by Shapiro et al. SSB.

The algebraic concepts subsequently reported in this article involve finding inverse relations and multiplying, inverting, and manipulating Riordan matrices. The concepts covered herein involve using recurrence relations, generating functions, combinatorial statistics and explicit bijections to solve certain lattice path counting problems. However, the authors do not claim to solve all lattice path counting problems associated with Riordan matrices.

The article proceeds with an overview of the type of lattice paths under consideration, followed by an elementary introduction to generating functions. Riordan arrays are then formally introduced, followed by a section devoted to the algebra of the Riordan group. The last two sections of the paper feature specific demonstrations of how the Riordan group can be applied to lattice path enumeration problems, especially as related to generalized Catalan paths.

Lattice paths

The subject of counting paths (walks) on the lattice in Euclidean space is one of the most important areas of combinatorics. The lattice paths described in this article are defined on the integral lattice , where , under the conditions that each path starts at some fixed origin, moves according to certain steps under specified rules and restrictions, and never crosses or touches certain coordinate axes or hyperplanes. For excellent introductions to lattice path combinatorics and enumeration, see the surveys by Humphreys H and Krattenthaler K.

A lattice path is a sequence of contiguous (unit) steps which traverses the -dimensional integral lattice . More precisely, a lattice path in with unit steps is a sequence such that for each , . In this case, we refer to as a step set. We will often refer to a lattice path simply as a path, where the path is encoded by a word based on an alphabet containing . Geometrically, a lattice path is represented by the edges between the consecutive vertices of the path. A path with no steps is a point. The length of a path is the number of unitary steps.

In this article, the paths are considered to be in -dimensional Euclidean space and never pass below a specified hyperplane. Typically, in , the paths never pass below the -axis. The height of a path corresponds to the value of the endpoint of the path. In three dimensions the paths are considered to be in three-dimensional Euclidean space and often never pass below the -plane. The height of each path corresponds to the value of the endpoint of the path. Throughout this article, we will focus mainly on lattice paths in the plane, i.e., . However, the step sets of particular higher dimensional paths defined in N2 will be mentioned in the last section. There are many types of path problems as well as methods and models for finding their solutions. Thus, there is a vast amount of literature on this topic from the self-avoiding walk problem to lattice path problems with infinite step sets.

Examples of lattice paths

This article will focus mainly on Dyck (Catalan) paths and related paths, such as Motzkin and Schröder paths, with a few other paths discussed briefly.

Example 1 (Dyck Paths).

A Dyck (Catalan) path is a lattice path in the first quadrant of which begins at the origin , ends at , has the step set , and never goes below the -axis. These paths can be described as paths that consist of unit up steps with slope , denoted by , and unit down steps with slope , denoted by . We refer to as the semi-length of the path. A Dyck path of semi-length is called a Dyck -path. These paths are counted by the Catalan numbers, which are defined in the next section. The possible paths of length are depicted in Figure 1 and can also be encoded by the words

Figure 1.

The Dyck paths of semi-length .

Graphic without alt text
Example 2 (Motzkin Paths).

A Motzkin path of length is a lattice path in that begins at the origin , ends at , has step set and never passes below the -axis. These paths consist of unit up steps with slope denoted by , unit down steps with slope denoted by , and unit horizontal (or level) steps with slope denoted by . Motzkin paths are counted by the Motzkin numbers that are defined in the next section. The possible paths of length are shown in Figure 2 and the possible paths of length can be encoded by the words

Figure 2.

The Motzkin paths of length .

Graphic without alt text
Example 3 (Schröder Paths).

A Schröder path is a path in the first quadrant of that begins at the origin , ends at , with step set and never passes below the -axis. These paths consist of steps, steps, and double horizontal or level steps denoted by . These paths are counted by the large Schröder numbers that are defined in the next section. The possible paths of length are depicted in Figure 3.

Figure 3.

The Schröder paths of length .

Graphic without alt text

Motzkin, Dyck, and Schröder paths are interesting combinatorial objects and they appear in a wide variety of combinatorial problems. Riordan arrays have been constructed to study these paths and many other types of lattice path counting problems.

Generating functions

In order to understand Riordan matrices, some working knowledge of generating functions is needed. In this article, Riordan arrays are defined in terms of ordinary generating functions.

Given a sequence of elements of a commutative ring, the ordinary generating function for is the formal power series

where is an indeterminate (or auxiliary variable). In some instances “aerated” are of interest. An aerated is a of the form

where is the associated sequence of aerated coefficients. In this article, we will only refer to the concept of aerated once in Example 13, but otherwise they may be encountered frequently in some lattice path enumeration problems.

Note that since are defined algebraically as formal power series, and not as real-valued functions, series convergence is not necessary for the existence of . Nonetheless, convergence of is sometimes necessary for finding exact formulae and asymptotic estimates of the th term of a sequence. See Wilf W2, for more details on algebraic and analytic properties of .

Sequences of coefficients in combinatorics are sometimes called counting sequences and are often computed by recurrence relations. A recurrence relation (or recursion) recursively defines a sequence where the th term of the sequence is expressed in terms of some previous terms, . In turn, can be derived from their related recurrence relation. The famed Fibonacci numbers are computed by the following recurrence relation

with initial conditions . The for this sequence is perhaps one of the most recognized and studied :

where are the popular Fibonacci numbers, which count various combinatorial objects including lattice paths. The th Fibonacci number is given by

where , , and is known as the golden ratio.

Interestingly, with the same recurrence relation, if the initial conditions are , then

Some suggested exercises for the reader are to use the recursion to derive , and then to use to derive the exact forumula of given above.

We now present three examples of that are commonly encountered in lattice path enumeration.

Example 4.

The Catalan is defined by

where are the Catalan numbers and is the th Catalan number. They are computed recursively by ,

The Catalan numbers appear in many combinatorial problems and have a variety of algebraic applications S2.

Next, we present the Motzkin and Schröder which have lattice path interpretations that are related to the Catalan numbers.

Example 5.

The Motzkin is defined by

where are the Motzkin numbers. They are computed recursively by , ,

and are connected to the Catalan numbers by

where denotes the floor of (i.e., the greatest integer ).

Example 6.

The Schröder is defined by

where are the large Schröder numbers. They are computed recursively by ,

and are connected to the Catalan numbers by

The Catalan, Motzkin, and Schröder appear in many combinatorial problems. For more properties and examples of and recurrence relations, see W2.

What are Riordan arrays?

The Riordan array concept was introduced in 1991 by Shapiro et al. SGWW. A Riordan array is a special infinite lower-triangular matrix where the column entries consist of coefficients of certain formal power series. Representing infinite matrices by coefficients of (formal) power series is not new and goes back to papers by Schur S and Jabotinsky J on Faber polynomials. Thus, Riordan arrays depend upon certain formal power series and .

Suppose and , where and and are formal power series . Then the infinite array

with entries in is called a Riordan array if the ordinary generating function for its th column is the Cauchy (convolution) product of and . That is, is a Riordan array if the for the sequence of numbers in the th column of is

for all . The constant coefficient is commonly used for combinatorial convenience. Note that and are sometimes abbreviated, respectively, as and .

Since the column-generating functions of a Riordan array form a geometric sequence , we may denote the Riordan array in pair form as

The -th or generic element of can be obtained by extracting the th coefficient of and obtaining

where denotes the operator for extracting the th coefficient of a generating function. For instance, . For rules that govern the actions of , see SSB. The rules are sometimes called the method of coefficients and sometimes involve using the binomial theorem and Lagrange inversion formula to extract the coefficients.

Following the definition of and if, in addition, is satisfied, then is invertible under matrix multiplication. The invertible Riordan arrays are called proper Riordan arrays or simply Riordan matrices. We note that Riordan matrices are also known as “recursive matrices” in the umbral calculus MRSV. Riordan matrices (arrays) are also defined by coefficients of exponential generating functions where one encounters the well-known derangement, partition (Bell), Bernoulli, Cauchy, Euler, and Stirling numbers; however, they are not described in this paper. For more information and examples of Riordan arrays and exponential formal power series see B.

Examples of Riordan arrays

Here we provide examples of Riordan arrays related to the Pascal, Catalan, Motzkin, and RNA sequences.

Example 7 (Pascal’s Triangle).

Pascal triangle, the most popular example, denoted by contains the well-known binomial coefficients. When written in infinite lower-triangular form,

where

is the -th element of . More generally, for integers

is a generalized Pascal-Riordan matrix with generic element . The entries of count certain lattice paths in with horizontal and diagonal steps that do not go above the line or below the axis SSB. A suggested exercise for the reader is to show that the entries of count the lattice paths in with different kinds of horizontal steps that come in different colors.

Example 8 (Aigner-Catalan Array).

The Aigner-Catalan array denoted by contains the well-known ballot numbers. is defined as

where the leftmost column entries are the Catalan numbers, is the Catalan ,

is the -th element of , and are the well-known ballot numbers. The entries of count certain lattice paths in with horizontal and vertical steps that are restricted to lie on or below the line in the coordinate plane SSB.

Example 9 (Shapiro-Catalan Array).

The Shapiro-Catalan array denoted by is defined as

where the leftmost column entries are the Catalan numbers (minus the leading ) and

is the -th element of . The entries of count certain pairs of non-intersecting lattice paths in in the first quadrant.

Example 10 (Radoux-Catalan Array).

The Radoux-Catalan array denoted by is defined as

where the leftmost column entries are again the Catalan numbers and

is the -th element of . The entries of count certain Dyck paths A1.

The Catalan arrays , , and are of interest and appear in many combinatorial problems.

Example 11 (RNA Array N1).

The RNA array, denoted by , is defined as

where the leftmost column entries are the RNA numbers (or generalized Catalan numbers) which count RNA secondary structures from molecular biology S2, W1. The for the RNA numbers is

and W1. The RNA numbers are computed recursively

with . They are also computed by the following sum

The entries of count certain Motzkin paths with certain restrictions N1. A problem of interest is to find a nice form for the generic element of

Example 12 (An Improper Riordan Array).

The array below denoted by is an example of an improper Riordan array MRSV

where is the generating function

Note that . So, is not a proper Riordan array. However, the entries of count certain lattice paths in with steep and shallow diagonal steps MRSV.

We conclude the examples by noting some well-known combinatorial triangles that are not (ordinary) Riordan arrays, as defined in this article. The Narayana array denoted by contains the Narayana numbers , . is typically given as an example of an invertible, infinite lower-triangular array that is not a Riordan array.

and the generic element is

is not a Riordan array since the th column is not defined by ordinary generating functions of the form . Although is not Riordan, there are interesting combinatorial interpretations of : the entries count the total number of Dyck -paths with peaks, the row sums are the Catalan numbers , and the diagonal sums are the RNA numbers (minus the leading ). Suggested exercises for the reader are to verify the row sums and diagonal sums. (The diagonal sums, sometimes called slices, move upward left-to-right within the array in a north-east direction.)

Finally, we make a brief note of the Stirling triangle, which contains the Stirling numbers of the second kind , the number of partitions of an -set into blocks (nonempty subsets). The Stirling triangle is not a Riordan array, as we have defined in this article. However, since the exponential generating function for is of the form where and are exponential generating functions and , the Stirling triangle is a so-called exponential Riordan array. For more information on exponential generating functions and exponential Riordan arrays, see B.

Algebra of the Riordan group

As mentioned earlier, the set of Riordan matrices form the Riordan group, which we will define and discuss in more detail in this section. We note that the Riordan group is also known as the Sheffer or 1-umbral group JLN. See SSB for a connection between the Sheffer and Riordan groups. For an excellent introduction to the Riordan group and Riordan arrays, see Barry 4.

We now introduce Riordan matrix multiplication, starting with multiplication by a column vector. If is a Riordan matrix and is the associated with the infinite column vector , where denotes the transpose, then one can show that the matrix product is an infinite column vector whose associated is , where denotes a Cauchy product and denotes composition of SGWW. This statement is known as the fundamental theorem of Riordan arrays (FTRA) and it allows us to define multiplication of Riordan arrays in the following way.

Suppose is a Riordan matrix and is a . We define the product

Here, we have introduced the symbol for use when writing the matrix product of a Riordan matrix, in terms of its associated generating function pair, and a column vector, in terms of its associated generating function. Note that the product represents the usual matrix multiplication. Next, we give some examples of properties of Riordan matrix-vector multiplication before moving on to multiplication of two Riordan matrices.

For example, the product of Pascal’s Triangle and associated with column vector is

This example is the well-known result where the row sums of are

We now give some important of various sums of Riordan matrices that are obtained by multiplying by different column vectors SSB.

Recall that diagonal sums move upward left-to-right within the array in a north-east direction. For instance, in the fifth diagonal sum is . The diagonal sums of all entries of a Riordan array are computed by the row sums of the “vertically stretched” Riordan array . Vertically stretched Riordan arrays are not invertible because in this case the first three coefficients of are , and . See Example 12 for an example of a vertically stretched Riordan array, and for a broader introduction to stretched Riordan arrays, see 4. Some suggested exercises are to show that the diagonal sums of are the Fibonacci numbers and the weighted row sums starting with leading coefficent are given by the . Weighted row sums correspond to the first moments or the expected value of each row of the Riordan matrix. For example, the first moments of are the bisected Fibonacci numbers given by N1. A straight forward calculation shows

where is the RNA . However, the bisection formula can be applied to the Fibonacci generating function . For more information on the bisection formula, see SSB. The result is

This gives a nice relationship between the Fibonacci and RNA .

Since FTRA is based on the usual row-by-column matrix multiplication, it can be extended to the matrix product of two Riordan matrices. Let and be Riordan matrices. Then the matrix product is also a Riordan matrix which can be described as follows:

Note that, in the context of this article, a product of Riordan matrices, expressed without the symbol may be interpreted as the usual matrix multiplication.

Example 13.

An exercise for the reader is to show that where is Pascal’s Triangle, is the “aerated” version of the Aigner-Catalan Riordan matrix from Example 8, and is the Motzkin Riordan matrix from Example 5. The entries of and count certain partial Motzkin paths 4, N2.

The set of all Riordan matrices forms a group under the operation of matrix multiplication SGWW. The identity element is . This is the usual identity with ones along the main diagonal. The inverse of is where is the compositional inverse of such that . For example, the inverse of Pascal’s Triangle is

and the th element of is

A slightly more complicated example, where the compositional inverse is not as obvious to compute, is

where is the Aigner-Catalan array of Example 8. In many instances, finding can be laborous and complicated.

Example 14.

A nice application of and involves the FTRA and the notion of binomial inversion (transform) of sequences. If is the of the generic sequence , then the of the binomial transform is given by

Similarly,

As a result of this we have the classical binomial transform of sequences

Example 15.

Let and denote, respectively, column vectors associated with the sequences and . Then , where is Pascal’s Triangle. Suppose we want to find such that is the RNA numbers described in Example 11. Then, by the FTRA

where is the RNA . Thus, equals

where is the associated with

This curious sequence is not in the OEIS database S1. A suggested exercise is to show that . This gives a nice relationship between Pascal’s triangle and the RNA numbers. An interesting open problem is to find a combinatorial interpretation of this multiplication that involves lattice paths or RNA secondary structures from molecular biology.

There are many important subgroups of the Riordan group. We list a few special subgroups below:

Note that and are even and odd functions, respectively. is the first derivative of . , and are elements of the Bell subgroup. In addition, is an element of the checkerboard subgroup and the hitting time subgroup. Interestingly, one can use the fact that

to show that the Riordan group is a semi-direct product of the associated and Appell subgroups. For more algebraic properties of the Riordan group, see JLN.

Finally, we mention that Riordan matrices have recursive formulas for their entries, known as “formation rules.” A formation rule is a recurrence relation which describes how each entry in a Riordan matrix can be expressed as a linear combination of entries in the preceding rows. One common formation rule is denoted by , which represents two recurrence relations that define the way entries of are computed. is a sequence of coefficients for a recurrence relation that describes the entries of the leftmost or zeroth column of and is a sequence of coefficients for a recurrence relation that describes the entries of all other columns of .

More precisely, the -sequence characterizes the zeroth column of . This means every element can be expressed as a linear combination of all the elements in the preceding row by

The -sequence characterizes the other columns of . In this case every element can be expressed as a linear combination of the elements in the preceding row, starting from the preceding column by

The of the - and -sequences, respectively, are

where is the compositional inverse of 4. For example, the formation rule of the Shapiro-Catalan Riordan matrix is where and . In general, the entries are computed by and . See MRSV, R for more information on the - and -sequences.

Riordan matrix method and lattice path counting

One can use Riordan matrices to solve many kinds of lattice path enumeration problems. A typical method for using Riordan matrices to count lattice paths, as well as other combinatorial objects, is outlined by the following steps:

(1)

Count a few cases for the objects and observe some counting numbers.

(2)

Set up the counting numbers as a lower-triangular matrix .

(3)

Find a pattern in the way the entries of are computed.

(4)

Use the pattern (formation rules) to conjecture/define as a Riordan matrix .

(5)

Find the generic element of .

(6)

Use the generic element or formation rules to prove combinatorially that counts the objects.

(7)

Compute to find the total number of combinatorial objects.

We now apply the Riordan matrix method to a particular lattice path counting problem. The problem was previously solved in N2. However, in this survey we provide more details and improve the presentation of the solution.

We wish to count paths in that begin at the origin , remain in the upper plane, follow the step set

with north , south , right , and left unit steps, and satisfy the following restrictions: (1) no path passes below the -axis, (2) there are no paths with consecutive and steps, i.e., there are no steps, (3) no paths begin with an step, (4) all steps touch and remain on the -axis. Then, we call these paths paths. Let where denotes the number of paths of length that end at height . Recall that the height corresponds to the value of the endpoint of the path. A typical path of length and height is denoted by the word

We want to find the total number of paths. Start by counting the number of paths of length that end at height for the first few cases where and obtain the following lower-triangular matrix

Then, we find the following patterns for the entries of . We observe that the leftmost (or zeroth) column entry is computed by

All other leftmost column entries seem to follow this same pattern (formation rule), that is, the same linear combination of respective entries from the preceding rows. We now observe the other columns entries. Observe that is computed by

All other bold entries in the other columns (not the leftmost) seem to follow this pattern. Thus, we conjecture this pattern (formation rule) and make the assumption that the -th entry of is formed by the following recurrence relations. The leftmost or zeroth column is formed for , , and

The other columns are formed for

As previously computed, one can easily confirm and .

From the recurrence relations, we will derive explicit whose coefficients are the column entries of . Following the matrix formation rules, the definition of a Riordan matrix, and making adjustments to properly align the coefficents, the th column of is defined for as

Solving for gives

Now, we solve in terms of and apply the quadratic formula to obtain where is the RNA . Similarily, the leftmost column of is defined as

Using geometric series and simplifying,

Now, we solve in terms of and substitute to obtain

Simplifying,

where . This confirms the pattern (formation rule) and we conjecture that is the Riordan matrix defined by the derived from the recurrence relations. Thus,

We now give combinatorial arguments that show that the entries of model the lattice path counting problem earlier described in this section. We want to find the total number of paths of length ending at height . We will connect the entries of to the paths by showing the paths satisfy the recurrence relations. To do this we consider the following combinatorial arguments. Consider an path of length ending at height . To form a new path of length of height , we consider the following cases. Case 1: Given a path of length ending at height , there is one choice to move the path up to height , a north step . Thus, if the last step is , there are possibilities to construct a new path ending at height . In this case, all paths with last step are counted by . Case 2: Given a path of length ending at height , there is one choice for the path to remain at height , a right step . Thus, if the last step is , there are possibilities to construct a new path ending at height . In this case, all paths with last step are counted by . Case 3: For , given a path of length ending at height , there is one choice of south steps to move the path down to height . Thus, there are possibilities to construct a new path ending at height . In this case, all paths with south steps are counted by . For there are no paths with a last left step since steps touch and remain on the -axis. Now, summing all cases gives all possible ways to construct a new path of lenth ending at height . Therefore, the recurrence relation for the other columns of counts all paths of length ending at height . By similar arguments, we can show that the leftmost column of counts all paths of length ending at height . This proves the formation rule and gives a lattice path interpretation.

To find the total number of paths, we apply the FTRA and compute the row sums by

Simplifying, the total number of paths is given by

where the th coefficient is computed by the following sums A2

For example,

Thus, the total number of paths are counted by the bisected Fibonacci numbers with generating function . The number of Dyck paths of length and height at most are also counted by these bisected Fibonacci numbers. A suggested exercise is to find an explicit bijection between these two sets of paths. See OEIS S1 sequence number for other combinatorial objects enumerated by the counting numbers .

Generalized Catalan paths and Riordan matrices

The Riordan matrix method can be readily used to study statistics on lattice paths and other combinatorial objects. In this final section, we give some illustrations of how Riordan matrices can be leveraged to study statistical distributions of generalized lattice paths and to observe combinatorial relationships among higher-dimensional lattice paths.

A frequent example of lattice paths are the so-called Catalan paths, which are equivalent to ballot numbers and Dyck paths. A Catalan path is a path starting from the origin , using steps of the form and steps of the form , that does not go above the line . Catalan paths are equivalent to Dyck -paths, as described in Example 1. The number of Dyck -paths that end at height is given by the th entry of the (aerated) Catalan matrix .

Catalan paths can be generalized in a variety of ways to obtain other interesting lattice paths associated with well-known combinatorial sequences. For instance, -Dyck paths are paths of length from to , where , that use up steps of the form and down steps of the form and do not go below the -axis. When , we have Dyck paths while the paths we obtain when are called ternary paths which are counted by the ternary numbers with generating function satisfying .

A -Dyck path can also be thought of as a path starting from the origin that uses steps of the form and steps of the form that does not go above the line . In general, -Dyck paths are counted by the Fuss–Catalan numbers .

One may be interested in enumerating certain properties of these generalized lattice paths, such as the number of peaks, valleys, returns, or hills. A return in a Dyck path is a non-origin point on the path that intersects the -axis. The Riordan matrix , from Example 8, counts the number of Catalan paths of length having exactly returns to the -axis. A quick computation of verifies that the row sums of indeed count the total number of Catalan paths of length . Moreover, the computation of

produces the average number of returns among Dyck -paths. An exercise for the reader is to perform this computation and show that the average number of returns among Dyck -paths approaches as .

Similarly, the total number of returns among ternary paths of length is given by

Hence, the expected number of returns among ternary paths is

which approaches 2 as . Furthermore, one can use these methods to show that the probability that a randomly chosen ternary path has exactly returns approaches and that the expected number of returns among nontrivial -Dyck paths approaches with variance . Ultimately, these results lead to the fact that the number of returns among -Dyck paths approaches a negative binomial distribution with parameters and . CM

A hill in a -Dyck path is a subsequence of the form such that the preceding sequence of steps form a -Dyck path. The number of Dyck -paths having exactly hills is given by the Riordan array where

is the for the Fine numbers . Dyck paths having no hills, known as Fine paths, are counted by the Fine numbers. The reader may verify as an exercise that the total number of hills among Dyck -paths is given by

which implies that the expected number of hills among Dyck -paths is exactly . This result suggests that there is a bijection between the set of Dyck -paths and the set of hills among all Dyck -paths. One nice bijection can be described as follows. Given the hill in a Dyck -path of the form , where is an up step, is a down step, and are Dyck paths of semilength at most , map the hill to the Dyck -path . It should be clear that the mapping is injective, and since every Dyck -path can be described in the latter form, the mapping is surjective.

More generally speaking, similar methods on the generalized Fine array , where is the for the number of -Dyck paths having no hills, can be used to show that the number of hills among -Dyck paths of length has expected value

where , and approaches a negative binomial distribution with parameters and CM.

As mentioned previously, lattice paths from to that use up steps of the form , down steps of the form , and level steps of the form are known as Motzkin paths, which are counted by the Motzkin numbers. When we allow two possible colors for the level step, the resulting paths, which we will call -colored Motzkin paths, are counted by the Catalan numbers with generating function . In fact, the th entry of the Bell subgroup Riordan matrix , from Example 9 is the number of these -colored Motzkin paths of length having terminal height . Recall that a formation rule for is . Another lattice path interpretation of the array is the number of Dyck paths of length that go from to .

On the other hand, ternary paths of length that go from to are counted by the Bell subgroup matrix where is the for the ternary numbers. The formation rule for is . Given this formation rule, it is not hard to see that the th entry of also counts paths from to that never go below the -axis and use the following 8 types of steps: , , , , , , . There is a natural bijection between these paths and the aforementioned ternary paths.

More generally, the Bell subgroup matrix whose formation rule is determined by the th row of Pascal’s triangle will count lattice paths of length that go from to and use up steps of the form and down steps of the form that never go below the -axis. And furthermore, this same matrix will count paths from to that never go below the -axis and use possible steps, each of the form where for some between and . Given that there are natural bijections between these two different path interpretations, it would be interesting to explore through the Riordan matrix method how certain statistics may translate between these lattice path interpretations and how the resulting statistical distributions compare.

As a final illustration of the vast connections between lattice path enumeration and Riordan matrices, we present two open problems related to higher-dimensional lattice paths and generalized Riordan arrays.

Consider the generalized Riordan matrix

where is the RNA . Note that and are special cases where and , and for , we have

Interesting open problems are to find lattice path interpretations of the generalized Riordan matrix for . In Figure 4, there is a nice example of an infinite two-dimensional array made up of products of Riordan matrices that involve Pascal’s triangle and the “aerated” Aigner-Catalan matrix . The infinite array denoted by constructed in N2 is a triple product of Riordan matrices where . Some interesting matrices that appear in are the Pascal, Catalan, Motzkin, hexagonal (Hex), and directed animal arrays. Solutions of certain higher-dimensional lattice path counting problems are known for the first two columns of this infinite two-dimensional array, but less is known about the remaining columns. Thus, is of combinatorial interest. See N2 for more information on Riordan matrices and generalized lattice paths.

Figure 4.

Each entry is a product of Riordan matrices , where is Pascal’s triangle, is a special Shapiro-Catalan array and is the lower-triangular array whose entries equal .

is the Riordan matrix

where

and is the Catalan . Thus, is a generalized Catalan Riordan matrix. See Figure 4 for the first few entries of . Surprisingly, by moving down the leftmost column of a solution of Sands’s problem is found in N2. In addition, Sands’s problem was extended to higher dimensions in for where there are countably many step directions and the paths never pass below the hyperplane . The height of each higher-dimensional path corresponds to the value of the endpoint of the path. The step sets of the higher-dimensional paths are defined in N2. Another subclass of paths called generalized (or partial-t) Motzkin walks are also counted by the entries of the leftmost column. In the same paper N2, higher-dimensional path results were also obtained by moving down the first column of . By moving down the first column, surprisingly, a more restrictive subset of Sands type paths called power walks are obtained. These paths are generalized to higher dimensions and a Motzkin analog is given N2. An interesting open problem is to find a higher-dimensional lattice path interpretation of the matrix entries of the second column of . There is not much known about for column entries for .

Acknowledgment

The authors would like to thank the associate editor and anonymous referees for useful comments that improved this article.

References

[A1]
Martin Aigner, Catalan-like numbers and determinants, J. Combin. Theory Ser. A 87 (1999), no. 1, 33–51, DOI 10.1006/jcta.1998.2945. MR1698277Show rawAMSref\bib{MR1698277}{article}{ author={Aigner, Martin}, title={Catalan-like numbers and determinants}, journal={J. Combin. Theory Ser. A}, volume={87}, date={1999}, number={1}, pages={33--51}, issn={0097-3165}, review={\MR {1698277}}, doi={10.1006/jcta.1998.2945}, } Close amsref.
[A2]
Mohammad K. Azarian, Fibonacci identities as binomial sums, Int. J. Contemp. Math. Sci. 7 (2012), no. 37-40, 1871–1875. MR2959001Show rawAMSref\bib{MR2959001}{article}{ author={Azarian, Mohammad K.}, title={Fibonacci identities as binomial sums}, journal={Int. J. Contemp. Math. Sci.}, volume={7}, date={2012}, number={37-40}, pages={1871--1875}, issn={1312-7586}, review={\MR {2959001}}, } Close amsref.
[B]
Paul Barry, Exponential Riordan arrays and permutation enumeration, J. Integer Seq. 13 (2010), no. 9, Article 10.9.1, 16. MR2746249Show rawAMSref\bib{MR2746249}{article}{ author={Barry, Paul}, title={Exponential Riordan arrays and permutation enumeration}, journal={J. Integer Seq.}, volume={13}, date={2010}, number={9}, pages={Article 10.9.1, 16}, review={\MR {2746249}}, } Close amsref.
[4]
Paul Barry, Riordan arrays: a primer, Kildare, Ireland: Logic Press, 2016.
[CM]
Naiomi T. Cameron and Jillian E. McLeod, Returns and hills on generalized Dyck paths, J. Integer Seq. 19 (2016), no. 6, Article 16.6.1, 28, DOI 10.9734/bjmcs/2016/30398. MR3546615Show rawAMSref\bib{MR3546615}{article}{ author={Cameron, Naiomi T.}, author={McLeod, Jillian E.}, title={Returns and hills on generalized Dyck paths}, journal={J. Integer Seq.}, volume={19}, date={2016}, number={6}, pages={Article 16.6.1, 28}, review={\MR {3546615}}, doi={10.9734/bjmcs/2016/30398}, } Close amsref.
[H]
Katherine Humphreys, A history and a survey of lattice path enumeration, J. Statist. Plann. Inference 140 (2010), no. 8, 2237–2254, DOI 10.1016/j.jspi.2010.01.020. MR2609483Show rawAMSref\bib{MR2609483}{article}{ author={Humphreys, Katherine}, title={A history and a survey of lattice path enumeration}, journal={J. Statist. Plann. Inference}, volume={140}, date={2010}, number={8}, pages={2237--2254}, issn={0378-3758}, review={\MR {2609483}}, doi={10.1016/j.jspi.2010.01.020}, } Close amsref.
[J]
Eri Jabotinsky, Representation of functions by matrices. Application to Faber polynomials, Proc. Amer. Math. Soc. 4 (1953), 546–553, DOI 10.2307/2032522. MR59359Show rawAMSref\bib{MR59359}{article}{ author={Jabotinsky, Eri}, title={Representation of functions by matrices. Application to Faber polynomials}, journal={Proc. Amer. Math. Soc.}, volume={4}, date={1953}, pages={546--553}, issn={0002-9939}, review={\MR {59359}}, doi={10.2307/2032522}, } Close amsref.
[JLN]
Candice Jean-Louis and Asamoah Nkwanta, Some algebraic structure of the Riordan group, Linear Algebra Appl. 438 (2013), no. 5, 2018–2035, DOI 10.1016/j.laa.2012.10.027. MR3005272Show rawAMSref\bib{MR3005272}{article}{ author={Jean-Louis, Candice}, author={Nkwanta, Asamoah}, title={Some algebraic structure of the Riordan group}, journal={Linear Algebra Appl.}, volume={438}, date={2013}, number={5}, pages={2018--2035}, issn={0024-3795}, review={\MR {3005272}}, doi={10.1016/j.laa.2012.10.027}, } Close amsref.
[K]
Christian Krattenthaler, Lattice path enumeration, Handbook of enumerative combinatorics, Discrete Math. Appl. (Boca Raton), CRC Press, Boca Raton, FL, 2015, pp. 589–678. MR3409351Show rawAMSref\bib{MR3409351}{article}{ author={Krattenthaler, Christian}, title={Lattice path enumeration}, conference={ title={Handbook of enumerative combinatorics}, }, book={ series={Discrete Math. Appl. (Boca Raton)}, publisher={CRC Press, Boca Raton, FL}, }, date={2015}, pages={589--678}, review={\MR {3409351}}, } Close amsref.
[MRSV]
Donatella Merlini, Douglas G. Rogers, Renzo Sprugnoli, and M. Cecilia Verri, On some alternative characterizations of Riordan arrays, Canad. J. Math. 49 (1997), no. 2, 301–320, DOI 10.4153/CJM-1997-015-x. MR1447493Show rawAMSref\bib{MR1447493}{article}{ author={Merlini, Donatella}, author={Rogers, Douglas G.}, author={Sprugnoli, Renzo}, author={Verri, M. Cecilia}, title={On some alternative characterizations of Riordan arrays}, journal={Canad. J. Math.}, volume={49}, date={1997}, number={2}, pages={301--320}, issn={0008-414X}, review={\MR {1447493}}, doi={10.4153/CJM-1997-015-x}, } Close amsref.
[N1]
Asamoah Nkwanta, Lattice paths and RNA secondary structures, African Americans in mathematics (Piscataway, NJ, 1996), DIMACS Ser. Discrete Math. Theoret. Comput. Sci., vol. 34, Amer. Math. Soc., Providence, RI, 1997, pp. 137–147. MR1482263Show rawAMSref\bib{MR1482263}{article}{ author={Nkwanta, Asamoah}, title={Lattice paths and RNA secondary structures}, conference={ title={African Americans in mathematics}, address={Piscataway, NJ}, date={1996}, }, book={ series={DIMACS Ser. Discrete Math. Theoret. Comput. Sci.}, volume={34}, publisher={Amer. Math. Soc., Providence, RI}, }, date={1997}, pages={137--147}, review={\MR {1482263}}, } Close amsref.
[N2]
Asamoah Nkwanta, Riordan matrices and higher-dimensional lattice walks, J. Statist. Plann. Inference 140 (2010), no. 8, 2321–2334, DOI 10.1016/j.jspi.2010.01.027. MR2609490Show rawAMSref\bib{MR2609490}{article}{ author={Nkwanta, Asamoah}, title={Riordan matrices and higher-dimensional lattice walks}, journal={J. Statist. Plann. Inference}, volume={140}, date={2010}, number={8}, pages={2321--2334}, issn={0378-3758}, review={\MR {2609490}}, doi={10.1016/j.jspi.2010.01.027}, } Close amsref.
[R]
D. G. Rogers, Pascal triangles, Catalan numbers and renewal arrays, Discrete Math. 22 (1978), no. 3, 301–310, DOI 10.1016/0012-365X(78)90063-8. MR522725Show rawAMSref\bib{MR522725}{article}{ author={Rogers, D. G.}, title={Pascal triangles, Catalan numbers and renewal arrays}, journal={Discrete Math.}, volume={22}, date={1978}, number={3}, pages={301--310}, issn={0012-365X}, review={\MR {522725}}, doi={10.1016/0012-365X(78)90063-8}, } Close amsref.
[S]
Issai Schur, On Faber polynomials, Amer. J. Math. 67 (1945), 33–41, DOI 10.2307/2371913. MR11740Show rawAMSref\bib{MR11740}{article}{ author={Schur, Issai}, title={On Faber polynomials}, journal={Amer. J. Math.}, volume={67}, date={1945}, pages={33--41}, issn={0002-9327}, review={\MR {11740}}, doi={10.2307/2371913}, } Close amsref.
[SSB]
Louis Shapiro, Renzo Sprugnoli, Paul Barry, Gi-Sang Cheon, Tian-Xiao He, Donatella Merlini, and Weiping Wang, The Riordan group and applications, Springer Monographs in Mathematics, Springer, Cham, [2022] ©2022. With a foreword by Richard Stanley, DOI 10.1007/978-3-030-94151-2. MR4424807Show rawAMSref\bib{MR4424807}{book}{ author={Shapiro, Louis}, author={Sprugnoli, Renzo}, author={Barry, Paul}, author={Cheon, Gi-Sang}, author={He, Tian-Xiao}, author={Merlini, Donatella}, author={Wang, Weiping}, title={The Riordan group and applications}, series={Springer Monographs in Mathematics}, note={With a foreword by Richard Stanley}, publisher={Springer, Cham}, date={[2022] \copyright 2022}, pages={xxii+362}, isbn={978-3-030-94150-5}, isbn={978-3-030-94151-2}, review={\MR {4424807}}, doi={10.1007/978-3-030-94151-2}, } Close amsref.
[SGWW]
Louis W. Shapiro, Seyoum Getu, Wen Jin Woan, and Leon C. Woodson, The Riordan group, Discrete Appl. Math. 34 (1991), no. 1-3, 229–239, DOI 10.1016/0166-218X(91)90088-E. Combinatorics and theoretical computer science (Washington, DC, 1989). MR1137996Show rawAMSref\bib{MR1137996}{article}{ author={Shapiro, Louis W.}, author={Getu, Seyoum}, author={Woan, Wen Jin}, author={Woodson, Leon C.}, title={The Riordan group}, note={Combinatorics and theoretical computer science (Washington, DC, 1989)}, journal={Discrete Appl. Math.}, volume={34}, date={1991}, number={1-3}, pages={229--239}, issn={0166-218X}, review={\MR {1137996}}, doi={10.1016/0166-218X(91)90088-E}, } Close amsref.
[S1]
Neil J. A. Sloane, The on-line encyclopedia of integer sequences, Notices Amer. Math. Soc. 65 (2018), no. 9, 1062–1074. MR3822822Show rawAMSref\bib{oeis}{article}{ author={Sloane, Neil J. A.}, title={The on-line encyclopedia of integer sequences}, journal={Notices Amer. Math. Soc.}, volume={65}, date={2018}, number={9}, pages={1062--1074}, issn={0002-9920}, review={\MR {3822822}}, } Close amsref.
[S2]
Richard P. Stanley, Enumerative combinatorics. Vol. 2, Cambridge Studies in Advanced Mathematics, vol. 62, Cambridge University Press, Cambridge, 1999. With a foreword by Gian-Carlo Rota and appendix 1 by Sergey Fomin, DOI 10.1017/CBO9780511609589. MR1676282Show rawAMSref\bib{MR1676282}{book}{ author={Stanley, Richard P.}, title={Enumerative combinatorics. Vol. 2}, series={Cambridge Studies in Advanced Mathematics}, volume={62}, note={With a foreword by Gian-Carlo Rota and appendix 1 by Sergey Fomin}, publisher={Cambridge University Press, Cambridge}, date={1999}, pages={xii+581}, isbn={0-521-56069-1}, isbn={0-521-78987-7}, review={\MR {1676282}}, doi={10.1017/CBO9780511609589}, } Close amsref.
[W1]
Michael S. Waterman, Secondary structure of single-stranded nucleic acids, Studies in foundations and combinatorics, Adv. in Math. Suppl. Stud., vol. 1, Academic Press, New York-London, 1978, pp. 167–212. MR520559Show rawAMSref\bib{MR520559}{article}{ author={Waterman, Michael S.}, title={Secondary structure of single-stranded nucleic acids}, conference={ title={Studies in foundations and combinatorics}, }, book={ series={Adv. in Math. Suppl. Stud.}, volume={1}, publisher={Academic Press, New York-London}, }, date={1978}, pages={167--212}, review={\MR {520559}}, } Close amsref.
[W2]
Herbert S. Wilf, generatingfunctionology, 2nd ed., Academic Press, Inc., Boston, MA, 1994. MR1277813Show rawAMSref\bib{MR1277813}{book}{ author={Wilf, Herbert S.}, title={generatingfunctionology}, edition={2}, publisher={Academic Press, Inc., Boston, MA}, date={1994}, pages={x+228}, isbn={0-12-751956-4}, review={\MR {1277813}}, } Close amsref.

Credits

Opening image is courtesy of shaunl via Getty.

Figures 1, 2, 3, and 4 are courtesy of Naiomi Cameron.

Photo of Naiomi Cameron is courtesy of Aaron Fagerstrom.

Photo of Asamoah Nkwanta is courtesy of Charlita Woodruff-White.