Problem:
How many ways are there for Nick to travel from to in the coordinate plane by moving one unit in the positive or direction at a time, such that Nick changes direction an odd number of times?
Problem:
How many ways are there for Nick to travel from to in the coordinate plane by moving one unit in the positive or direction at a time, such that Nick changes direction an odd number of times?
Solution:
This condition is equivalent to the first and last step being in different directions, as if you switch directions an odd number of times, you must end in a different direction than you started. If the first step is in the direction and the last step is in the direction, it suffices to count the number of paths from to , of which there are . Similarly, in the other case, it suffices to count the number of paths from to , of which there are also . Therefore the total number of paths is .