Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 01m 37s1 days 16 hours 1 minutes 37 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 01m 37s1 days 16 hours 1 minutes 37 seconds.

Sign in to watch this lesson
Advanced - Number Theory · 4:22
For pairwise coprime moduli, the system x ≡ aᵢ (mod mᵢ) has exactly one solution modulo their product: x ≡ 2, 3, 2 (mod 3, 5, 7) gives 23 (mod 105). It is built from Bézout switches or, more safely, by merging one congruence at a time; with shared factors the remainders must agree modulo each gcd and the answer is unique modulo the lcm. Garner's algorithm rebuilds a number from its residues as mixed-radix digits, which lets big integers be carried as residues modulo many primes.