I have to solve the following equation: $x=2^{-18} \mod 143$.
The problem is that I can't use Fermat's little theorem as $\varphi(143)=120$ which doesn't help at all. The other method I know is to find the inverse of $2^{18} \mod 143$ using Euclid's extended algorithm but that would mean to find the inverse of $362144 \mod 143$ which doesn't seem like a good method to me...Any other ideas how I can solve this? Thank you!
You can work modulo $11$ and $13$ and stitch the results together using the Chinese Remainder Theorem. For example:
$$2^{18}\cdot 2^2=(2^{10})^2\equiv 1 \bmod 11$$ by Fermat, so that $2^{-18}\equiv 4 \bmod 11$ as a start.
For CRT note that $6\cdot 11-5\cdot 13=1$ so that $-65a+66b=c \equiv a \bmod 11, \equiv b \bmod 13 $, and the same is true of $c$ reduced modulo $143$.