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 6 of 8: Lower-bound the order using mod 5
In plain words
Any modulus-125 relation must also hold mod 5, so mod-5 behaviour trims the candidate orders.
Detailed analysis
If then also . Since and has order modulo (as ), the order modulo must be a multiple of , leaving only among the divisors of .