https://www.geeksforgeeks.org/program-nth-catalan-number/?ref=lbp

Catalan Number

The Catalan number equals the number of valid parenthesis expressions that consist of left parentheses and right parentheses.

Catalan numbers can be calculated using the formula: Catalan numbers can also be calculated using binomial coefficients: