Challenges
Chinese remainder theorem
Cryptography
Medium
Chinese remainder theorem (CRT)
Solves: 7
Chinese remainder theorem
Author: CyberSamSU
Points
40
The Chinese Remainder Theorem (CRT) is very ancient: in the III century AD, Sun Tzu solved the problem "an unknown number whose remainders when divided by 3, 5 and 7 are known". The theorem states: if the moduli are pairwise coprime, the system has a unique solution modulo N = n₁·n₂·n₃.
In cryptography, CRT is everywhere: in speeding up RSA (CRT-RSA), in Håstad's attack, in the Pohlig-Hellman algorithm, and in secret sharing. The formula for combining two equations is: x = a₁ + n₁ · ((a₂ - a₁) · n₁⁻¹ mod n₂).
Solve the following system and find x under the condition 0 ≤ x < N:
x ≡ 3372442 (mod 8393717)
x ≡ 8354889 (mod 20722073)
x ≡ 20442406 (mod 54037019)
Answer: only a number — in decimal format, without spaces and additional characters (for example 1234).
To submit a flag, log in.