Find the last eight digits of the binary development of $27^{1986}$.
We define $v_p(x)$ such that if $v_p(x) = n$, then $p^n \mid x$ but $p^{n+1} \nmid x$. Now we see that if $n \geq 2$ is an integer and $r$ is even, if $v_2(3^r-1) = n$, then $v_2(3^{2r}-1) = n+1$. Otherwise if $n$ is odd then if $v_2(3^r-1) = n$, then $v_2(3^{2r}-1) = n+2$.
How do I continue from here?
The crucial facts for the solution are:
You want to compute $27^{1986} \bmod{256}$
$3^{64} \equiv 1 \bmod{256}$
$3\cdot1986 \equiv 6 \bmod 64$
These imply that $27^{1986} = 3^{3\cdot1986} \equiv 3^6 = 729 \equiv 217\bmod{256}$.