a-b=n(r1-r2)