I am trying to solve a problem of the following form
Ax≡B(mod C) A'x≡B'(mod C') A''x≡B''(mod C'') where A, B C are just integers. I know how to solve these problems when there is no coef on X, by changing them into linear Diophantine equations, but its not apparent to me how to go about this type of problem. Is there a way to simply the congruences to get rid of the coef, or do i need to look for a new method to solve this. Thanks
It comes down to the standard congruences.Explicitly, let $D=\gcd(A,C)$, $A_1=\dfrac AD$, $C_1=\dfrac CD$.
Obviously, the congruence $AX\equiv B \mod C$ implies $B\equiv 0\mod D$. So we have two cases: