Mathematica > Mathematics and Algorithms > Discrete Mathematics > Combinatorial Functions > CatalanNumber >
Mathematica > Mathematics and Algorithms > Mathematical Functions > Integer Functions > Combinatorial Functions > CatalanNumber >

CatalanNumber

CatalanNumber[n]
gives the n^(th) Catalan number .
  • 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 :
Check:
The generating function for Catalan numbers:
The only odd Catalan numbers are those of the form CatalanNumber:
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
Format:   HTML  |  CDF