I was on vacation in England, and wanted to visit the Tower of London. The roads were laid out on a grid map, and and the castle was 4 blocks north and 5 blocks east. Unfortunately, there was some police activity near the hotel, and that intersection was blocked off so I could not go through it.
If I were to travel only north and east, how many routes did I have to get to the castle?
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.
The tower is at (4N,5E). The total number of ways to reach the tower is arrangement of 4N's & 5E's which can be done in 9 C 4 ways
Now the police is at (2N,1E). The total number of ways to reach the police is arrangement of 2N's & 1E's which can be done in 3 C 2 ways
After reaching the police, tower is at (2N,4E). The total number of ways to reach the tower from police is arrangement of 2N's & 4E's which can be done in 6 C 2 ways.
So required number of ways to reach the tower without reaching the police is 9 C 4 − ( 3 C 2 ∗ 6 C 2 ) = 1 2 6 − ( 3 C 1 ∗ 6 C 2 )