Solve (x/(n+1)) = (q + r) for x