Given a fair dice, what is the expected number of sixes that get tossed before throwing 2 sixes in a row? Would I start by finding all possible sets that occur without two sixes in a row and multiply them by the corresponding probability? ie $$\sum_{k=0}^\infty (A+B)^k $$ where A is all sequences that don't contain a six and B is all sequences that contain just one six
Thanks for your help
The set of sequences prior to the final two sixes that end the game is actually given by $$\sum_{k=0}^\infty (A+BA)^k $$
The generating function that counts the number of sixes and non-sixes prior to the final two sixes is
$$C(a,b)=\sum_{k=0}^\infty (a+ba)^k={1\over 1-(a+ba)}.$$ You turn this into a joint probability generating function by replacing $a$ with $5a/6$ and $b$ with $b/6$, then multiplying by $1/36$ to account for the final two sixes. This gives $$P(a,b)={1\over 36-30a-5ab}.$$
The marginal probability generating function for the number of sixes is found by plugging in $a=1$, to obtain $$P(b)={1\over 6-5b}. $$
Finally you get the expected number of sixes by differentiating and setting $b=1$. The expected number of sixes prior to the final two sixes is 5.