Catalan's Problem

In mathematics, Catalan's problem asks the number of ways n + 1 factors can be completely parenthesized by n pairs of parentheses. For example, the following are the 14 ways that 5 factors can be parenthesized:

  • (1 (2 (3 (4 5))))
  • (1 (2 ((3 4) 5)))
  • (1 ((2 3) (4 5)))
  • (1 ((2 (3 4)) 5))
  • (1 (((2 3) 4) 5))
  • ((1 2) (3 (4 5)))
  • ((1 2) ((3 4) 5))
  • ((1 (2 3)) (4 5))
  • ((1 (2 (3 4))) 5)
  • ((1 ((2 3) 4)) 5)
  • (((1 2) 3) (4 5))
  • (((1 2) (3 4)) 5)
  • (((1 (2 3)) 4) 5)
  • ((((1 2) 3) 4) 5)

The numbers of ways of performing these pairings are the Catalan numbers.

Famous quotes containing the words catalan and/or problem:

    God forgives the sin of gluttony.
    Catalan proverb, quoted in Colman Andrews, Catalan Cuisine.

    It is very comforting to believe that leaders who do terrible things are, in fact, mad. That way, all we have to do is make sure we don’t put psychotics in high places and we’ve got the problem solved.
    Tom Wolfe (b. 1931)