2005 AIME I Problem 13
Problem 13 of 15HarderCombinatorics
A particle moves in the Cartesian plane from one lattice point to another according to the following rules:
• From any lattice point the particle may move only to or
• There are no right angle turns in the particle’s path. That is, the sequence of points visited contains neither a subsequence of the form nor a subsequence of the form
How many different paths can the particle take from to
Your answer
Integer from 0 to 999
Show solution
Solution
The forbidden right-angle turns say exactly that a rightward step may never immediately follow an upward step, and vice versa; a diagonal step may follow or precede anything. So at each lattice point track three counts the numbers of legal paths from arriving there by a diagonal, rightward, or upward step. The rules give
Starting from the single empty path at (which may begin with any step), fill in the grid up to Along the axes only all-rightward or all-upward paths survive, and the interior builds up quickly; at the three counts come out to and
The total number of paths is
Tagged: lattice paths · recursive counting