On this page
The Catalan numbers 1, 2, 5, 14, 42 count balanced bracket strings, mountain-shaped paths and many other things. Narayana numbers answer a finer question: of those Catalan shapes, how many have exactly k peaks? They are named after the Canadian mathematician T. V. Narayana (1930–1987), as Wikipedia's article on Narayana numbers records.
What are Narayana numbers?
The Narayana number is N(n, k) = (1/n)·C(n, k)·C(n, k−1), for 1 ≤ k ≤ n (Wikipedia: Narayana number).
The meaning comes from Dyck paths. A Dyck path of semilength n uses n up-steps (U) and n down-steps (D), starts and ends at ground level, and never dips below it. A peak is a U followed immediately by a D. N(n, k) is the number of Dyck paths of semilength n with exactly k peaks, according to OEIS A001263.
Take n = 3. The five Dyck paths are UUUDDD, UUDUDD, UUDDUD, UDUUDD and UDUDUD. Count the UD pairs in each: one path has 1 peak, three have 2 peaks, and one has 3 peaks. So row 3 is 1, 3, 1, and the formula agrees: N(3, 2) = (1/3)·C(3, 2)·C(3, 1) = (1/3)·3·3 = 3.
What does the Narayana triangle look like up to n = 5?
The first five rows, as listed in Wikipedia's table and in OEIS A001263, are:
n = 1: 1
n = 2: 1, 1
n = 3: 1, 3, 1
n = 4: 1, 6, 6, 1
n = 5: 1, 10, 20, 10, 1
The row sums are 1, 2, 5, 14 and 42, which are the Catalan numbers C₁ to C₅, where Cₙ = C(2n, n)/(n + 1) (Wikipedia: Catalan number). This is no coincidence. Every Dyck path has somewhere between 1 and n peaks, so sorting all Cₙ paths by their number of peaks splits Cₙ into the n entries of row n.
Check the middle of row 5 by hand: N(5, 3) = (1/5)·C(5, 3)·C(5, 2) = (1/5)·10·10 = 20.
Why is the Narayana triangle symmetric?
The triangle reads the same from both ends: N(n, k) = N(n, n − k + 1), as Wikipedia states. To see why, put n − k + 1 in place of k. The factor C(n, k) becomes C(n, n − k + 1), which equals C(n, k − 1), and the factor C(n, k − 1) becomes C(n, n − k), which equals C(n, k). The two binomial factors simply swap places, so the product does not change.
The only fact used is Pascal's symmetry, C(n, r) = C(n, n − r). For another identity built from C(2n, n), the number the Catalan formula divides by n + 1, see our post on the sum of squares of binomial coefficients.
How do Narayana numbers count non-crossing partitions?
Split the set {1, 2, …, n} into blocks. The split has a crossing if there are a < b < c < d with a and c in one block and b and d in a different block; a non-crossing partition has none. N(n, k) is the number of non-crossing partitions of {1, …, n} into k blocks (OEIS A001263), while all non-crossing partitions together number Cₙ (Wikipedia: Narayana number).
Worked example, n = 4 and k = 2. Here are all the ways to split {1, 2, 3, 4} into two blocks:
{1} {2, 3, 4}
{2} {1, 3, 4}
{3} {1, 2, 4}
{4} {1, 2, 3}
{1, 2} {3, 4}
{1, 4} {2, 3}
{1, 3} {2, 4}
That makes seven, the Stirling number S(4, 2) from our post on Stirling numbers of the second kind. Only the last one crosses: 1 < 2 < 3 < 4, with 1 and 3 together and 2 and 4 together. Put the four numbers around a circle and the chords 1–3 and 2–4 cut each other. Six partitions remain, and N(4, 2) = (1/4)·C(4, 2)·C(4, 1) = (1/4)·6·4 = 6.
How can you practise Narayana numbers?
A four-step plan:
Write the five Dyck paths for n = 3 as U and D words and circle every UD pair. You should get 1, 3, 1.
Compute row 6 from the formula and check it against OEIS A001263: 1, 15, 50, 50, 15, 1, which adds up to 132, the next Catalan number.
List the non-crossing partitions of {1, 2, 3, 4} into 3 blocks. Each is one pair plus two singletons, there are C(4, 2) = 6 pairs, and none can cross, so N(4, 3) = 6.
See how reflection counts paths that stay on one side of a line in our post on the ballot problem.
If binomial coefficients still feel shaky, revise them in the Fermi Concept Library. For practice, the Fermi Problem Library has a step-by-step solver that explains the reasoning rather than printing an answer.



