Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Discrete Mathematics > Combinatorial Functions >
Mathematica > Mathematics and Algorithms > Mathematical Functions > Integer Functions > Combinatorial Functions >

CatalanNumber

CatalanNumber[n]
gives the n^(th) Catalan number C_n.
  • Catalan numbers are integers, and appear in various tree enumeration problems.
The first 10 Catalan numbers:
The first 10 Catalan numbers:
In[1]:=
Click for copyable input
Out[1]=
Evaluate for large arguments:
CatalanNumber threads element-wise over lists:
TraditionalForm typesetting:
Compute the number of different ways to parenthesize an expression:
Distribute over lists in AngleBracket:
Use the pattern matcher to repeatedly split the list into two parts in all possible ways:
The number of ways to parenthesize the expression aCirclePlusbCirclePluscCirclePlusd:
Check:
The generating function for Catalan numbers:
The only odd Catalan numbers are those of the form CatalanNumber[2k-1]:
Determinants of Hankel matrices made out of Catalan numbers:
Compare to Fibonacci numbers:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team