Solve for k a/b=b/a+1/k