The Chinese Remainder Theorem says that given integers \(a_i\) and
natural numbers \(m_i\), relatively prime (i.e., coprime) to each other,
there exists a unique solution \(x = x_i\) such that the following
system of linear modular equations is satisfied:
$$x_i = a_i \, \mod \, m_i, \quad 1 \le i \le n $$
More generally, a solution exists if the following condition is satisfied:
$$a_i = a_j \, \mod \, \gcd(m_i, m_j)$$
This version of the CRT is not yet implemented.