Log in Sign up
Back to Discover
🔢

Catalan number

math Maturity 7-9

Some numbers follow a pattern.

Dyck lattice D4.svg
Dyck lattice D4.svg
They help us count many things. We can use them to count ways to draw mountains. They also count ways to make shapes. These numbers help us see how things fit. Can you find a pattern?

44 words

Some numbers follow a pattern.

Dyck lattice D4.svg
Dyck lattice D4.svg
These are called Catalan numbers. They help us count many things.

They count ways to draw mountain ranges. These mountains stay above the ground.

Catalan-Hexagons-example.svg
Catalan-Hexagons-example.svg
They also count ways to cut shapes into triangles.

You can use them to count paths on a grid. These paths do not go above a line.

Catalan number 4x4 grid example.svg
Catalan number 4x4 grid example.svg
They even help count ways to group things with parentheses. These special numbers help us see how many ways things can fit together.

88 words

Some numbers follow a special pattern. These are called Catalan numbers. They are named after Eugène Catalan. A man named Minggatu found them earlier.

These numbers help us count many things. They count ways to draw mountain ranges. These mountains must stay above the ground.

Catalan-Hexagons-example.svg
Catalan-Hexagons-example.svg

They also count ways to cut shapes. You can cut a shape into triangles. You must not let the lines cross.

Noncrossing partitions 5.svg
Noncrossing partitions 5.svg

Catalan numbers count paths on a grid. These paths move right or up. They must not go above a diagonal line.

Catalan number 4x4 grid example.svg
Catalan number 4x4 grid example.svg

They even help count ways to group things. You can use them for pairs of parentheses. They also count full binary trees. These are trees with many branches.

Catalan 4 leaves binary tree example.svg
Catalan 4 leaves binary tree example.svg

Most Catalan numbers are even. Only a few are odd. The only prime Catalan numbers are 2 and 5. These numbers show how many ways things fit together.

161 words

Imagine you are drawing a mountain range on a piece of paper. You want to make sure the mountains never dip below the flat ground. How many different ways can you draw those peaks and valleys? This is a counting puzzle that leads to a special set of numbers. These are called the Catalan numbers. They are a sequence of natural numbers used to solve many different types of counting problems.

Catalan-Hexagons-example.svg
Catalan-Hexagons-example.svg
They often appear when we look at objects that follow a specific rule or pattern.

These numbers work by counting how many ways we can organize things. For example, they can count the ways to group items using parentheses. If you have four items, there are five ways to group them correctly.

Catalan 4 leaves binary tree example.svg
Catalan 4 leaves binary tree example.svg
They also count paths on a grid. Imagine a path that only moves right or up. The Catalan numbers tell us how many paths stay below a diagonal line.
Catalan number 4x4 grid example.svg
Catalan number 4x4 grid example.svg
Another way to see them is through shapes. You can use them to count how many ways to cut a shape into triangles without the lines crossing.
Noncrossing partitions 5.svg
Noncrossing partitions 5.svg

History tells us that these numbers have been known for a long time. They are named after a mathematician named Eugène Catalan. However, they were discovered even earlier. A person named Minggatu found them in the 1730s. This shows that different people often find the same patterns in math. Even before they had a formal name, these numbers were part of how people understood counting.

There are many interesting facts about these numbers. The first few numbers in the sequence are 1, 1, 2, 5, and 14. Most Catalan numbers are even numbers. In fact, the only ones that are odd happen when a certain math rule is met. Only two Catalan numbers are prime numbers, which are 2 and 5.

Dyck lattice D4.svg
Dyck lattice D4.svg
As the numbers get larger, they grow very quickly. They follow a specific formula that uses parts of other math ideas called binomial coefficients.

If you like puzzles, you might see Catalan numbers in many places. They appear in computer science when looking at how sentences are built. They also show up in biology when studying how things branch out. Even in simple games, they can describe the ways to move on a board.

Catalan number exceedance example.png
Catalan number exceedance example.png
They help us understand the hidden rules of how shapes and paths can fit together. Math is full of these secret patterns waiting to be found.

425 words

