You're reading: Black Mathematician Month, Irregulars

Circular reasoning on Catalan numbers

This is a guest post by researcher Audace Dossou-Olory of Stellenbosch University, South Africa.

Consider the following question: How many ways are there to connect 2n points on a circle so that each point is connected to exactly one other point?

Circular reasoning

For example, for n=2 there are four points on the circle – say, P1,P2,P3,P4 arrange clockwise. If P1 is mapped to P2, then P3 can only be mapped to P4. Likewise, if P1 is sent to P4, then P3 can only be sent to P2. If P1 and P3 are connected, then mapping P2 to P4 creates an intersection point.

This shows that for n=2, the answer is 2.

Figure 1: Illustration for n = 2

What is the answer to this question for general n? For n=3, the answer turns out to be 5.

The problem can be solved by setting a recurrence relation: denote by Cn the number of ways to connect 2n points P1,P2,,P2n on a circle so that each point is connected to exactly one other point.

For n=0, there is nothing to do, and so C0=1. Assume P1 is mapped to Pk for some k=2,3,,2n. Then, none of the points P2,,Pk1 can be mapped to one of the points Pk+1,,P2n because this will create an intersection point. Furthermore, k must be an even number, otherwise one of the points P2,,Pk1 will be left out.

Therefore, we have Cn=C0Cn1+C1Cn2++Cn2C1+Cn1C0=j=0n1CjCn1j. ‘Solving’ this non-linear recursion leads to the formula 1n+1(2nn) For n1, the sequence starts 1,2,5,14,42, Cn is called the nth Catalan number.

These numbers were introduced by the French and Belgian mathematician Eugène Charles Catalan. As it turns out, Catalan numbers count various combinatorial structures such as the ‘number of trees’.

What is a tree?

A tree is a graph that satisfies the following conditions:

  • two nodes can only be connected through one edge (no multiple edges between pairwise nodes);
  • no loop at a node (no node can be connected to itself via an arc);
  • the edges of the graph are not oriented – they are simple edges;
  • there is always a path to get from one node to another (the graph is connected);
  • there is no cycle (a path that starts and ends at a same node) in the graph.

In other words, a mathematical tree is a graph in which any two nodes are connected by a unique path.

But how many trees are there? Mathematicians and computer scientists had already started answering this question since the work of the German mathematician Carl Wilhelm Borchardt in 1860, before the work of Cayley, Pólya, Prüfer and many others.

Nowadays, the study of trees involves determining a vast number of properties, such as the number of possible trees given a number of nodes.

We highlight three types of trees that are counted via Catalan numbers.

If we choose one node of the tree and call it the root, we have what is called a rooted tree. Thinking of the root of a tree as a common ancestor to all other nodes in the tree, we define the notion of a successor – a node further along the same path in the tree. Cn enumerates:

The number of binary trees with 2n+1 nodes

A binary tree is a rooted tree in which each node has two successors or no successor at all; the number of possible such trees with 2n+1 nodes is the nth Catalan number.

Figure 1: A binary tree with 9 nodes

Figure 1: A binary tree with 9 nodes

The number of pruned binary trees with n nodes

A pruned binary tree is a rooted tree obtained from a binary tree by leaving out all nodes with no successors; the number of possible such trees with n nodes is the nth Catalan number.

Figure 2: A pruned binary tree with 7 nodes

Figure 2: A pruned binary tree with 7 nodes

The number of plane trees with n+1 nodes

A plane tree is a rooted tree in which a node can have any number of ordered successors; the number of possible such trees with n+1 nodes is the nth Catalan number.

Figure 3: A plane tree with 13 nodes

Figure 3: A plane tree with 13 nodes

Further uses of Catalan Numbers

Besides trees, amongst other structures counted by Cn, we have the number of Dyck paths of length 2n. A Dyck path is made from ↗ and ↘ unit-length steps in the xy-plane that start and end on the x-axis but never go below it.

Figure 4: A Dyck path of length 10

Figure 4: A Dyck path of length 10

Also, (and just for fun), you could try to compute the following integral: 21+2nπ11x2n(1x2)1/2dx You would find the answer is… the Catalan numbers again!

If you’d like to write about some maths that you find interesting, get in touch!

About the author

  • Audace Amen Vioutou Dossou-Olory

    Audace Amen Vioutou Dossou-Olory is a Beninese mathematician and electrical engineer. He is currently studying for a PhD in mathematics at Stellenbosch University. Audace’s current research combines the principles of enumerative and analytic combinatorics, extremal graph theory and probability.

(will not be published)

LATEX: You can use LaTeX in your comments. e.g. $ e^{\pi i} $ for inline maths; \[ e^{\pi i} \] for display-mode (on its own line) maths.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>