Solution:
Note that at any point in the game after the first roll, the probability that Allen wins depends only on the most recent roll, and not on any rolls before that one. So we may define p as the probability that Allen wins at any point in the game, given that the last roll was a 1,2, or 3, and q as the probability that he wins given that the last roll was a 4,5, or 6.
Suppose at some point, the last roll was r1∈{1,2,3}, and the next roll is r2∈{1,2,3,4,5,6}. By the definition of p, Allen wins with probability p. Furthermore, if r2=r1, which happens with probability 61, Allen wins. If r2∈{1,2,3} but r2=r1, which happens with probability 62, neither Allen nor Brian wins, so they continue playing the game, now where the last roll was r2. In this case, Allen wins with probability p. If r2∈{4,5,6}, which happens with probability 63, neither Allen nor Brian wins, so they continue playing, now where the last roll was r2. In this case, Allen wins with probability q. Hence, the probability that Allen wins in this case can be expressed as 61+62p+63q, and thus
p=61+62p+63q
By a similar analysis for q, we find that
q=61⋅0+62p+63q
Solving, we get p=21 and q=31. Allen wins with probability p=21 if the first roll is 1,2, or 3, and he wins with probability q=31 if the first roll is 4,5, or 6. We conclude that the overall probability that he wins the game is 21p+21q=125.