![]() |
With the help of sympy.catalan() method, we can find the Catalan number in SymPy. It is denoted as –
![]() Syntax: catalan(n) Parameter: n – It denotes the nth Catalan number. Returns: Returns the nth Catalan number.Example #1:
Value of n = 4 Value of nth catalan number : 14Example #2:
Value of n = 15 Value of nth catalan number : 9694845 |
Reffered: https://www.geeksforgeeks.org
Python |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 11 |