What is the last digit of $\operatorname{lcm}(3^{2003}-1,3^{2003}+1)$?
I am able to find out that LCM is $\dfrac{3^{4006}-1}2$. Since $3^{4006}$ has last digit as $8$, now second last digit can be anything from $0-9$. Based on that second last digit, my answer will vary. Please help how to go further?
The two numbers have GCD equal to $2$. So, you're basically asking for the last digit of $(3^{2003}-1)(3^{2003}+1)/2 = (3^{4006}-1)/2$.
By Fermat's theorem, $3^{10 \cdot 4} \equiv 1 \pmod{100}$, since: $$\phi(100) = \phi(5^2 \cdot 2^2) = 5 \cdot 2 \cdot (5-1) \cdot (2-1) = 40 .$$
Thus, the two last digits of $(3^{4006}-1)$ are the same as those of $3^{6}-1 = 728$. Hence, the last digit of $(3^{4006}-1)/2$ is $4$, since you have no carry from the tens.