Determine the last three digits of \[2003^{2002^{2001}}.\]
Problem
Source:
Tags: Euler, modular arithmetic, Congruences
25.05.2007 03:24
Let $\phi(\cdot)$ be Euler totient function. Since 2003 is co-prime to 10 and $\phi(1000)=400$, we have \[2003^{2002^{2001}}\equiv 3^{2002^{2001}\bmod 400}\pmod{1000}.\] Note that $400=16\cdot 25.$ It is clear that $2002^{2001}\equiv 0\pmod{16}.$ On the other hand, since $\phi(25)=20,$ \[2002^{2001}\equiv 2^{2001\bmod 20}\equiv 2\pmod{25}.\] Using CRT, we have $2002^{2001}\bmod 400=352.$ Therefore, \[2003^{2002^{2001}}\equiv 3^{352}\equiv 241\pmod{1000}.\]
14.12.2007 23:04
maxal wrote: Using CRT, we have $ 2002^{2001}\bmod 400 = 352.$ Hmm... how exactly did you compute that?
14.12.2007 23:32
It's eay to check that both are equal $ \mod 25$ and $ \mod 16$. And nothing more is required to be shown.
15.12.2007 00:37
ZetaX wrote: It's eay to check that both are equal $ \mod 25$ and $ \mod 16$. And nothing more is required to be shown. Hmm... I need sleep urgently.
13.09.2016 09:50
http://www.artofproblemsolving.com/community/c6h77796p445961
21.06.2024 10:11
Use charmichael lambda function. $\lambda(1000)=100\implies a^{100}\equiv1\pmod{1000},\text{if} \gcd(a,1000)=1$ $2003^{{2002}^{2001}}\equiv 2003^{2002^{2001}\pmod{100}}\pmod{1000}$ $\equiv 3^{2^{2001}\pmod{100}}\equiv 3^{52}\equiv241 \pmod{1000}$