Let A,B⊂Z be two sets of integers. We say that A,B are mutually repulsive if there exist positive integers m,n and two sequences of integers α1,α2,…,αn and β1,β2,…,βm, for which there is a unique integer x such that the number of its appearances in the sequence of sets A+α1,A+α2,…,A+αn is different than the number of its appearances in the sequence of sets B+β1,…,B+βm.For a given quadruple of positive integers (n1,d1,n2,d2), determine whether the sets
A={d1,2d1,…,n1d1}B={d2,2d2,…,n2d2}
are mutually repulsive.For a set X⊂Z and c∈Z, we define X+c={x+c∣x∈X}.