Problem:
Determine the number of ways of walking from to using only up and right unit steps such that the path does not pass through any of the following points: , , , .

Problem:
Determine the number of ways of walking from to using only up and right unit steps such that the path does not pass through any of the following points: , , , .

Solution:
In the following figure, each lattice point (with the bottom-left-most point ) is labeled with the number of ways of reaching there from . With the exception of the forbidden points, the labels satisfy the recursion formula . We see from the diagram that there are 34 ways to reach .
| 1 | 1 | 5 | 17 | 17 | 34 |
|---|---|---|---|---|---|
| 1 | 0 | 4 | 12 | 0 | 17 |
| 1 | 2 | 4 | 8 | 12 | 17 |
| 1 | 1 | 2 | 4 | 4 | 5 |
| 1 | 0 | 1 | 2 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 | 1 |