Catalan numbers #
The Catalan numbers, using Mathlib's definition.
Equations
Instances For
OEIS sequence offset
Equations
Instances For
The Catalan numbers, defined using the central binomial coefficient.
Equations
- Sequence.Catalan₁ n = n.centralBinom / (n + 1)
Instances For
OEIS sequence offset
Equations
Instances For
Catalan numbers defined through a translation of the Python algorithm from the OEIS entry.
Equations
- Sequence.Catalan₂ n = (Sequence.Step^[n] (0, 1)).2
Instances For
OEIS sequence offset