So, we can now make the following simple observation (assuming player A goes
first):
Player A can only win on moves i = 2k + 1, st, k ∈ Z
Player B can only win on moves j = 2k, st, k ∈ Z
Generalizing our observation and using conditional dependence:
Pr(A wins) = Pr((A = H) ∩
¯
B) =
n
i=1
Pr((A = H)
n−1
j=0
B
2j+1
).
We can expand that further as:
n
i=1
Pr((A = H)
n−1
j=0
B
2j+1
) =
n
i=1
Pr(A)·1/2
2i
=
n
i=1
1/2
2i+1
Now, to see the limit at which this converges, we can take the limit as n → ∞:
lim
n→∞
n
i=1
1/2
2i+1
= 1/2 ·
∞
i=1
1/4
i
= 1/2 · 4/3 = 2/3.
Therefore, Pr(A wins) = 2/3.
As Pr(A wins) + Pr(B wins) = 1, we see that Pr(B wins) = 1/3.
A similar analysis to the same problem using the tree-diagram approach can
be found in the text Mathematics for Computer Science, Leighton & Meyer in
Chapter 14, Section 5.
3 The general case
We now move on the more general case for this game, which involves the two
players A and B drawing from a sample space S = [k], for some k ∈ Z. The
distribution on [k] is uniform, so Pr(A = i) = 1/k, for some i ∈ [k].
The game is still the same (in that the particular j chosen to be the winning
draw doesn’t matter. So, we say that a player wins if they draw a number j,
for some fixed j ∈ [k].
Let us, again, assume that player A goes first (WLOG). Then, at move 1, Pr(A
wins) = 1/k. So, at move 2, the only way player B can win is if player A does
not win at move 1 and player B draws j. So, Pr(B wins) = Pr((B = H) ∩ A)
= (k − 1) · 1/k
2
.
Our previous observation that player A can only win on odd moves and player
B can only win on even moves still holds. Further, we observe that player A/B
has probability of winning at level m equivalent to 1/k
m
·number of j draws.
It’s easy to see that this can be counted by some elementary enumerative com-
binatorics - the number of winning draws at level m are:
A
wins
m
= 1 + (k − 1)
2
+ (k − 1)
4
+ ......
B
wins
m
= (k − 1) + (k − 1)
3
+ (k − 1)
5
+ ......
The probability of players A and B winning at level m:
Pr(A wins) = Pr((A = H) ∩
¯
B) =
n
i=1
Pr((A = H)
n−1
j=0
B
2j+1
).
We can expand that further as:
2