The attachment has both the question and the solution. The part I'm confused about is the last line how pr = (n - r)pn-1 I'm guessing it is some algebraic manipulations but I don't know what.