Skip to main content

AMC 12 Mock Exam 9 Problem 12

Problem 12 of 25

A robot starts at (0,0)(0,0) in the coordinate plane and travels to (4,4)(4,4). Each move takes it from (x,y)(x,y) to (x+1,y)(x+1,y), to (x,y+1)(x,y+1), or to (x+1,y+1)(x+1,y+1). The robot's path never goes above the line y=xy=x, although it may touch the line. How many different routes can the robot take?

Answer choices

Show solution

Solution

Let f(x,y)f(x,y) be the number of allowed routes from (0,0)(0,0) to (x,y)(x,y), for 0≤y≤x0\le y\le x. Then f(x,y)=f(x−1,y)+f(x,y−1)+f(x−1,y−1)f(x,y)=f(x-1,y)+f(x,y-1)+f(x-1,y-1), where a term is 00 if its point is not allowed (for example, (x,y−1)(x,y-1) is always allowed, but (x−1,y)(x-1,y) is not when y=xy=x). Also f(x,0)=1f(x,0)=1 for every xx. Filling in row by row (y=1,2,3,4y=1,2,3,4): x=01234y=011111y=12468y=261630y=32268y=490\begin{array}{c|ccccc} & x=0 & 1 & 2 & 3 & 4\\\hline y=0 & 1 & 1 & 1 & 1 & 1\\ y=1 & & 2 & 4 & 6 & 8\\ y=2 & & & 6 & 16 & 30\\ y=3 & & & & 22 & 68\\ y=4 & & & & & 90 \end{array} For example, f(4,3)=f(3,3)+f(4,2)+f(3,2)=22+30+16=68f(4,3)=f(3,3)+f(4,2)+f(3,2)=22+30+16=68 and f(4,4)=f(4,3)+f(3,3)=68+22=90f(4,4)=f(4,3)+f(3,3)=68+22=90. The answer is 90\boxed{90}. (Without the restriction there are 321321 routes. Without diagonal moves there are (84)=70\binom84=70 unrestricted routes and 1414 restricted ones.)

Tagged: lattice paths with diagonal steps below the diagonal (Schroeder paths)