I want to calculate the last three digits of $132^{1601}$. This is equivalent to find $x \equiv 132^{1601} \pmod {1000}$.
This is how I've solved it:
$\Phi(1000)=400,$
$132^{400} \equiv 1 \pmod {1000},$
So $x \equiv 132^{1601} \pmod {1000} \equiv (132^{400})^4132 \pmod {1000} \equiv 132 \pmod {1000}.$
Is this approach correct?
Thanks.
EDIT: one of my friends suggest that it must be split using the Chinese reminder theorem and that the solution is $632 \pmod {1000}$. How is that possible?
You can not apply Euler to this directly, since $132$ is not relatively prime to $1000$. Indeed, it is clear that $132^{400}\not \equiv 1 \pmod {1000}$ since this would imply that $2\,|\,1$.
To solve the problem, work mod $2^3$ and $5^3$ separately. Clearly $132^{1601}\equiv 0\pmod {2^3}$. Now, $\varphi(5^3)=100$ and Euler applies here (since $\gcd(132,5)=1$) so we do have $$132^{100}\equiv 1 \pmod {5^3}\implies 132^{1600}\equiv 1 \pmod {5^3}$$
Thus $$132^{1601}\equiv 132\equiv 7\pmod {5^3}$$
It follows that we want to find a class $n\pmod {1000}$ such that $$n\equiv 0 \pmod 8\quad \&\quad n\equiv 7 \pmod {125}$$ The Chinese Remainder Theorem guarantees a unique solution, which is easily found to be $$\boxed {132^{1601}\equiv 632\pmod {1000}}$$
Note: with numbers as small as these, the CRT can be solved by mental arithmetic (or, at least, by simple calculations). We start with $7$. Clearly that isn't divisible by $8$ so we add $125$ to get $132$. That's divisible by $4$, but not by $8$. Now, adding $125$ to this would give an odd number so add $250$. We now get $382$, still no good. Adding $250$ again gives $632$ and that one works, so we are done.
If you prefer to solve it algorithmically, write the solution as $n=7+125m$ We want to solve $$7+125m\equiv 0\pmod 8\implies 5m\equiv 1 \pmod 8\implies m\equiv 5 \pmod 8$$ In that way we get $n=7+5\times 125=632$.