How to prove:
If $a\mid b$, then $2^b \equiv 1 \pmod{2^a-1}$.
I learned wilson's theorem, fermat's little theorem. I have no idea how to provide these 2 into the prove.
How to prove:
If $a\mid b$, then $2^b \equiv 1 \pmod{2^a-1}$.
I learned wilson's theorem, fermat's little theorem. I have no idea how to provide these 2 into the prove.
Note that since $b = ka$, $2^b = (2^a)^k$
$\begin{align}\text{Then }2^b-1 &= (2^a)^k-1 \\&= (2^a-1)\big((2^a)^{k-1}+(2^a)^{k-2}+\cdots+2^a+1\big)\end{align}$
and $2^a{-}1\mid 2^b{-}1$ as required.