Lably
Skip to content

Catalan number

Recursive integer sequence

  • 16 min read
  • 7 chapters

Related on Lably

Through Sequence, Natural number and Recursion

The n-th Catalan number can be expressed directly in terms of the central binomial coefficients by

Cn=1n+1(2nn)=(2n)!(n+1)!n!for n≥0.

The first Catalan numbers for n = 0, 1, 2, 3, ... 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 shows that Cn is an integer, which is not immediately obvious from the first formula given. 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∼4nn32π, in the sense that the quotient of the nth 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 Catalan numbers Cn that are odd 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 + 1/2⁠; also count digits equal to ⁠p + 1/2⁠ unless final; and count digits equal to ⁠p − 1/2⁠ 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.

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Number theory