I need to find that $10^{100}\equiv9 \pmod {19}.$
I started with $10\equiv-9 \pmod {19}.$
So $10^3\equiv-729 \pmod{19}.$
But $729\equiv7\pmod{19}$ so $10^3\equiv-7\pmod{19}.$
Which gives me $10^{100}\equiv (-7)^{33} \cdot( -9) \pmod {19},$ using $100=3\cdot 33+1.$
If this is correct we should normally have $(-7)^{33} \equiv -1 \pmod {19}$ to match with the final solution.
But I do not see why?
Thank you.