Description Usage Arguments Value References Examples
The super-Catalan numbers, also known as the Schroeder-Hipparchus numbers, or little Schroeder numbers, count the number of lattice paths (path composed of a connected horizontal and vertical line segment) with diagonal steps from n, n to 0, 0 without crossing the diagonal line. The super-Catalan numbers are given by the recurrence relation:
S(n) = \frac{3(2n - 3) \space S(n-1) - (n-3) \space S(n-2)}{n}
1 | supercatalan(n)
|
n |
Specifies the length of the returned super-Catalan number sequence |
vector of length n
Weisstein, Eric W. "Lattice Path." From MathWorld–A Wolfram Web Resource. http://mathworld.wolfram.com/LatticePath.html Weisstein, Eric W. "Super Catalan Number." From MathWorld–A Wolfram Web Resource. http://mathworld.wolfram.com/SuperCatalanNumber.html
1 | supercatalan(5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.