This question appeared on my pop quiz. I got 0%. I achieved everything until the green equation, then I didn't know how to proceed. After reading this solution, I see that you must isolate $pw_{k + 1}$ and move $w_k$ to the right.
$$\color{limegreen}{w_k = pw_{k + 1} + (1- p)w_{k - 1}} \iff pw_{k + 1} = w_k - (1 - p)w_{k - 1}$$
- Then you must divide the equation by p.
$$w_{k + 1} = \dfrac{w_k - (1 - p)w_{k - 1}}{p}$$
- Finally, you must subtract ${\color{red}{w_k}}$ from both sides!
$$w_{k + 1} -{\color{red}{w_k}} = \dfrac{1\color{red}{-p}}{p}(w_k - w_{k - 1})$$
These steps eluded me and came out of the blue! How would you prognosticate this tricky algebra?
Tsitsiklis, Introduction to Probability (2008 2e), p 63.