Catalan's problem
From Wikipedia, the free encyclopedia
In mathematics, Catalan's problem asks the number of ways n factors can be completely parenthesized by n − 1 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.
[edit] See also
[edit] References
- Gardner, Martin (1988). Time Travel and Other Mathematical Bewilderments. New York: W.H. Freeman and Company, p. 256. ISBN 0-7167-1924-X.
- Eric W. Weisstein, Catalan's Problem at MathWorld.
This number theory-related article is a stub. You can help Wikipedia by expanding it. |