Suppose we throw a six-faced dice $n$ times.
Let's define the random variable X as the number of times two consecutive sixes appear, so $$ X = | \{i \in \{1, \ldots, n-1\} : r_i = r_{i+1} = 6\} | $$
where $r_i$ is the $i$th result in our sequence of throws.
How do I calculate $E[X]$?
Hint: Let $I_k$ be the indicator variable that both $k$ and $k+1$ are 6's.