Problem:
Belinda follows a path on the plane that is entirely contained within the square region 0β€x,yβ€4. Call her path dignified if and only if all of the following conditions are satisfied.
- Each step is one unit up, down, or to the right.
- The path does not revisit any vertex.
- The path starts at (a,0) and ends at (b,0), where a and b are integers with a<b, and touches the x-axis only at these two points.
The following figure shows some examples of dignified and not dignified paths.
How many dignified paths can Belinda follow?
Answer Choices:
A. 174
B. 340
C. 448
D. 512
E. 970
Solution:
Structure of a dignified path. The path never moves left, so it visits the columns x=a,a+1,β¦,b in order. Within one column it moves only vertically, and it cannot reverse direction there (that would revisit a vertex). So inside each column the path is a single vertical run:
- In column a it goes up from (a,0) to some height haβ.
- In each column x with a<x<b, it enters at height hxβ1β and moves vertically to some height hxβ.
- In column b, it enters at height hbβ1β and goes straight down to (b,0).
The path may touch the x-axis only at its ends, so every height haβ,ha+1β,β¦,hbβ1β is one of 1,2,3,4. Conversely, any choice of these heights gives a dignified path. (For example, the blue path in the figure has a=0,b=3 and heights 3,2,1.)
Counting. For given a<b there are bβa heights to choose, each in 4 ways, giving 4bβa paths. With 0β€a<bβ€4, the gap d=bβa occurs for 5βd pairs. So the total is
4β
41+3β
42+2β
43+1β
44=16+48+128+256=(C) 448.
The problems and solutions on this page are the property of the MAA's American Mathematics Competitions