Sachindrck / hactoberfest_contribution_2022

Create four pull request and win hacktoberfest swags!
GNU General Public License v3.0
25 stars 104 forks source link

Program for nth Catalan Number #260

Open Sachindrck opened 2 years ago

Sachindrck commented 2 years ago

Catalan numbers are defined as mathematical sequence that consists of positive integers, which can be used to find the number of possibilities of various combinations.

The nth term in the sequence denoted Cn, is found in the following formula: \frac{(2n)!}{(n + 1)! n!)}

The first few Catalan numbers for n = 0, 1, 2, 3, … are : 1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, …