Suppose that a very long Bernoulli process gives a sequence with possible values: $A$ with probability $p$, and $B$ with probability $1-p$. The expected fraction of contiguous sequences of length $k$ that only contain $A$s must be $p^k$.
I made some numerical experiments and found that, recording only the length of the entire sequences of $A$ contiguous (e.g., in $\dots BAAAB\dots$ only write down "one sequence of length 3") and counting them, the frequency of those lengths also have an exponential dependence on the sequences length.
Why is it happening and how those exponential are related?