I thought a little about this problem:
How many ways correctly * arranges the brackets 2 * n.
* A correctly selected sequence of brackets has an equal number of open and closed parentheses at its end and a greater or equal number of open parentheses than closed throughout the sequence.
For example, for n=3 there are 5 ways: ((())), ()(()), ()()(), (())(), (()()) .
I was thinking of representing nested brackets as trees, but didn't get far.
source share