How can we calculate remainder when $3^{2014}$ is divided by $10,000$?
Can we solve it using the binomial theorem?
My solution: We can write $3^{2014} = 9^{2007} = -(1-10)^{2007}$. Now,
$$(1-10)^{2007} = \binom{2007}{0}-\binom{2007}{1}(10)+\binom{2007}{2}(10)^2-\binom{2007}{3}(10)^3+M(10,000)$$
Where $M(10,000) = $ Multiple of $10,000$. So:
$$(1-10)^{2007} = 1-2007\cdot (10)+(2007)\cdot (1003)(10)^2-(667)\cdot (1003)\cdot (2005)\cdot(10)^3+M(10,000)$$
$$-(1-10)^{1007} = -1+20070-(20130210)+(13413470050)+M(10,000)$$
But this answer is not right. Please help me.
Is there is any better method than that? If so, please explain it to me.