The following system is given
$X \equiv a_1$ $mod$ $m_1$
$X \equiv a_2$ $mod$ $m_2$ such that $m_1, m_2 \in \mathbb{N} _{>1}$ and $m_1, m_2$ are not coprime.
For which $a_1, a_2 \in \mathbb{Z} $ exists a solution for the system?
I tried like this but I'm not sure how to solve it:
$k \cdot m_1+a_1=X= l \cdot m_2+a_2$ $\Rightarrow a_1=l \cdot m_2+a_2-k \cdot m_1$
Could you please help?
Thanks
How could I proceed now? And where do I know from that it's $a_1 \equiv a_2$ $mod$ $gcd(m_1,m_2) $?
– John Apr 24 '18 at 22:24