All on (Solution)

Let’s declare 6 variables:

We can then construct the following system of equations:

\[\begin{align*} d0 &= 1 + d1 \\ d1 &= 1 + 1/6 \cdot d0 + 5/6 \cdot d2 \\ d2 &= 1 + 2/6 \cdot d1 + 4/6 \cdot d3 \\ d3 &= 1 + 3/6 \cdot d2 + 3/6 \cdot d4 \\ d4 &= 1 + 4/6 \cdot d3 + 2/6 \cdot d5 \\ d5 &= 1 + 5/6 \cdot d4 + 1/6 \cdot 0 \\ \end{align*}\]

Since I’m lazy, I just asked python to solve them for me:

solution

The answer we are looking for is \(d0\) which is 83.2.