Toss a fair coin repeatedly. On each toss, you are paid 1 dollar when you get a tail and O
dollar when you get a head. You must stop coin tossing once you have two consecutive heads.
Let X be the total amount you get paid. Find E(X).