Compute \(3^{11}\text{.}\)
First, we compute the binary expansion of \(11 = (1011)_2\text{.}\) Then
\begin{equation*}
3^{11} = 3^{2^3 + 2^1 + 1} = 3^8 \cdot 3^2 \cdot 3.
\end{equation*}
Notice that we can compute \(3^8\) as \((3^4)^2\text{.}\) Similarly, \(3^4 = (3^2)^2\text{.}\) We have by repeated squaring,
\begin{align*}
3 \amp = 3 \\
3^2 \amp = 9 \\
3^4 \amp = 9^2 = 81 \\
3^8 \amp = 81^2 = 6561.
\end{align*}
Thus, using the above,
\begin{equation*}
3^{11} = 3^{2^3+2^1+1}=3^8 \cdot 3^2 \cdot 3= 6561 \cdot 9 \cdot 3 = {177147}.
\end{equation*}
In this computation, we cut the number of required multiplications in half. For larger exponents \(n\text{,}\) the savings are even more extreme.
