Solve for r i/r=p