Find the total number of ways to move from point to point on the lines of the grid while avoiding the red lines.
It is allowed only to move down and right.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
You need to make a total of 7 moves, and 3 must be down while 4 must be right. Therefore, there are ( 3 7 ) = 3 5 ways to choose the 3 moves to go down if there are no red lines.
We can subtract the amount of paths that go through a red line.
If we pass through the bottom left red line, there is one way to get to the red line, and 4 ways to get to the bottom right corner afterwards.
If we pass through the top right red line, there are 2 ways to get to the red line, and ( 2 4 ) = 6 ways to get to the bottom right corner afterwards, so in total, there are 2 × 6 = 1 2 ways.
3 5 − 4 − 1 2 = 1 9