This question covered large exponents on the $b$ side. What about the $m$ side?
Given:
$$a^b \pmod m$$
where $m$ is a large compound number.
For example:
Given
$$5^{2003} \pmod {7} \equiv 3$$ $$5^{2003} \pmod {11} \equiv 4$$ $$5^{2003} \pmod {13} \equiv 8$$
how can one quickly deduce:
$$5^{2003} mod (7*11*13)$$