Skip to main content

Catalan Number Calculator – C(n) Counts

Quick answer

Catalan numbers count nested structures: C₅=14 from C(n)=C(2n,n)/(n+1).

  • Series 1, 1, 2, 5, 14, 42… — polygons, trees and brackets.

Figures are estimates from this calculator’s standard formula — adjust the inputs in the tool below for your exact number.

How the Catalan Number Calculator Works

C(n) = C(2n, n)/(n + 1) = (2n)!/(n!(n+1)!)

Catalan numbers count recursively nested shapes: balanced bracketings, binary trees, triangulations, monotonic lattice paths. The sequence starts 1, 1, 2, 5, 14, 42, 132, … so C₅ = 14 — the number of triangulations of a convex heptagon (n+2 sides) and the number of ways to fully parenthesize six factors (n+1 of them). The closed form divides a central binomial coefficient by n+1: C(5) = C(10,5)/6 = 252/6 = 14. The calculator prints the factorial substitution, the binomial intermediate, and the recurrence C(n+1) = Σ C(i)C(n−i), verifying 42 = 1·14 + 1·5 + 2·2 + 5·1 + 14·1. Lattice paths that never cross the diagonal are the classic visualization: C(4) = 14 paths from (0,0) to (4,4) staying on one side of y = x.

  1. 1

    Enter n

    The Catalan index, e.g. 5

  2. 2

    Compute the central binomial

    C(2n, n) = C(10,5) = 252 is shown first

  3. 3

    Divide by n+1

    252/6 = 14 = C₅

  4. 4

    Browse interpretations

    Trees, brackets, triangulations and paths counted by your C(n)

Use Cases

Computer Science

Shape counts for parse trees and valid bracket sequences

Combinatorics Class

Triangulations of an n+2-gon number C(n)

Algorithm Analysis

Many recursive structures grow like 4ⁿ/n^1.5 — Catalan growth

Tips

  • 1

    C(n) = C(2n,n)/(n+1) — one division from a binomial coefficient

  • 2

    Sequence: 1, 1, 2, 5, 14, 42, 132, 429, …

  • 3

    Catalans grow ≈ 4ⁿ, slower than the central binomial itself

Common Mistakes

  • Forgetting the n+1 divisor and reporting C(10,5) = 252 for n = 5

  • Indexing off by one: a polygon with n+2 sides uses C(n)

  • Confusing Catalan numbers with central binomial coefficients

  • Assuming C(0) = 0; it is 1 by convention

FAQs

What is the 5th Catalan number?

C₅ = C(10,5)/(5+1) = 252/6 = 14.

What do Catalan numbers count?

Nested structures: 14 ways to triangulate a heptagon (n=5), 14 valid bracketings of 6 symbols, 14 binary trees with 5 nodes.

What are the first Catalan numbers?

1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862.

How does the recurrence go?

C(n+1) = Σ C(i)·C(n−i); e.g. 42 = 1·14 + 1·5 + 2·2 + 5·1 + 14·1.

How fast do they grow?

Roughly 4ⁿ/n^1.5 — C(10) = 16796, C(15) = 9694845.