Learn / Library / Combinatorics
Routes around a hole
A robot moves on a grid from to , and each move goes unit east or unit north. The point is a hole, and the robot must never step on it. How many routes avoid the hole?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Count all routes, then remove the ones that pass through the bad point.
Solution
- Without restrictions there are routes.
- A route that steps on the hole splits into a part from to and a part from to .
- The first part has routes and the second has routes, so routes use the hole.
- A route visits the hole at most once, so nothing is counted twice, and the answer is .
Answer: