Solve in terms of r if s=r/a-1