the-honk/euler/thoughts/15 - Lattice paths.md
2024-10-09 18:02:38 +01:00

312 B

For a lattice with dimensions m x n, all paths will have m + n segments. m segments go down, n segments go right. To count m + n slots, count the ways to pick m downward moves - the rest will be rightward moves.

LaTeX

{m + n \choose m} = {m + n \choose n} = \frac{(m+n)!}{m!n!}