ArticleslgStudy

mathematics

Catalan number

Catalan number is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Catalan number rather than just read about it. In short: In mathematics, the Catalan numbers are a sequence of natural numbers that occur in various counting problems, often involving recursively defined objects. They are named after Eugène Catalan, though they were previously discovered in the 1730s by Minggatu.

Catalan number — main illustration
Catalan number — illustration

Key takeaways

  • Catalan number belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Catalan number to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Catalan number from memory before moving on to harder problems.

Reference excerpt

In mathematics, the Catalan numbers are a sequence of natural numbers that occur in various counting problems, often involving recursively defined objects. They are named after Eugène Catalan, though they were previously discovered in the 1730s by Minggatu. The ⁠n⁠-th Catalan number can be expressed directly in terms of central binomial coefficients by Cn=1n+1(2nn)=(2n)!(n+1)!n!for n≥0. The first few Catalan numbers are

1,1,2,5,14,42,132,429,1430,4862,16796,58786,… (sequence A000108 in the OEIS).

Properties An alternative expression for ⁠Cn⁠ is Cn=(2nn)−(2nn+1)for n≥0, which is equivalent to the expression given above because (2nn+1)=nn+1(2nn). This expression notably shows that ⁠Cn⁠ is an integer, which is not immediately obvious from the first formula. This expression forms the basis for a proof of the correctness of the formula. Another alternative expression is Cn=12n+1(2n+1n), which can be directly interpreted in terms of the cycle lemma; see below. The Catalan numbers satisfy the recurrence relations C0=1andCn=∑i=1nCi−1Cn−ifor n>0 and C0=1andCn=2(2n−1)n+1Cn−1for n>0. Asymptotically, the Catalan numbers grow as Cn∼4nn3/2π, in the sense that the quotient of the ⁠n⁠th Catalan number and the expression on the right tends towards 1 as ⁠n⁠ approaches infinity. This can be proved by using the asymptotic growth of the central binomial coefficients, by Stirling's approximation for ⁠n!⁠, or via generating functions. The only odd Catalan numbers ⁠Cn⁠ are those for which n = 2k − 1; all others are even. The only prime Catalan numbers are C2 = 2 and C3 = 5. More generally, the multiplicity with which a prime ⁠p⁠ divides Cn can be determined by first expressing n + 1 in base ⁠p⁠. For p=2, the multiplicity is the number of 1 bits, minus 1. For ⁠p⁠ an odd prime, count all digits greater than p+12; also count digits equal to p+12 unless final; and count digits equal to p−12 if not final and the next digit is counted. The only known odd Catalan numbers that do not have last digit 5 are C0 = 1, C1 = 1, C7 = 429, C31, C127 and C255. The odd Catalan numbers, Cn for n = 2k − 1, do not have last digit 5 if n + 1 has a base 5 representation containing 0, 1 and 2 only, except in the least significant place, which could also be a 3. The Catalan numbers have the integral representations Cn=12π∫04xn4−xxdx=2π4n∫−11t2n1−t2dt. which immediately yields ∑n=0∞Cn4n=2. This has a simple probabilistic interpretation. Consider a random walk on the integer line, starting at 0. Let −1 be a "trap" state, such that if the walker arrives at −1, it will remain there. The walker can arrive at the trap state at times 1, 3, 5, 7,… and the number of ways the walker can arrive at the trap state at time 2k + 1 is Ck. Since the one-dimensional random walk is recurrent, the probability that the walker eventually arrives at −1 is ∑n=0∞Cn22n+1=1.

Applications in combinatorics There are many counting problems in combinatorics whose solution is given by the Catalan numbers. The book Enumerative Combinatorics: Volume 2 by combinatorialist Richard P. Stanley contains a set of exercises which describe 66 different interpretations of the Catalan numbers. Following are some examples, with illustrations of the cases C3 = 5 and C4 = 14.

Cn is the number of Dyck words of length 2n. A Dyck word is a string consisting of n X's and n Y's such that no initial segment of the string has more Y's than X's. For example, the following are the Dyck words up to length 6:

Re-interpreting the symbol X as an opening parenthesis and Y as a closing parenthesis, Cn counts the number of expressions containing n pairs of parentheses which are correctly matched. For instance, for n = 3 these are

Cn is the number of different ways n + 1 factors can be completely parenthesized, i.e. the number of ways of associating n applications of a binary operator (as in the matrix chain multiplication problem). For n = 3, for example, we have the following five different complete parenthesizations of four factors:

Successive applications of a binary operator can be represented in terms of a full binary tree, by labeling each leaf a, b, c, d. It follows that Cn is the number of full binary trees with n + 1 leaves, or, equivalently, with a total of n internal nodes:

Cn is the number of non-isomorphic ordered (or plane) trees with n + 1 vertices. See encoding ordered trees as binary trees. For example, Cn is the number of possible parse trees for a sentence (assuming binary branching), in natural language processing. Cn is the number of monotonic lattice paths along the edges of a grid with n × n square cells, which do not pass above the diagonal. A monotonic path is one which starts in the lower left corner, finishes in the upper right corner, and consists entirely of edges pointing rightwards or upwards. Counting such paths is equivalent to counting Dyck words: X stands for "move right" and Y stands for "move up". The following diagrams show the case n = 4:

This can be represented by listing the Catalan elements by column height:

A convex polygon with n + 2 sides can be cut into triangles by connecting vertices with non-crossing line segments (a form of polygon triangulation). The number of triangles formed is n and the number of different ways that this can be achieved is Cn. The following hexagons illustrate the case n = 4:

… excerpt ends here. Continue reading the full article.

Illustrations

Catalan number: The .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}C5 = 42 noncrossing partitions of a 5-element set (below, the other 10 of the 52 partitions)
The .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}C5 = 42 noncrossing partitions of a 5-element set (below, the other 10 of the 52 partitions)
Catalan number: Lattice of the 14 Dyck words of length 8 – ( and ) interpreted as up and down
Lattice of the 14 Dyck words of length 8 – ( and ) interpreted as up and down
Catalan number illustration
Catalan number: The associahedron of order 4 with the C4=14 full binary trees with 5 leaves
The associahedron of order 4 with the C4=14 full binary trees with 5 leaves
Catalan number illustration

Worked examples

Example 1 — a first encounter with Catalan number

Start with the simplest possible case. Write down what Catalan number claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Catalan number before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Catalan number ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Catalan number

In research
Catalan number appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Catalan number in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Catalan number is common in secondary-school and first-year university syllabi. It links to neighbouring topics Enumerative combinatorics, Factorial and binomial topics, Integer sequences, so understanding it makes those chapters shorter.
In everyday life
Look for Catalan number outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Catalan number” →

How to study Catalan number in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Catalan number means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Catalan number out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Catalan number in simple terms?

In mathematics, the Catalan numbers are a sequence of natural numbers that occur in various counting problems, often involving recursively defined objects. They are named after Eugène Catalan, though they were previously discovered in the 1730s by Minggatu.

Why does Catalan number matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Catalan number?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Catalan number.

Tags

  • Enumerative combinatorics
  • Factorial and binomial topics
  • Integer sequences

Keep exploring