Around a closed intersection
A robot travels from (0,0) to (5,4), taking unit steps east or north. The intersection (2,2) is closed. How many routes avoid it?
Hint
Count all routes, then count the ones forced through (2,2) by splitting each route there.
Show answer and methods 2 methods
Answer
66
Method 1 Split the forbidden routes
There are 126 routes because the four north steps can occupy any four of nine positions. Reaching (2,2) takes two east and two north steps, in 6 orders. From there, three east and two north steps have 10 orders. Exactly 6 times 10 routes use the intersection, leaving 126 - 60 = 66.
Method 2 Fill a table of reachable routes
Write at each intersection the number of safe routes reaching it. Put 1 at the start, 0 at (2,2), and add the counts from the left and below at every other point (outside the grid the count is 0). From bottom to top the rows are (1,1,1,1,1,1), (1,2,3,4,5,6), (1,3,0,4,9,15), (1,4,4,8,17,32), and (1,5,9,17,34,66). The top-right entry is 66.