Problem:
A bug travels in the coordinate plane, moving only along the lines that are parallel to the x-axis or y-axis. Let A=(β3,2) and B=(3,β2). Consider all possible paths of the bug from A to B of length at most 20. How many points with integer coordinates lie on at least one of these paths?
Answer Choices:
A. 161
B. 185
C. 195
D. 227
E. 255
Solution:
Let X=(x,y). The distance traveled by the bug from A to X is at least β£x+3β£+β£yβ2β£. Similarly, the distance traveled by the bug from X to B is at least β£xβ3β£+β£y+2β£. It follows that X belongs to a path from A to B traveled by the bug if and only if
d=β£xβ3β£+β£x+3β£+β£yβ2β£+β£y+2β£β€20
The expression for d is invariant if x is replaced by βx or y is replaced by βy. By symmetry, it is enough to count the number of points X with xβ₯0 and yβ₯0, multiply by 4 , and subtract the points that were overcounted, that is those in the x-axis or in the y-axis. Consider four cases:
Case 1. 0β€xβ€3 and 0β€yβ€2. In this case β£xβ3β£+β£x+3β£=6 and β£yβ2β£+β£y+2β£=4. Thus d=10<20 and there are 4β
3=12 points X in this case. This includes the origin and 5 other points for which xy=0.
Case 2. 0β€xβ€3 and yβ₯3. In this case β£xβ3β£+β£x+3β£=6 and β£yβ2β£+β£y+2β£= 2y. Thus d=6+2yβ€20 if and only if yβ€7. There are 4β
5=20 points X in this case. This includes 5 points for which xy=0.
Case 3. xβ₯4 and 0β€yβ€2. In this case β£xβ3β£+β£x+3β£=2x and β£yβ2β£+β£y+2β£=4. Thus d=4+2xβ€20 if and only if xβ€8. There are 5β
3=15 points X in this case. This includes 5 points for which xy=0.
Case 4. xβ₯4 and yβ₯3. In this case β£xβ3β£+β£x+3β£=2x and β£yβ2β£+β£y+2β£=2y. Thus d=2x+2yβ€20 if and only if x+yβ€10. The number of points X in this case is equal to
x=4β7βy=3β10βxβ1=x=4β7β(10βxβ2)=x=4β7β(8βx)=4+3+2+1=10
and there are no points with xy=0.
By symmetry the required total is 4(12+20+15+10)β2(5+5+5)β3= 4β
57β2β
15β3=195β.
The problems on this page are the property of the MAA's American Mathematics Competitions