🔢

Chinese Remainder Theorem

★★★★☆Undergraduate

📖Definition

A system of congruences with pairwise coprime moduli has a unique solution. It allows decomposing large computations into smaller ones.

📐Formulas

x ≡ a₁ ±odn₁, …, x ≡ aₖ ±odnₖ

System of congruences

x ≡ ∑ᵢ aᵢ Nᵢ Mᵢ ±odN

Solution formula (N = n₁...nₖ, Nᵢ = N/nᵢ, MᵢNᵢ ≡ 1 mod nᵢ)

✏️Examples

예제 1

Find x where x ≡ 2 (mod 3), x ≡ 3 (mod 5).

📜History

Discovered by: Sunzi (Chinese mathematician) (c. 3rd century)

First appeared in Sunzi Suanjing, famous for counting soldiers problem.

Applications

Cryptography

RSA decryption speedup

Computer Algebra

Large number decomposition

Scheduling

Periodic event calculation

🔗Related Documents

Next Topics

#중국인나머지#연립합동#CRT#Chinese remainder