Problem 1
Let and be positive integers with . In their decimal representations, the last three digits of are equal, respectively, to the last three digits of . Find and such that has its least value.
Step 2 of 8: Split the modulus with the Chinese Remainder Theorem
In plain words
Working mod 8 and mod 125 separately is much easier than mod 1000 directly.
Detailed analysis
Since and are coprime, the condition splits into two independent conditions, one modulo and one modulo .