Problem:
A frog begins at P0β=(0,0) and makes a sequence of jumps according to the following rule: from Pnβ=(xnβ,ynβ), the frog jumps to Pn+1β, which may be any of the points (xnβ+7,ynβ+2),(xnβ+2,ynβ+7),(xnββ5,ynββ10), or (xnββ10,ynββ5). There are M points (x,y) with β£xβ£+β£yβ£β€100 that can be reached by a sequence of such jumps. Find the remainder when M is divided by 1000.
Solution:
Note that xn+1β+yn+1β=xnβ+ynβ(mod3) and xn+1ββyn+1β=xnββynβ (mod5), so each reachable point is at the intersection of a line x+y=3j and a line xβy=5k with β33β€jβ€33 and β20β€kβ€20. Furthermore, j and k must have the same parity. The number of points that meet these conditions is 33β
21+34β
20=1373. Call these points good.
To see that each good point is reachable, note first that it is possible to move from the line xβy=5k to either of the lines xβy=5(k+1) or xβy=5(kβ1) by moving from (x,xβ5k) to (xβ5,xβ5kβ10) or (x+2,xβ5k+7), respectively. Therefore there is at least one reachable point on each line xβy=5k for β20β€kβ€20. It is also possible to go from (x,y) to either (x+9,y+9) or (xβ15,yβ15) in two moves, so it is possible to make a sequence of moves from (x,x+5k) to either (x+3,x+5k+3) or (xβ3,x+5kβ3). Thus if any good point on the line xβy=5k is reachable, so is every good point on that line. This implies that M=1373, and the remainder when M is divided by 1000 is 373β.
The problems on this page are the property of the MAA's American Mathematics Competitions