Solution 1
Define the distance between two frogs as the number of sides between them that do not contain the third frog.
Let E(a,b,c) denote the expected number of minutes until the frogs stop jumping, such that the distances between the frogs are a,b, and c (in either clockwise or counterclockwise order). Without the loss of generality, assume that a≤b≤c.
We wish to find E(4,4,4). Note that:
-
At any moment before the frogs stop jumping, the only possibilities for (a,b,c) are (4,4,4),(2,4,6), and (2,2,8).
-
E(a,b,c) does not depend on the actual positions of the frogs, but depends on the distances between the frogs.
-
At the end of each minute, each frog has 2 outcomes. So, there are 23=8 outcomes in total.
We have the following system of equations:
E(4,4,4)E(2,4,6)E(2,2,8)=1+82E(4,4,4)+86E(2,4,6),=1+84E(2,4,6)+81E(4,4,4)+81E(2,2,8),=1+82E(2,2,8)+82E(2,4,6).
Rearranging and simplifying each equation, we get
E(4,4,4)E(2,4,6)E(2,2,8)=34+E(2,4,6),=2+41E(4,4,4)+41E(2,2,8),=34+31E(2,4,6).(1)(2)(3)
Substituting (1) and (3) into (2), we obtain
E(2,4,6)=2+41[34+E(2,4,6)]+41[34+31E(2,4,6)],
from which E(2,4,6)=4. Substituting this into (1) gives E(4,4,4)=316.
Therefore, the answer is 16+3=019.
~Ross Gao ~MRENTHUSIASM
Solution 2 (Markov Chain)
Main article: Markov Chains
We can solve the problem by removing 1 frog, and calculate the expected time for the remaining 2 frogs. In the original problem, when the movement stops, 2 of the 3 frogs meet. Because the 3 frogs cannot meet at one vertex, the probability that those two specific frogs meet is 31. If the expected time for the two frog problem is E′, then the expected time for the original problem is 31E′.
The distance between the two frogs can only be 0, 2, 4, 6. We use the distances as the states to draw the following Markov Chain. This Markov Chain is much simpler than that of Solution 1 Supplement in the Remark section.

E(2)E(4)E(6)=1+21⋅E(2)+41⋅E(4)=1+41⋅E(2)+21⋅E(4)+41⋅E(6)=1+21⋅E(4)+21⋅E(6)
By solving the above system of equations, E(4)=16. The answer for the original problem is 316, 16+3=019
~isabelchen
Solution 3 (Pure algebraic manipulation, rigorous)
Let (x,y,z) be the number of positions between every pair of adjacent frogs. Notice that each of these three numbers are always odd as the number of positions can only change by +2, +0 or −2 in every move. We also have that x+y+z=9 as the frog themselves occupy 3 positions.
Let an to be the probability that the frogs are at (3,3,3) Situation at the nth move.
Let bn to be the probability that the frogs are at (1,3,5) Situation at the nth move.
Let cn to be the probability that the frogs are at (1,1,7) Situation at the nth move.
These are all the cases with x,y,z all odd and sum to 9.
After listing all the 8 movements, we get the recurrence
an+1=41an+81bn
bn+1=43an+21bn+41cn
cn+1=81bn+41cn
A 3,3,3 Situation never leads to the end.
A 1,3,5 Situation has 41 chance of leading to the end.
A 1,1,7 Situation has 21 chance of leading to the end.
Then we calculate the probability of the process ending at the nth move.
P(ending at move 1)=0
P(ending at move 2)=41b1+21c1=163
P(ending at move 3)=41b2+21c2=163
P(ending at move 4)=41b3+21c3
=41(43a2+21b2+41c2)+21(81b2+41c2) (by plugging in the equations above)
=163a2+81b2+161c2+161b2+81c2
=163a2+163b2+163c2
=163(a2+b2+c2)
a2+b2+c2 is the probability of the frogs being at a non-ending situation at the 2nd move. This is equivalent to the process not ending on or before the 2nd move.
The probability here can be calculated reversely, it is equal to 1− (the probability of the process ending on or before the 2nd move).
It is equal to 1− (the probability of the process ending at the 1st move) − (the probability of the process ending at the 2nd move).
P(ending at move 4)=163(1−163)=25639
Then continue calculations like this.
P(ending at move 5)=41b4+21c4
=163(a3+b3+c3)
=163P(the process not ending on or before the 3rd move)
=163(1−P(the process ending on or before the 3rd move))
=163(1−P(the process ending on the 1st move)−P(the process ending on the 2nd move)−P(the process ending on the 3rd move))
=163(1−163−163)
=12815
P(ending at move 6)=41b5+21c5
=163(a4+b4+c4)
=163P(the process not ending on or before the 4th move)
=163(1−P(the process ending on or before the 4th move))
=163(1−163−163−25639)
=4096363
.........
In general, P(ending at move n+1)=41bn+21cn
=163(an−1+bn−1+cn−1)
=163P(the process not ending on or before the n−1th move)
=163(1−P(the process ending on or before the n−1th move))
=163(1−∑i=1n−1P(the process ending at the ith move))
Notice that P(ending at move n+2) has just one more term to minus than P(ending at move n+1). Subtracting the equation for n+2 and the equation for n+1, we derive
P(ending at move n+1)−P(ending at move n+2)=163P(ending at move n)
Write P(ending at move n) as Qn.
We have Qn+1−Qn+2=163Qn.
We have Qn+2=Qn+1−163Qn
We can actually prove the convergence of the expected value now in order to be rigorous. Qn is a probability, a non-negative real number. For all postive integers n we have Qn+2≤Qn+1, the sequence is non-increasing since Q3.
Qn+2=Qn+1−163Qn≤Qn−163Qn=1613Qn for n≥3.
Thus each term of the sequence Q is no more than the corresponding term of two alternating geometric sequences, one for its odd terms and one for its even terms. The infinite sum of Q converges, and the expected value Q1+2Q2+3Q3+4Q4+...... converges as well.
Now we calculate Q1+Q2+Q3+Q4+Q5....... We set this finite number equal to S.
S=Q2+Q3+Q4+Q5+...... (because Q1 is 0)
S=163+Q2−163Q1+Q3−163Q2+Q4−163Q3+Q5−163Q4+......
S=163+S−163S
163−163S=0
S=1
Knowing S=1, we can find the expected value Q1+2Q2+3Q3+4Q4+5Q5+.......
Set this finite value equal to E.
E=Q1+2Q2+3Q3+4Q4+5Q5+......
E=83+3(Q2−163Q1)+4(Q3−163Q2)+5(Q4−163Q3)+6(Q5−163Q4)+......
E=83+3Q2+4Q3+5Q4+6Q5+......−163(3Q1+4Q2+5Q3+6Q4+......)
E=83+E+S−163(4Q2+5Q3+6Q4+7Q5......)
E=83+E+S−163(E+2S)
E=83+E+1−163(E+2)
3(E+2)=22
E=316
The answer to the problem is 16+3=19.
~AOPS Community - G2JFForever
Remark (Markov Chain)
Solution 1 Supplement
Solution 1 can be represented by the following Markov Chain:

