Solve for s N=r(A-s)