I just started studying this topic and from my understanding I have to find an integer $x$ such that:
$2^{29}x \equiv 1 \mod 9$
However, I have no idea of how to find a linear combination of $9$ and $2^{29}$ given the structure of both of them.
I tried to work around with $2^{29}$ getting mods for every power but it seems like I'm going to do too many computations when I am pretty sure this could be avoided. I must be missing something, can you help me? I also tried to get a gcd, but I didn't get far.
As $2^3\equiv-1\pmod9,2^{29}=2^2(2^3)^9\equiv4(-1)^9\equiv-4$
So, $2^{29}x\equiv-4x\pmod9$
We need $-4x\equiv1\pmod9\iff x\equiv(-4)^{-1}$
As $-4\cdot2\equiv1\pmod9,(-4)^{-1}\equiv2$