File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ This formula can be derived as follows:
156
156
First we "forget" that there are multiple bracket types, and just take the answer $d[2n - i - 1][\text{ndepth}]$.
157
157
Now we consider how the answer will change is we have $k$ types of brackets.
158
158
We have $2n - i - 1$ undefined positions, of which $\text{ndepth}$ are already predetermined because of the opening brackets.
159
- But all the other brackets ($(2n - i - i - \text{ndepth})/2$ pairs) can be of any type, therefore we multiply the number by such a power of $k$.
159
+ But all the other brackets ($(2n - i - 1 - \text{ndepth})/2$ pairs) can be of any type, therefore we multiply the number by such a power of $k$.
160
160
161
161
## Finding the $k$-th sequence {data-toc-label="Finding the k-th sequence"}
162
162
You can’t perform that action at this time.
0 commit comments