Solution
First of all, it is easy to see by induction that for any P(x,y) in the frog's jump sequence, x+y will be a multiple of 3 and x−y will be a multiple of 5. The base case (x,y)=(0,0) obviously satisfies the constraints and if x+y=3n and x−y=5m, any of the four transformations will sustain this property:
(x+7)+(y+2)=x+y+9→3(n+3)(x+2)+(y+7)=x+y+9→3(n+3)(x−5)+(y−10)=x+y−15→3(n−5)(x−10)+(y−5)=x+y−15→3(n−5) and (x+7)−(y+2)=x−y+5→5(m+1) and (x+2)−(y+7)=x−y−5→5(m−1) and (x−5)−(y−10)=x−y+5→5(m+1) and (x−10)−(y−5)=x−y−5→5(m−1).
So we know that any point the frog can reach will satisfy x+y=3n and x−y=5m.
Lemma: Any point (x,y) such that there exists 2 integers m and n that satisfy x+y=3n and x−y=5m is reachable.
Proof: Denote the total amounts of each specific transformation in the frog's jump sequence to be a, b, c, and d respectively. Then
x=7a+2b−5c−10d,
y=2a+7b−10c−5d,
x+y=9(a+b)−15(c+d)=3n, and
x−y=5(a−b)+5(c−d)=5m
together must have integral solutions. But
3(a+b)−5(c+d)=n implies
(c+d)≡nmod3 and thus
(a+b)=⌊n/3⌋+2(c+d).
Similarly, (a−b)+(c−d)=m implies that (a−b) and (c−d) have the same parity. Now in order for an integral solution to exist, there must always be a way to ensure that the pairs (a+b) and (a−b) and (c+d) and (c−d) have identical parities. The parity of (a+b) is completely dependent on n, so the parities of (a−b) and (c−d) must be chosen to match this value. But the parity of (c+d) can then be adjusted by adding or subtracting 3 until it is identical to the parity of (c−d) as chosen before, so we conclude that it is always possible to find an integer solution for (a,b,c,d) and thus any point that satisfies x+y=3n and x−y=5m can be reached by the frog.
To count the number of such points in the region ∣x∣+∣y∣≤100, we first note that any such point will lie on the intersection of one line of the form y=x−5m and another line of the form y=−x+3n. The intersection of two such lines will yield the point (23n+5m,23n−5m), which will be integral if and only if m and n have the same parity. Now since ∣x∣+∣y∣=∣x±y∣, we find that
∣x+y∣=∣3n∣≤100∣x−y∣=∣5m∣≤100→−33≤n≤33→−20≤m≤20.
So there are 34 possible odd values and 33 possible even values for n, and 20 possible odd values and 21 possible even values for m. Every pair of lines described above will yield a valid accessible point for all pairs of m and n with the same parity, and the number of points M is thus 34⋅20+33⋅21=1373→373.
Video Solution by Richard Rusczyk
https://artofproblemsolving.com/videos/amc/2012aimei/351
~ dolphin7