(en.wikipedia.org) Chinese remainder theorem - Wikipedia

ROAM_REFS: https://en.wikipedia.org/wiki/Chinese_remainder_theorem

In mathematics, the Chinese remainder theorem states that if one knows the remainders of the Euclidean division of an integer n by several integers, then one can determine uniquely the remainder of the division of n by the product of these integers, under the condition that the divisors are pairwise coprime (no two divisors share a common factor other than 1).

The theorem is sometimes called Sunzi's theorem. Both names of the theorem refer to its earliest known statement that appeared in Sunzi Suanjing, a Chinese manuscript written during the 3rd to 5th century CE. This first statement was restricted to the following example:

If one knows that the remainder of n divided by 3 is 2, the remainder of n divided by 5 is 3, and the remainder of n divided by 7 is 2, then with no other information, one can determine the remainder of n divided by 105 (the product of 3, 5, and 7) without knowing the value of n. In this example, the remainder is 23. Moreover, this remainder is the only possible positive value of n that is less than 105.

The Chinese remainder theorem is widely used for computing with large integers, as it allows replacing a computation for which one knows a bound on the size of the result by several similar computations on small integers.

The Chinese remainder theorem (expressed in terms of congruences) is true over every principal ideal domain. It has been generalized to any ring, with a formulation involving two-sided ideals.

Local Graph

org-roam 48a3942c-c963-49a0-aa59-b23231eab7f8 (en.wikipedia.org) Chinese remainder ... //en.wikipedia.org/wiki/Mathematics https://en.wikipedia.org/wiki/Mathematics 48a3942c-c963-49a0-aa59-b23231eab7f8->//en.wikipedia.org/wiki/Mathematics //en.wikipedia.org/wiki/Euclidean_division https://en.wikipedia.org/wiki/Euclidean_division 48a3942c-c963-49a0-aa59-b23231eab7f8->//en.wikipedia.org/wiki/Euclidean_division //en.wikipedia.org/wiki/Integer https://en.wikipedia.org/wiki/Integer 48a3942c-c963-49a0-aa59-b23231eab7f8->//en.wikipedia.org/wiki/Integer //en.wikipedia.org/wiki/Divisor https://en.wikipedia.org/wiki/Divisor 48a3942c-c963-49a0-aa59-b23231eab7f8->//en.wikipedia.org/wiki/Divisor //en.wikipedia.org/wiki/Pairwise_coprime https://en.wikipedia.org/wiki/Pairwise_coprime 48a3942c-c963-49a0-aa59-b23231eab7f8->//en.wikipedia.org/wiki/Pairwise_coprime //en.wikipedia.org/wiki/Sunzi_Suanjing https://en.wikipedia.org/wiki/Sunzi_Suanjing 48a3942c-c963-49a0-aa59-b23231eab7f8->//en.wikipedia.org/wiki/Sunzi_Suanjing //en.wikipedia.org/wiki/Modular_arithmetic#Congruence https://en.wikipedia.org/wiki/Modular_arithmetic#Congruence 48a3942c-c963-49a0-aa59-b23231eab7f8->//en.wikipedia.org/wiki/Modular_arithmetic#Congruence //en.wikipedia.org/wiki/Principal_ideal_domain https://en.wikipedia.org/wiki/Principal_ideal_domain 48a3942c-c963-49a0-aa59-b23231eab7f8->//en.wikipedia.org/wiki/Principal_ideal_domain //en.wikipedia.org/wiki/Ring_(mathematics) https://en.wikipedia.org/wiki/Ring_(mathematics) 48a3942c-c963-49a0-aa59-b23231eab7f8->//en.wikipedia.org/wiki/Ring_(mathematics) //en.wikipedia.org/wiki/Two-sided_ideal https://en.wikipedia.org/wiki/Two-sided_ideal 48a3942c-c963-49a0-aa59-b23231eab7f8->//en.wikipedia.org/wiki/Two-sided_ideal 2a07e4ea-610b-4c9a-bb84-d961fb2450e5 Code and Coffee Book Club 2a07e4ea-610b-4c9a-bb84-d961fb2450e5->48a3942c-c963-49a0-aa59-b23231eab7f8