Learn / Library / Combinatorics
Paths with few turns
A path from to uses unit moves east or north. A turn is a move whose direction differs from the move before it. How many paths have exactly turns?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Exactly the right number of turns fixes how many straight runs the path has.
Solution
- Exactly turns means the path consists of straight runs that alternate between east and north.
- If the path starts east, there are east runs adding up to and north runs adding up to .
- Splitting into positive parts can be done in ways and splitting in ways, so paths start east.
- The same argument gives paths that start north, so the total is .
Answer: