Skip to content

Commit 8a3354e

Browse files
committed
fix(tutorials): broken catalan number formula
1 parent a7ae81c commit 8a3354e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tutorials/math/combinatorics.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ This is a very famous sequence of natural numbers and has a variety of applicati
117117
[Here](https://en.wikipedia.org/wiki/Catalan_number#Applications_in_combinatorics) is a more exhastive list.
118118

119119
The $n^{th}$ Catalan number can be found using the formula:
120-
$C_n$ $=$ $\frac{1}{n + 1}$$2n \choose n$
120+
121+
$$
122+
C_n = \frac{1}{n + 1} {2n \choose n}
123+
$$
121124

122125
### Example #2: [1863 - Sum of All Subset XOR Totals](https://leetcode.com/problems/sum-of-all-subset-xor-totals/description/)
123126

0 commit comments

Comments
 (0)