Maths WorkshopMaths problems with full solutions
Exercise 1604Combinatorics › Counting principlesOlympiadAdded 3 Nov 2026

Catalan applications

#Catalan#applications#structures

Statement

Show that the number of full binary trees with nn internal nodes is Cn=1n+1(2nn)C_n=\frac{1}{n+1}\binom{2n}{n}.

Hint

A full binary tree has nn internal nodes, n+1n+1 leaves. Traverse left-to-right and encode: +1+1 for internal node, −1-1 for leaf.

Depth-first traversal. Each prefix has #\#internal ≥#\ge\#leaves, giving Dyck path condition.

Show solutionHide solution

Solution

Bijection. DFS traversal of binary tree with nn internal nodes, n+1n+1 leaves produces a Dyck path with nn up-steps and n+1n+1 down-steps; equivalently (shift) a Dyck path of length 2n2n.

Count. CnC_n.

Conclusion. CnC_n counts full binary trees with nn internal nodes.

Examples. n=1n=1: 11; n=2n=2: 22; n=3n=3: 55.