OK so I know how to solve linear congruences when they're positive but negative is a different story..
I have $$ 200x\equiv 13 \pmod {1001} $$
I got the inverse as $$ -5 $$ and then I multiply both sides with the inverse to get:
$$ -1000x \equiv -65 \pmod {1001} $$
So $$ x \equiv -65 \mod {1001} $$
Is that correct? I tried to perform a check by substituting it back in the equation but it won't work :(
Thanks!