-
From state (4,4,4) to state (4,4,4): the 3 frogs must jump in the same direction, 2⋅81=41.
-
From state (4,4,4) to state (2,4,6): 2 frogs must jump in the same direction, and the other must jump in the opposite direction, (23)⋅2⋅81=43.
-
From state (2,4,6) to state (4,4,4): the 2 frogs with a distance of 4 in between must jump in the same direction so that they will be further away from the other frog, and the other frog must jump in the opposite direction as those 2 frogs, 81.
-
From state (2,4,6) to state (2,4,6): the 3 frogs can all jump in the same direction; or the 2 frogs with a distance of 2 in between jumps away from each other and the other frog jumps closer to the closest frog; or the 2 frogs with a distance of 6 in between jump closer to each other and away from the third frog, the third frog jumps closer to the closest frog; (2+1+1)⋅81=21.
-
From state (2,4,6) to state (2,2,8): the 2 frogs with a distance of 2 in between must jump closer to the other frog and the other frog must jump close to those 2 frogs, 81.
-
From state (2,2,8) to state (2,4,6): 2 frogs that have no frogs in between must both jump in the same direction away from the other frog, the other frog must also jump away from those 2 frogs, 2⋅81=41.
-
From state (2,2,8) to state (2,2,8): the 3 frogs must all jump in the same direction, 2⋅81=41.
-
From state (2,2,8) to state (0,x,y): frogs with a distance of 2 must jump closer to each other, the other frog can jump in any direction, 21⋅21⋅2=21.
-
From state (2,4,6) to state (0,x,y): the frogs with a distance of 2 must jump closer to each other, the other frog can jump in any direction, 21⋅21=41.
Because a+b+c=12, we can use (a,b) to represent the states which is simpler than using (a,b,c) in Solution 1.
Summary
The two above Markov Chains are Absorbing Markov Chain. The state of 2 frogs meeting is the absorbing state. This problem asks for the Expected Number of Steps before being absorbed in the absorbing state.
Let pij=P(Xn+1=j∣Xn=i), the probability that state i transits to state j on the next step.
Let ei be the expected number of steps before being absorbed in the absorbing state when starting from transient state i.
ei=∑j[pij⋅(1+ej)]=∑j(pij+pij⋅ej)=∑jpij+∑j(pij⋅ej)=1+∑j(pij⋅ej)
ei is 1 plus the sum of the products of pij and sj of all the next state j, ∑jpij=1.
2014 AMC 12B Problem 22 and 2017 AMC 12A Problem 22 are similar problem with simpler states, both problems can be solved by Absorbing Markov Chain.
~isabelchen
Video Solution
https://www.youtube.com/watch?v=nt4xwt5Ldtc
~Math Problem Solving Skills