54 Combinatorics of Compositions and Words
in which the denominator has a term which is a fraction, which in turn has
another term that is a fraction, etc. Early traces of continued fractions appear
as far back as 306 b.c. Other records have been found that show that the
Indian mathematician Aryabhata (475-550) used a continued fraction to solve
a linear equation [114, pp. 28-32]. However, he did not develop a general
method. Continued fractions were only used in specific examples for more
than 1, 000 years, and the use of continued fractions was limited to the area
of number theory. Since the beginning of the twentieth century, continued
fractions have become more common in various other areas, for example, enu-
merative combinatorics. The first connection between the pattern avoidance
problem (which will be discussed in Chapter 4) and continued fractions was
discovered by Robertson, Wilf, and Zeilberger [174], who found the ordinary
generating function for the number of 132-avoiding permutations in S
n
with
a prescribed number of occurrences of the pattern 123. Recently, connections
between generating functions for the enumeration of restricted permutations
or words and continued fractions have become more numerous.
Definition 2.61 A continued fraction is an expression of the form
a
0
+
b
1
a
1
+
b
2
a
2
+
b
3
a
3
+ ···
,
where the letters a
0
,a
1
,b
1
,a
2
,b
2
,...denote independent variables, and may be
interpreted as real or complex numbers, functions, etc. If b
i
=1for all i,then
the expression is called a simple continued fraction. If the expression contains
finitely many terms, then it is called a finite continued fraction; otherwise, it
is called an infinite continued fraction.Thenumbersa
i
are called the partial
quotients. If the expression is truncated after k partial quotients, then the
value of the resulting expression is called the k-th convergent of the continued
fraction and we will refer to the continued fraction as having k levels.Dueto
the complexity of the expression above, mathematicians have adopted several
more convenient notations for simple continued fractions, the most common
being [a
0
,a
1
,...] for the infinite simple continued fraction and [a
0
,a
1
,...,a
k
]
for the finite simple continued fraction.
We will now show that the generating function of the Catalan numbers can
be expressed as a continued fraction.
Example 2.62 Let
f(x)=
1
1 −
x
1 −
x
1 −
x
1 −···
,
© 2010 by Taylor and Francis Group, LLC