Problem:
Tim the Beaver can make three different types of geometrical figures: squares, regular hexagons, and regular octagons. Tim makes a random sequence of figures as follows:
- is a square.
- For every positive integer , is randomly chosen to be one of the 2 figures distinct from (each chosen with equal probability ).
- Tim takes 4 seconds to make squares, 6 to make hexagons, and 8 to make octagons. He makes one figure after another, with no breaks in between.
Suppose that exactly 17 seconds after he starts making , Tim is making a figure with sides. What is the expected value of ?