How can i find necessary and sufficient condition for this system to have a solution:
$x \equiv u_1(mod \ m_1)$
$...$
$x \equiv u_n(mod \ m_n)$
How can i find necessary and sufficient condition for this system to have a solution:
$x \equiv u_1(mod \ m_1)$
$...$
$x \equiv u_n(mod \ m_n)$
The Chinese remainder theorem states that if the $m_i$ are co-prime a solution will exist.
So it is sufficient that the $m_i$ be co-prime.
If $x \equiv u_i \mod m_i$ and $x \equiv u_j \mod m_j$ and $\gcd(m_i, m_j) = d \ne 1$ then $x = k_im_i + u_i = k_jm_j + u_j$ so $u_i - u_m = d(k_im_i/d - k_jm_i/d)$ so $u_i \equiv u_j \mod d; x \equiv u_i \mod \frac {m_i}d; x\equiv u_j \mod \frac {m_j}d$ which will have a solutions as $\frac {m_i}d$ and $\frac {m_j}d$ are coprime.
So it is necessary and sufficient that if any $m_i, m_j$ are not coprime that $u_j\equiv u_i \mod \gcd(m_i, m_j)$.
Try looking at the proof of the Chinese Remainder Theorem to see how the case when the $m_n$'s are coprime is dealt with and try to make a generalization.