[parent]
In a modern processor, each data size is a maximum of 64 bits. If the data size exceeds 64 bits, its computations can be handled efficiently by using the Chinese remainder theorem, ensuring that each co-prime modulus satisfies (where ), so that we can represent a large value as , where . Then, for any pair of big numbers and , we can compute and as follows:
Note that all terms
where
are 0 modulo ,
because .
This is because
and .
Thus
is a multiple of .
This is because as shown in step 3 in the proof of Theorem A-13.1
Thus, the Chinese remainder theorem gives us the following useful formula:
Theorem A-13.2 Application of the Chinese Remainder Theorem
Suppose there are two big numbers and where is a the product of co-prime moduli , we have an isomorphism as follows:
Based on the above isomorphism, the following is true:
, where each element-wise addition/multiplication can be independently done modulo
[parent]