Given N=∏i=1kni where each moduli(or divisor) ni is a pairwise , and the set of ai is given as below:
x≡a1(modn1)⋮x≡ak(modnk) Then the system has a unique solution x under modulo N such that:
x≡s1⋅i=1∏ni+s2⋅i=2∏ni+⋯+sk⋅i=k∏ni(modN) where each si satisfies:
si⋅j=i∏nj=ai(modni) In other words, a set of modulus statements can be reduced to a single statement.
Take the example below:
x=⎩⎨⎧2(mod3)3(mod5)2(mod7) 35⋅s1≡2⋅s1≡2(mod3)21⋅s2≡s2≡3(mod5)15⋅s3≡s3≡2(mod7) Solving these gives s1=1,s2=3 and s3=2. Then the solution is
x≡1⋅35+3⋅21+2⋅15≡128≡23(mod105)