Let ei = hi1 be the expected number of steps for a random walk starting at vertex i to reach vertex 1
We need to solve the recurrence equations:
ei = (i-1)e2 - i2 + 3i -2
Plugging this into the third equation above and solving gives
ei = (i - 1)(2n - 3) - i2 + 3i - 2
This is monotonically increasing from 1 to n, and en = (n - 1)2
Reference: This is using techniques similar to those found in
Elementary probability Theory with Stochastic Pocesses
Kai Lai Chung
Springer-Verlag, 1974