Denote A={n3+n1,n3+n2,…,n3+na}, B={n3+m1,n3+m2,…,n3+mb} and k∈N such that n3+m1+n3+m2+⋯+n3+mb=k(n3+n1+n3+n2+⋯+n3+na). Then n3(ka−b)=m1+m2+⋯+mb−k(n1+n2+⋯+na).
The case n=1 is obviously true since M={1,2} and we can only have A={1} and B={2}.
Now let's prove that n>1 implies k<n+1 (so k≤n). Indeed, supposing k≥n+1, we would get n3+1+n3+2+⋯+n3+n≥n3+m1+n3+m2+⋯+n3+mb≥(n+1)(n3+n1+n3+n2+⋯+n3+na)≥(n+1)n3, therefore n4+2n(n+1)≥n4+n3. This would imply n2+n≥2n3 which is false.
We are left with the case k≤n. Now we have m1+m2+⋯+mb−k(n1+n2+⋯+na)<1+2+⋯+n=2n(n+1)<n3 and m1+m2+⋯+mb−k(n1+n2+⋯+na)≥−n(n1+n2+⋯+na)≥−n(1+2+⋯+n)=−2n2(n+1)>−n3.
To summarize, we have the inequalities −n3<n3(ka−b)<n3, therefore ka−b=0 showing that a divides b.