Let $n$ be a positive integer where $n$ and $10$ are coprime number. Prove that then the last 3 digits of $n^\text{101}$ will be equal to the last 3 digits of $n$.
SOURCE: Bangladesh Math Olympiad
I basically know how to find the last digit of a base with a large exponent. Whatever the exponent in the event of one digit such as $1, 5, 6$ and $9$ will be, the last digit of the number will always result in that specific number which we have used.
So, the last 3 digit of $n$ can be constructed in $^4P_3$ ways with having that 4 digits $1, 5, 6$ and $9$ respectively. But how to determine only that distince value of $n$ and justify that the number and $10$ are coprime number>
The instruction of any kind of reference or any good books related with decimal expansion or number theory will be very helpful for me in the case of a beginner and some basic conception because there is no availability of satisfactory books written on number theory in our country which I have read some. Thanks in advance.