Quoto

Learn / Library / Combinatorics

Routes around a hole

CombinatoricsMedium

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.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Count all routes, then remove the ones that pass through the bad point.

Solution
  1. Without restrictions there are routes.
  2. A route that steps on the hole splits into a part from to and a part from to .
  3. The first part has routes and the second has routes, so routes use the hole.
  4. A route visits the hole at most once, so nothing is counted twice, and the answer is .

Answer: