17 lines
562 B
Markdown
17 lines
562 B
Markdown
<div align="center">
|
|
|
|
### Lattice Paths
|
|
|
|
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.
|
|
|
|
<br><br>
|
|
|
|
<img src="https://latex.codecogs.com/svg.image?{m&space;+&space;n&space;\choose&space;m}&space;=&space;{m&space;+&space;n&space;\choose&space;n}&space;=&space;\frac{(m+n)!}{m!n!}" height="100">
|
|
|
|
#### LaTeX
|
|
|
|
```
|
|
{m + n \choose m} = {m + n \choose n} = \frac{(m+n)!}{m!n!}
|
|
```
|
|
|
|
</div>
|