I had problems on understanding the following problem :
A die is continuously thrown until 4 is obtained. What is the probability that the dice is thrown an even number of times?
Here , a solution states that probability is : $$\frac{4}{6}\times \frac{2}{6}+\frac{4}{6}\times \frac{4}{6}\times \frac{4}{6}\times \frac{2}{6} + ...$$ $$=\frac{2}{5}$$
I didn't understand why such process was used and what's the the concept behind it?
Another problem :
(ii) If a biased coin is tossed two times repeatedly , then what is the probability of occurring HH?
Can I do the problem (ii) similarly like (i) as : $$\frac{1}{4}+\frac{3}{4}\times \frac{1}{4}+\frac{3}{4}\times \frac{3}{4}\times \frac{1}{4}+ ...$$
I don't understand the formula used either.
Method I: infinite series.
The probability that the die is thrown exactly $2n$ times is $ \left(\frac 56 \right)^{2n-1}\times \frac 16$ so the answer is $$\frac 16 \times \sum_{n=1}^{\infty} \left(\frac 56 \right)^{2n-1}=\frac 5{11}$$
Method II: recursion
Let $p$ denote the answer. The first roll is either a $4$ or it isn't. Hence $$p=\frac 16\times 0+\frac 56\times (1-p)\implies p=\frac 5{11}$$