Congruence and Modular Arithmetic

Chinese Remainder Theorem (CRT)

For all integers and , and positive integers and , if , then the simultaneous linear congruences

have a unique solution modulo . Thus, if is one particular solution, then the solutions are given by the set of all integers such that

Generalized Chinese Remainder Theorem (GCRT)

For all positive integers and , and integers , if for all , then the simultaneous congruences

have a unique solution modulo . Thus, if is one particular solution, then the solutions are given by the set of all integers such that