Derivation (gambling almost always terminates)

Consider the event, for each $k\geq1$, $$ A_k = \set{Y_{(k-1)a+1}=\ldots=Y_{ka}=1}. $$ We have $A_1, A_2,\ldots$ are independent and $\prob(A_k) = p^a$.

Note that for all $m\geq1$, $$ \set{T=\infty} \subseteq \for\bigcap k1m A_k^\complement $$ so $$ \prob_x(T=\infty) \leq (1-p^a)^m. $$ Since $m$ can be arbitrarily big, $$ \prob_x(T<\infty) = 1. $$