2022-03-01 13:04:09 +01:00

1.2 KiB

layout
default

Function catalan #

The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0

Syntax #

math.catalan(n)

Parameters #

Parameter Type Description
n Number | BigNumber nth Catalan number

Returns #

Type Description
Number | BigNumber Cn(n)

Throws #

Type Description

Examples #

math.catalan(3) // returns 5
math.catalan(8) // returns 1430

See also #

bellNumbers