The Catalan numbers are a specific sequence of natural numbers used in combinatorics. Combinatorics is the branch of mathematics focused on counting and arranging objects. These numbers appear in many different counting problems, especially those involving objects defined recursively. A recursive object is something that is built using smaller versions of itself. Because they appear in so many different areas, the Catalan numbers are incredibly useful for mathematicians.

Dyck lattice D4.svg
Dyck lattice D4.svg

To calculate the $n$-th Catalan number, mathematicians often use a formula involving central binomial coefficients. This formula provides a direct way to find a specific number in the sequence. Another way to express the number is through an alternative formula that uses a different mathematical structure. This second version is helpful because it proves the result is always an integer. While the first formula might look like it could result in a fraction, this second version confirms it will always be a whole number.

There are many distinct ways to interpret what these numbers actually represent. One common way is through Dyck words, which are strings of symbols like X and Y. In a Dyck word, the number of Ys never exceeds the number of Xs at any point in the sequence. You can also think of these as mountain ranges that never dip below the horizon. Another interpretation involves parentheses, where the numbers count the ways to correctly match opening and closing marks. For example, if you have four factors, there are five different ways to group them using parentheses.

Catalan 4 leaves binary tree example.svg
Catalan 4 leaves binary tree example.svg

Geometry provides even more ways to see these numbers in action. You can use Catalan numbers to count the ways to divide a convex polygon into triangles. This process is called polygon triangulation, and it requires connecting vertices with line segments that do not cross each other. If a polygon has $n+2$ sides, the number of ways to do this is the $n$-th Catalan number. You can also use them to count paths on a grid. These are called monotonic lattice paths, which move only right or up. The Catalan numbers count how many of these paths stay on or below a diagonal line.

Catalan number 4x4 grid example.svg
Catalan number 4x4 grid example.svg

Though named after the mathematician Eugène Catalan, these numbers were discovered much earlier. A mathematician named Minggatu identified them in the 1730s. This shows that important mathematical patterns often exist long before they receive a formal name. The sequence grows very quickly as the numbers get larger. Mathematically, we describe this growth using asymptotic notation. This means that as $n$ approaches infinity, the Catalan numbers grow at a predictable rate relative to other mathematical expressions.

Catalan-Hexagons-example.svg
Catalan-Hexagons-example.svg

Specific properties of the sequence reveal even more about its nature. Most Catalan numbers are even, and only a few are odd. In fact, the only prime numbers in the entire sequence are 2 and 5. There are also specific rules regarding the last digit of odd Catalan numbers. For instance, many odd Catalan numbers end in the digit 5. Scientists can even determine how many times a prime number divides a Catalan number by looking at its base representation.

Catalan number exceedance example.png
Catalan number exceedance example.png

Because they are so versatile, Catalan numbers connect to many different fields of study. In computer science, they can represent the number of possible parse trees for a sentence in natural language processing. In biology, they might relate to how structures branch. They even appear in the study of permutations, specifically stack-sortable permutations. This is a way of reordering a list of numbers using a specific rule. Whether looking at shapes, paths, or logic, the Catalan numbers provide a fundamental way to understand complex structures.

615 words
🖼️ Images & Media (13)
File:Noncrossing partitions 5.svg
Noncrossing partitions 5.svg
File:Dyck lattice D4.svg
Dyck lattice D4.svg
File:Catalan 4 leaves binary tree example.svg
Catalan 4 leaves binary tree example.svg
File:Tamari lattice, trees.svg
Tamari lattice, trees.svg
File:Catalan number 4x4 grid example.svg
Catalan number 4x4 grid example.svg
File:Tamari lattice, hexagons.svg
Tamari lattice, hexagons.svg
File:Catalan-Hexagons-example.svg
Catalan-Hexagons-example.svg
File:Catalan stairsteps 4.svg
Catalan stairsteps 4.svg
File:Catalan number-path reflection.svg
Catalan number-path reflection.svg
File:Catalan number exceedance example.png
Catalan number exceedance example.png
File:Catalan number swapping example.png
Catalan number swapping example.png
File:Catalan number algorithm table.png
Catalan number algorithm table.png

+ 1 more

Up Next
🔢
Stirling numbers of the second kind
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.