LearnViz Math
Expert ⛓ Discrete Math & Number Theory Topic 40 of 103

Catalan Numbers

Count balanced parentheses, trees and paths.

Key idea

Count balanced parentheses, trees and paths.

In depth

Cₙ = C(2n, n)/(n + 1): 1, 1, 2, 5, 14, 42, ... They count balanced bracket strings, binary trees, paths staying below a diagonal, and polygon triangulations, all related by the recurrence Cₙ₊₁ = ΣCᵢCₙ₋ᵢ.

Worked example

C₃ = 5: the balanced strings ((())), (()()), (())(), ()(()), ()()().

Formula

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

Real-world uses

Common mistake

Forgetting that indices start at 0 (C₀ = 1).

How to learn this

  1. Read the key idea and say it in your own words.
  2. Work through the worked example, then try a similar problem.
  3. Use the interactive lesson’s visual and mini-quiz to check the pattern.

Frequently asked questions

What is Catalan Numbers?

Count balanced parentheses, trees and paths. It is a topic at the expert level in Discrete Math & Number Theory.

What is the formula for Catalan Numbers?

The key formula is Cₙ = C(2n,n)/(n+1).

Where is Catalan Numbers used in real life?

Real-world examples: Counting valid bracket patterns in code, binary tree shapes and checkout queue paths.

What should I learn before Catalan Numbers?

Make sure you are comfortable with Derangements, the previous topic in Discrete Math & Number Theory.

What is a common mistake with Catalan Numbers?

Forgetting that indices start at 0 (C₀ = 1).

How can I practise Catalan Numbers?

Open the interactive lesson, play with the visual, then answer the three-question mini-quiz. Getting two right marks the topic complete.

What comes after Catalan Numbers?

Move on to Stirling Numbers next.

Related expert topics in Discrete Math & Number Theory