bracketings
Bracketings are the distinct ways to place parentheses in a product or expression to specify the order of evaluation when the operation is not assumed to be associative. Given n factors x1, x2, ..., xn and a binary operation, a bracketing is a fully parenthesized form of the expression. Each bracketing corresponds to a full binary tree with n leaves, and thus to a particular parsing or evaluation order.
The number of bracketings of n factors is the Catalan number C_{n-1}. For n = 2 there is
A standard recurrence is B(1) = 1 and B(n) = sum_{i=1}^{n-1} B(i) * B(n-i) for n > 1, reflecting the