Maths WorkshopMaths problems with full solutions
Exercise 1939Combinatorics › Binomial coefficientsOlympiadAdded 4 Nov 2026

Paths that never go below the axis: Catalan numbers

#reflection principle#Catalan numbers#lattice paths#bijection

Statement

A path of length 2n2n starts at height 00 and at each step goes up by 11 or down by 11. Prove that the number of such paths that end at height 00 and never go below height 00 is
Cn=1n+1(2nn).C_n=\frac1{n+1}\binom{2n}n.

Hint

Count all paths from 00 to 00, then subtract the bad ones. For a bad path, reflect the part before the first visit to height −1-1.

Show solutionHide solution

Solution

Idea. The reflection principle: bad paths are in bijection with paths that are easy to count.

All paths. A path from 00 to 00 with 2n2n steps has nn up-steps and nn down-steps, so there are (2nn)\binom{2n}n of them.

Bad paths. A path from 00 to 00 is bad if it reaches height −1-1 at some moment. Consider the first such moment tt, and reflect the portion of the path before tt about the line y=−1y=-1. The new path starts at −2-2, still reaches −1-1 first at time tt, and ends at 00.

Conversely, any path from −2-2 to 00 with 2n2n steps must cross −1-1; reflecting the part before the first visit to −1-1 gives a bad path from 00 to 00. These operations are inverse, so bad paths are in bijection with all paths from −2-2 to 00.

Counting those. A path from −2-2 to 00 in 2n2n steps has uu up-steps and dd down-steps with u+d=2nu+d=2n and u−d=2u-d=2: u=n+1u=n+1, d=n−1d=n-1. So there are (2nn+1)\binom{2n}{n+1} of them.

Conclusion.
Cn=(2nn)−(2nn+1)=1n+1(2nn).C_n=\binom{2n}n-\binom{2n}{n+1}=\frac1{n+1}\binom{2n}n.
The first values are 1,2,5,14,42,132,…1,2,5,14,42,132,\dots

Remark. The same numbers count well-formed sequences of nn pairs of brackets and triangulations of a convex (n+2)(n+2)-gon.

Lesson. Reflection principle: reflect an initial segment to transform a constrained count into an unconstrained one.