The Dance of Randomness
Decoding the Infinite Coin Toss
Imagine you are standing in a quiet room, a single coin in your hand. You are tasked with a simple yet profound experiment: toss this coin repeatedly until you see two consecutive outcomes that are the same.
It sounds simple, almost trivial. But as you begin to toss, you realize that the game has a life of its own. It could end in two tosses, or it could drag on for ten, twenty, or even a hundred tosses. Today, we are going to master this chaos.
Phase 1
The Anatomy of the Game
First, let us ground ourselves in the physics of the problem. We are given the probability of a Head as P(H)=p=31.
Consequently, the probability of a Tail is q=1−31=32. The experiment stops when we hit HH or TT. We are only interested in the universe where the experiment concludes with HH.
Phase 2
The Fork in the Road
To solve this, we must embrace the 'Divide and Conquer' mindset. Let us split our reality into two mutually exclusive cases based on the very first toss.
Case 1: The First Toss is a Head.
If our first toss is a Head, we are already halfway to our goal. If the second toss is also a Head, the game ends immediately with HH. Success!
But what if the second toss is a Tail? We are now in a state of HT. We cannot stop here because the outcomes are different. To avoid the failure of HTT (two tails), we must get a Head.
This forces us into the sequence HTH. From here, another Head gives us HTHH (Success!). If we get a Tail, we are back to an alternating pattern. This creates an infinite chain of successful sequences: HH,HTHH,HTHTHH,….
The probability of this case,
P1, is the sum of these probabilities:
P1=p2+p3q+p4q2+…
Factoring out
p2, we see a beautiful infinite Geometric Progression:
P1=p2(1+pq+(pq)2+…)
Phase 3
The Infinite Dance
Now, let us solve this series. The sum of an infinite G.P. is given by S=1−ra, where a is the first term and r is the common ratio. Here, a=p2 and r=pq.
Substituting our values, we get:
P1=1−pqp2
With
p=31 and
q=32, we calculate:
P1=1−2/91/9=7/91/9=71
Phase 4
The Mirror Image
Now, consider Case 2: The First Toss is a Tail.
If we start with a Tail, we must avoid TT at all costs. The only way to survive is to get a Head next, leading to TH. From TH, we need another Head to reach THH (Success!).
If we get a Tail, we are forced into an alternating pattern again. The successful sequences here are THH,THTHH,THTHTHH,….
The probability
P2 is:
P2=qp2+q2p3+⋯=qp2(1+pq+(pq)2+…)
This is the same G.P. structure! Substituting our values:
P2=1−pqqp2=7/9(2/3)(1/9)=7/92/27=212
The Grand Finale
We have conquered both universes. The total probability of the experiment stopping with a Head is simply the sum of our two cases:
P=P1+P2=71+212
Converting to a common denominator, we get:
P=213+212=215
There it is. The complexity of an infinite process distilled into a single, elegant fraction. Remember, in JEE Advanced, the math is never just about the numbers; it is about the structure you build to contain the randomness. You have done well. The final answer is 215.