Math 2.0

statement theorem

Dyck words are counted by Catalan numbers

Statement

Let nn be a natural number. Then the number of Dyck words of semilength nn is the Catalan number CnC_n.

Remarks

For n=3n = 3 the 55 Dyck words are UUUDDDUUUDDD, UUDUDDUUDUDD, UUDDUDUUDDUD, UDUUDDUDUUDD and UDUDUDUDUDUD. Proof idea: a nonempty Dyck word has a unique form Uw1Dw2U w_1 D w_2, where w1w_1 and w2w_2 are Dyck words. This gives the Catalan recurrence.

Explanations

L1 human

Each nonempty balanced bracket string starts with an opening bracket, and that bracket has a matching closing bracket. The inside and the part after the match are smaller balanced strings, so the count satisfies the Catalan recurrence.

What this node needs for W1
  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a node is. They do not measure its truth.

What this needs

To read this node, read these 3 nodes in this order. The foundations come first, and the list ends with this node.

Each node uses the nodes above it. The colour of the bar on a box shows the evidence level, and the box also gives it as text. The list below has the same nodes.
  • no evidence level
  1. Catalan numbers definition
  2. Dyck word definition
  3. Dyck words are counted by Catalan numbers statement

Sources

  1. Web https://en.wikipedia.org/wiki/Catalan_number, Applications in combinatorics