In my textbook, there's an example of calculating the remainder of a large integer by using $-1$ like this:
$$4^{11}5^{13} \bmod 21 \equiv 20^{11}25 \bmod 21 \equiv (-1)^{11}4 \bmod 21 \equiv -4 \equiv 17 \,(\bmod 21)$$
It is not explained at any point. What am I missing?
It's simply $$\begin{align*}4^{11}5^{13}=4^{11}5^{11}5^2=(4\cdot5)^{11}\cdot5^2=(\color{red}{21}-1)^{11}\cdot 25&\equiv (\color{red}{0}-1)^{11}\cdot 25\pmod {\color{red}{21}}\\&\equiv {-1}^{11}\cdot 4\equiv...\pmod {\color{red}{21}}\end{align*}$$