#cs/cp #math/discrete #flashcards/math ## Pascal's Triangle Each interior element equals the sum of the two elements above it. Pascal's triangle has many applications across mathematics, including evaluating $\binom{n}{k}$. Using zero-indexed rows and columns, $\binom{5}{3}=\frac{5!}{3!2!}=10$ appears at row $5$, column $3$. The triangle is also used with [[Lucas' Theorem]] to compute binomial coefficients modulo a prime. $\begin{array}{c} 1 \\ 1 \quad 1 \\ 1 \quad 2 \quad 1 \\ 1 \quad 3 \quad 3 \quad 1 \\ 1 \quad 4 \quad 6 \quad 4 \quad 1 \\ 1 \quad 5 \quad 10 \quad \textbf{10} \quad 5 \quad 1 \\ 1 \quad 6 \quad 15 \quad 20 \quad 15 \quad 6 \quad 1 \\ 1 \quad 7 \quad 21 \quad 35 \quad 35 \quad 21 \quad 7 \quad 1 \end{array}$ %%--%% ## What is the Combination Formula? %%?%% For $0\leq k\leq n$, "$n$ choose $kquot; is the number of $k$-element subsets of a set of $n$ distinct elements. Equivalently, it is the number of ways to choose $k$ distinct balls from a pool of $n$ when order does not matter. $ \binom{n}{k} = \frac{n!}{k!(n-k)!} $ Row $n$ sums to $2^n$ because it counts every subset size from $0$ through $n$: $\sum_{k=0}^{n}\binom{n}{k}=2^n$. <!--SR:!fsrs,2026-11-22T05:21:11.282Z,0,4.41082372,8.25958907,3,8,1,0,2026-11-22T05:11:11.282Z--> %%--%% ## Number of Distinct Paths to Each Square Overlay Pascal's triangle on a grid with a rook at the corner. The entry at each position gives the number of distinct shortest paths to that position when each move goes one unit right or down. To move from $(0,0)$ to $(m,n)$, a path contains $m+n$ moves: choose which $m$ moves go right, while the remaining $n$ go down. Therefore, $ \text{Total Number of Paths = }\binom{m + n}{n} = \binom{m + n}{m} $ Choosing the downward moves instead gives the equivalent form $\binom{m+n}{n}$. %%--%% ## What is Pascal's Formula? %%?%% Notice the RHS of the equation is simply the parents of a given number in the triangle. $ \binom{n}{k} = \binom{n-1}{k - 1} + \binom{n-1}{k} $ <!--SR:!2026-11-23,176,270--> %%--%% %%--%% ## Binomial Theorem Coefficients %%?%% Row $n$ of Pascal's triangle contains the coefficients of $(x+y)^n$. $ (x+y)^n = \sum_{k=0}^{n} \binom{n}{k}x^{n-k}y^k $ The coefficient of $x^{n-k}y^k$ is $\binom{n}{k}$. <!--SR:!fsrs,2026-11-22T05:31:55.243Z,0,1.07099828,9.70849625,3,8,1,0,2026-11-22T05:21:55.243Z--> %%--%%