What will be the remainder when $2^{87} -1$ is divided by $89$?
I tried it solving by Euler's remainder theorem by separating terms:
$$ \frac {2^{87}}{89} - \frac{1}{89}$$
$\phi (89) =88 $
remainder $\dfrac{{87}}{88} = 87;$
this led me to the point from where I started.
So $$2^{88}\equiv 1\pmod {89}$$ and $(2,89)=1$ so $$2(2^{87}-1)=2^{88}-2\equiv 1-2=-1 \pmod {89}$$ so $$2^{87}-1\equiv -2^{-1}\pmod {89},$$ but $2\times 45=90\equiv 1 \pmod {89} and so$ it should be 44.