a+b+c=n(r1+r2+r3)