Solve for r 0=r-1