Compute the expected number of occurrences of “HHH” in this word (overlaps are allowed). For example, the word THHHHTTHHHTH has 3 such occurrences.
I have that Ai is 1 if HHH occurrence happens at the ith place and 0 otherwise
so $$X=\sum Ai\space from \space i=1 \space to \space 48$$
But I don't know where to go from here.
Hints: