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:
“Its better that it should make you sick than that you dont eat it at all.”
—Catalan proverb, quoted in Colman Andrews, Catalan Cuisine.
“What had really caused the womens movement was the additional years of human life. At the turn of the century womens life expectancy was forty-six; now it was nearly eighty. Our groping sense that we couldnt live all those years in terms of motherhood alone was the problem that had no name. Realizing that it was not some freakish personal fault but our common problem as women had enabled us to take the first steps to change our lives.”
—Betty Friedan (20th century)