Math 2.0

statement theorem

Chinese remainder theorem for non-coprime moduli

Statement

Let mm and nn be positive integers, and let aa and bb be integers. Let g=gcd⁡(m,n)g = \gcd(m, n) and M=lcm⁡(m,n)M = \operatorname{lcm}(m, n). The system x≡a(modm)x \equiv a \pmod m, x≡b(modn)x \equiv b \pmod n has an integer solution if and only if a≡b(modg)a \equiv b \pmod g. In this case, two solutions are congruent modulo MM.

Remarks

When g=1g = 1, this is the Chinese remainder theorem for two moduli. The condition is necessary: a solution xx gives a≡x≡b(modg)a \equiv x \equiv b \pmod g, since gg divides mm and nn. For kk moduli n1,…,nkn_1, \dots, n_k, the system x≡ai(modni)x \equiv a_i \pmod{n_i} has a solution if and only if gcd⁡(ni,nj)∣ai−aj\gcd(n_i, n_j) \mid a_i - a_j for all i≠ji \neq j. For example, x≡1(mod4)x \equiv 1 \pmod 4 and x≡3(mod6)x \equiv 3 \pmod 6 has the solutions x≡9(mod12)x \equiv 9 \pmod{12}. But x≡1(mod4)x \equiv 1 \pmod 4 and x≡2(mod6)x \equiv 2 \pmod 6 has no solution.

Explanations

L1 human

When the moduli share a factor gg, the two conditions both say something about xx modulo gg. They must agree there. If they agree, there is a solution, and it is unique modulo the lcm.

What this node needs for W1
  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a node is. They do not measure its truth.

What this needs

To read this node, read these 7 nodes in this order. The foundations come first, and the list ends with this node.

Each node uses the nodes above it. The colour of the bar on a box shows the evidence level, and the box also gives it as text. The list below has the same nodes.
  • no evidence level
  1. Divisibility definition
  2. Congruence modulo n definition
  3. Greatest common divisor definition
  4. Least common multiple definition
  5. Coprime integers definition
  6. Chinese remainder theorem statement
  7. Chinese remainder theorem for non-coprime moduli statement

Sources

  1. Web https://en.wikipedia.org/wiki/Chinese_remainder_theorem, Generalization to non-coprime moduli