Lattice Grid Paths Avoiding Two Intermediate Checkpoints

Board: JEE Foundation | Grade: Class 11 | Chapter: Permutations and Combinations

Problem

A robot moves along the integer grid from $(0, 0)$ to $(8, 6)$ using only unit steps right $(+1, 0)$ or up $(0, +1)$. How many such paths avoid passing through both checkpoints $A(3, 2)$ and $B(5, 4)$ (i.e., pass through neither $A$ nor $B$)?

Step-by-Step Textbook Solution

Every shortest path from $(p, q)$ to $(r, s)$ with $p \le r, q \le s$ uses $(r - p)$ right steps and $(s - q)$ up steps, so there are $\binom{r - p + s - q}{r - p}$ such paths. Let $U$ be all paths from $O(0,0)$ to $C(8,6)$, $P_A$ be paths passing through $A(3,2)$, and $P_B$ be paths passing through $B(5,4)$. We need $|U| - |P_A \cup P_B| = |U| - |P_A| - |P_B| + |P_A \cap P_B|$:

  1. Total paths $|U|$: $$\binom{8 + 6}{6} = \binom{14}{6} = \frac{14 \times 13 \times 12 \times 11 \times 10 \times 9}{720} = 3003$$
  2. Paths through $A(3,2)$, $|P_A|$: $$\binom{3 + 2}{2} \times \binom{(8-3) + (6-2)}{6-2} = \binom{5}{2}\binom{9}{4} = 10 \times 126 = 1260$$
  3. Paths through $B(5,4)$, $|P_B|$: $$\binom{5 + 4}{4} \times \binom{(8-5) + (6-4)}{6-4} = \binom{9}{4}\binom{5}{2} = 126 \times 10 = 1260$$
  4. Paths through BOTH $A(3,2)$ and $B(5,4)$, $|P_A \cap P_B|$: Since $3 \le 5$ and $2 \le 4$, every path visiting both must visit $A$ first, then $B$, then $C$: $$\binom{5}{2} \times \binom{(5-3)+(4-2)}{4-2} \times \binom{5}{2} = 10 \times \binom{4}{2} \times 10 = 10 \times 6 \times 10 = 600$$

Applying Inclusion-Exclusion: $$\text{Valid paths} = 3003 - 1260 - 1260 + 600 = 1083$$

NityaDhi Solution (Intuitive Method)

NityaDhi Vector-Symmetry Shortcut: Notice the steps from $O(0,0)\to A(3,2)$ are $(3,2)$, and from $B(5,4)\to C(8,6)$ are ALSO $(3,2)$! Meanwhile $A\to C$ and $O\to B$ are both $(5,4)$. That's why $|P_A| = |P_B| = \binom{5}{2}\binom{9}{4} = 1260$ automatically without computing it twice! Also, check units digit quickly: $3003 - 2520 + 600 = 1083$.

Common Mistakes to Avoid

  1. Forgetting to add $|P_A \cap P_B|$ back: Simply computing $3003 - 1260 - 1260 = 483$ double-subtracts the $600$ paths passing through both $A$ and $B$.
  2. Not checking coordinate order: If one point had larger $x$ and smaller $y$ than the other, $|P_A \cap P_B|$ would be $0$; here $A \le B$ coordinate-wise, so paths through both definitely exist.