TOPICS
Search

Catalan Number


CatalanPolygons

The Catalan numbers C_n, indexed by nonnegative integers n, arise in tree enumeration problems of the type, "In how many ways can a regular n-gon be divided into n-2 triangles if different orientations are counted separately?" (Euler's polygon division problem). For n>=3, the solution is the Catalan number C_(n-2) (Pólya 1956; Dörrie 1965; Honsberger 1973; Borwein and Bailey 2003, pp. 21-22), as graphically illustrated above (Dickau).

Catalan numbers are commonly denoted C_n (Graham et al. 1994; Stanley 1999b, p. 219; Pemmaraju and Skiena 2003, p. 169; this work) or c(n) (Goulden and Jackson 1983, p. 111), and less commonly u_n (van Lint and Wilson 1992, p. 136).

Catalan numbers are implemented in the Wolfram Language as CatalanNumber[n].

The first few Catalan numbers for n=1, 2, ... are 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, ... (OEIS A000108).

CatalanNumber

Explicit formulas for C_n include

C_n=1/(n+1)(2n; n)
(1)
=((2n)!)/((n+1)!n!)
(2)
=(2^n(2n-1)!!)/((n+1)!)
(3)
=(4^nGamma(n+1/2))/(sqrt(pi)Gamma(n+2))
(4)
=(-1)^n2^(2n+1)(1/2; n+1)
(5)
=1/n(2n; n-1)
(6)
=_2F_1(1-n,-n;2;1),
(7)

for n>=0, except that the expression containing 1/n requires n>=1, where (n; k) is a binomial coefficient, n! is a factorial, n!! is a double factorial, Gamma(z) is the gamma function, and _2F_1(a,b;c;z) is a hypergeometric function.

CatalanNumberReIm
CatalanNumberContours

The Catalan numbers may be generalized to the complex plane, as illustrated above.

Sums giving C_n include

C_n=sum_(k=0)^(n-1)C_kC_(n-k-1)
(8)
=sum_(k=0)^(n-1)C_k2^(n-2k-1)(n-1; 2k)
(9)
=1/nsum_(k=0)^(n-1)C_(n-k-1)(2k+1; k+1)
(10)
=sum_(k=0)^(n)(-1)^k2^(n-k)(n; k)(k; |_k/2_|)
(11)
=sum_(k=0)^(|_n/2_|)[(n-2k+1)/(n-k+1)(n; n-k)]^2,
(12)

where the first three sums require n>=1, the last two also hold at n=0, and |_x_| is the floor function. A product for C_n is given by

 C_n=1/((n+1)!)product_(k=1)^n(4k-2).
(13)

The Catalan numbers are the inverse binomial transform of the Riordan numbers.

Sums involving C_n include the generating function

2/(1+sqrt(1-4x))=sum_(n=0)^(infty)C_nx^n
(14)
=1+x+2x^2+5x^3+14x^4+...
(15)

for |x|<=1/4 (OEIS A000108), and the exponential generating function

e^(2x)[I_0(2x)-I_1(2x)]=sum_(n=0)^(infty)C_n(x^n)/(n!)
(16)
=1+x+x^2+5/6x^3+7/(12)x^4+7/(20)x^5+...
(17)

for every complex number x (OEIS A144186 and A144187), where I_n(x) is a modified Bessel function of the first kind, as well as

sum_(n=1)^(infty)(C_n)/(4^n)=1
(18)
sum_(n=0)^(infty)(C_nx^(2n))/((2n)!)=(I_1(2x))/x,
(19)

where the quotient in the second identity has limiting value 1 at x=0. That identity holds for every complex number x.

The asymptotic form for the Catalan numbers is

 C_x∼(4^x)/(sqrt(pi))(x^(-3/2)-9/8x^(-5/2)+(145)/(128)x^(-7/2)+...)
(20)

as the real number x->infty (Vardi 1991, Graham et al. 1994).

The numbers of decimal digits in C_(10^n) for n=0, 1, ... are 1, 5, 57, 598, 6015, 60199, 602051, 6020590, ... (OEIS A114466). The ratios of these digit counts to 10^n converge to log_(10)4=0.602059991... (OEIS A114493).

A recurrence relation for C_n is obtained from

 (C_(n+1))/(C_n)=(2(2n+1))/(n+2),
(21)

so

 C_(n+1)=(2(2n+1))/(n+2)C_n.
(22)

Segner's recurrence formula (Segner 1761) gives the solution to Euler's polygon division problem

 E_n=E_2E_(n-1)+E_3E_(n-2)+...+E_(n-1)E_2.
(23)

With E_2=1 and the recurrence applied for n>=3, the solution is E_n=C_(n-2) for n>=2.

From the definition of the Catalan number, every prime divisor of C_n is less than 2n. On the other hand, C_n>2n-1 for n>=4. Therefore, C_3 is the largest Catalan prime, making C_2=2 and C_3=5 the only Catalan primes. (Of course, much more than this can be said about the factorization of C_n.)

The only odd Catalan numbers are those of the form C_(2^k-1) for integer k>=0. The first few are therefore 1, 1, 5, 429, 9694845, 14544636039226909, ... (OEIS A038003).

For integer k>=1, the odd Catalan number C_(2^k-1) ends in 5 unless the quinary (base 5) expansion of 2^k-1 uses only the digits 0, 1, and 2. Its first few final digits, starting at k=1, are 1, 5, 9, 5, 9, 5, 9, 7, 5, 5, 5, 5, 5, ... (OEIS A094389); the sequence also has initial value 1 at k=0. For 1<=k<=10^5, the exceptions to a final digit of 5 occur only at k=1, 3, 5, 7, and 8.

CatalanTrees

The Catalan number C_(n-1) counts the binary bracketings of n letters, for n>=1 (Catalan's problem). For n>=0, C_n counts Dyck paths with n upsteps and n downsteps, ballot problem sequences with n votes for each candidate in which the first candidate never trails, full ordered binary trees with n internal vertices, rooted plane trees with n edges, and noncrossing handshakes between n pairs of people at fixed cyclic positions around a round table. It also counts formal bracketings of an exponential expression with n+1 ordered operands and n exponentiation signs. Equivalently, these objects include mountains with n upstrokes and n downstrokes which never fall below their starting level, and trivalent planted planar trees with n internal trivalent vertices and n+1 leaves other than the plant.

For n>=1, C_n also counts the admissible diagonals across all positive-integral multiplicative frieze patterns with n+1 rows, including the two bounding rows of 1s, with horizontal position and direction fixed (Conway and Guy 1996, pp. 96-106; Stanley 1999b, pp. 231 and 269). The number of abstract flexagon configurations of order n in the Oakley-Wisner model is C_(n-1), for n>=2: these are ordered pairs of pats of total degree n, before configurations related by pinches or rotations are identified (Oakley and Wisner 1957).

A generalization of the Catalan numbers is defined by

_pd_k=1/k(pk; k-1)
(24)
=1/((p-1)k+1)(pk; k)
(25)

for integers p>=2 and k>=1, with _pd_0=1 (Klarner 1970, Hilton and Pedersen 1991). The usual Catalan numbers C_k=_2d_k are a special case with p=2. _pd_k gives the number of full ordered p-ary trees with k internal nodes, the number of ways of associating k applications of a given p-ary operator, the number of ways of dividing a convex polygon with (p-1)k+2 sides into k interior-disjoint (p+1)-gons with nonintersecting polygon diagonals, and the number of p-good paths from (0, -1) to (k,(p-1)k-1) (Hilton and Pedersen 1991).

A further generalization is obtained as follows. Let p be an integer >1, let P_k=(k,(p-1)k-1) with k>=0, and let q be an integer with q<=p-1. Then define _pd_(q0)=1 and let _pd_(qk) be the number of p-good paths from (1, q-1) to P_k (Hilton and Pedersen 1991). For k>=1, formulas for _pd_(qk) include the generalized Jonah formula

 (n-q; k-1)=sum_(i=1)^k_pd_(qi)(n-pi; k-i)
(26)

and the explicit formula

 _pd_(qk)=(p-q)/(pk-q)(pk-q; k-1).
(27)

A recurrence relation is given by

 _pd_(qk)=sum_(i,j)_pd_(p-r,i)_pd_(q+r,j),
(28)

where r is a fixed positive integer with q<p-r, k>=1, and the sum is over positive integers i,j with i+j=k+1 (Hilton and Pedersen 1991).


See also

Ballot Problem, Binary Bracketing, Binary Tree, Catalan's Problem, Catalan's Triangle, Central Binomial Coefficient, Delannoy Number, Dyck Path, Euler's Polygon Division Problem, Flexagon, Frieze Pattern, Motzkin Number, p-Good Path, Parking Function, Planted Planar Tree, Riordan Number, Schröder Number, Staircase Polygon, Super Catalan Number

Portions of this entry contributed by Richard Stanley

Explore with Wolfram|Alpha

References

Alter, R. "Some Remarks and Results on Catalan Numbers." Proc. 2nd Louisiana Conf. Comb., Graph Th., and Comput., 109-132, 1971.Alter, R. and Kubota, K. K. "Prime and Prime Power Divisibility of Catalan Numbers." J. Combin. Th. A 15, 243-256, 1973.Borwein, J. and Bailey, D. Mathematics by Experiment: Plausible Reasoning in the 21st Century. Wellesley, MA: A K Peters, 2003.Brualdi, R. A. Introductory Combinatorics, 4th ed. Upper Saddle River, NJ: Prentice Hall, 2004.Campbell, D. "The Computation of Catalan Numbers." Math. Mag. 57, 195-208, 1984.Chorneyko, I. Z. and Mohanty, S. G. "On the Enumeration of Certain Sets of Planted Trees." J. Combin. Th. Ser. B 18, 209-221, 1975.Chu, W. "A New Combinatorial Interpretation for Generalized Catalan Numbers." Disc. Math. 65, 91-94, 1987.Conway, J. H. and Guy, R. K. In The Book of Numbers. New York: Springer-Verlag, pp. 96-106, 1996.Dershowitz, N. and Zaks, S. "Enumeration of Ordered Trees." Disc. Math. 31, 9-28, 1980.Dickau, R. M. "Catalan Numbers." https://www.robertdickau.com/catalan.html.Dörrie, H. "Euler's Problem of Polygon Division." §7 in 100 Great Problems of Elementary Mathematics: Their History and Solutions. New York: Dover, pp. 21-27, 1965.Eggleton, R. B. and Guy, R. K. "Catalan Strikes Again! How Likely Is a Function to Be Convex?" Math. Mag. 61, 211-219, 1988.Gardner, M. "Catalan Numbers: An Integer Sequence that Materializes in Unexpected Places." Sci. Amer. 234, 120-125, June 1976.Gardner, M. "Catalan Numbers." Ch. 20 in Time Travel and Other Mathematical Bewilderments. New York: W. H. Freeman, pp. 253-266, 1988.Gould, H. W. Bell & Catalan Numbers: Research Bibliography of Two Special Number Sequences, 6th ed. Morgantown, WV: Math Monongliae, 1985.Goulden, I. P. and Jackson, D. M. Combinatorial Enumeration. New York: Wiley, 1983.Graham, R. L.; Knuth, D. E.; and Patashnik, O. Exercise 9.8 in Concrete Mathematics: A Foundation for Computer Science, 2nd ed. Reading, MA: Addison-Wesley, 1994.Guy, R. K. "Dissecting a Polygon Into Triangles." Bull. Malayan Math. Soc. 5, 57-60, 1958.Hilton, P. and Pedersen, J. "Catalan Numbers, Their Generalization, and Their Uses." Math. Int. 13, 64-75, 1991.Honsberger, R. Mathematical Gems I. Washington, DC: Math. Assoc. Amer., pp. 130-134, 1973.Honsberger, R. Mathematical Gems III. Washington, DC: Math. Assoc. Amer., pp. 146-150, 1985.Klarner, D. A. "Correspondences Between Plane Trees and Binary Sequences." J. Comb. Th. 9, 401-411, 1970.Mays, M. E. and Wojciechowski, J. "A Determinant Property of Catalan Numbers." Disc. Math. 211, 125-133, 2000.Numberphile. "Catalan Numbers." Jan. 29, 2024. https://www.youtube.com/watch?v=fczN0BCx0xs.Oakley, C. O. and Wisner, R. J. "Flexagons." Amer. Math. Monthly 64, 143-154, 1957. https://doi.org/10.1080/00029890.1957.11988951.Pemmaraju, S. and Skiena, S. Computational Discrete Mathematics: Combinatorics and Graph Theory with Mathematica. Cambridge, England: Cambridge University Press, 2003.Pólya, G. "On Picture-Writing." Amer. Math. Monthly 63, 689-697, 1956.Rogers, D. G. "Pascal Triangles, Catalan Numbers and Renewal Arrays." Disc. Math. 22, 301-310, 1978.Sands, A. D. "On Generalized Catalan Numbers." Disc. Math. 21, 218-221, 1978.Segner, J. A. "Enumeratio modorum quibus figurae planae rectilineae per diagonales dividuntur in triangula." Novi Comment. Acad. Sci. Imp. Petropol. 7, 203-210, 1761. https://www.math.ucla.edu/~pak/lectures/Cat/Segner1.pdf.Singmaster, D. "An Elementary Evaluation of the Catalan Numbers." Amer. Math. Monthly 85, 366-368, 1978.Sloane, N. J. A. A Handbook of Integer Sequences. Boston, MA: Academic Press, pp. 18-20, 1973.Sloane, N. J. A. Sequences A000108/M1459, A038003, A094389, A114466, A114493, A144186, and A144187 in "The On-Line Encyclopedia of Integer Sequences."Sloane, N. J. A. and Plouffe, S. Figure M1459 in The Encyclopedia of Integer Sequences. San Diego, CA: Academic Press, 1995.Stanley, R. P. Enumerative Combinatorics, Vol. 1. Cambridge, England: Cambridge University Press, 1999a.Stanley, R. P. Enumerative Combinatorics, Vol. 2. Cambridge, England: Cambridge University Press, pp. 219-231 and 269, 1999b.Stanley, R. P. "Catalan Addendum." 19 Nov. 2003. https://math.mit.edu/~rstan/ec/catadd.pdf.van Lint, J. H. and Wilson, R. M. A Course in Combinatorics. New York: Cambridge University Press, 1992.Vardi, I. Computational Recreations in Mathematica. Redwood City, CA: Addison-Wesley, pp. 187-188 and 198-199, 1991.Wells, D. G. The Penguin Dictionary of Curious and Interesting Numbers. London, England: Penguin, pp. 121-122, 1986.

Referenced on Wolfram|Alpha

Catalan Number

Cite this as:

Weisstein, Eric W., with contributions by Richard Stanley. "Catalan Number." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/CatalanNumber.html

Subject classifications