How many different combinations there is to get from point $A$ to point $B$ if you have to stop by point $P$ on the way and how many if you want to avoid never to go by $P$?
Im a bit stuck with this. Any help is appreciated.
How many different combinations there is to get from point $A$ to point $B$ if you have to stop by point $P$ on the way and how many if you want to avoid never to go by $P$?
Im a bit stuck with this. Any help is appreciated.
To arrive at $P$ from $A$ you must first travel from $A$ to the intersection just south of $P$. There are $\binom{4}{2}$ ways to arrange two N's (representing going north a full block) and two E's (representing going east a full block) to go from point $A$ to the intersection just south of $P$. From there, we have no option except to travel north a half-block to arrive at $P$.
Once having reached $P$, we continue north along that block to reach the intersection immediately north of $P$ at which point we need an additional $2$ N's and $1$ E to continue to point $B$ which these N's and E can be arranged in $\binom{3}{1}$ different ways.
There are then $\binom{4}{2}\times \binom{3}{1}$ ways to travel from $A$ to $B$ which passes through point $P$.
As for paths from $A$ to $B$ which avoid point $P$, these would be all paths from $A$ to $B$ which aren't among those we just counted.
There are $\binom{8}{3}$ ways to arrange $5$ N's and $3$ E's which represent the number of ways of going from $A$ to $B$ without restriction on whether or not it passes through $P$, and so subtracting the count of paths which do pass through $P$ gives us the count of paths which don't pass through $P$, giving the number of paths from $A$ to $B$ not passing through $P$ as being:
$$\binom{8}{3}-\binom{4}{2}\binom{3}{1}$$