$\fbox{$13x + 1 \equiv 0 \pmod {100}$}$
I solved the equation above by trying different multiples to isolate $x$ until I found something that worked. I have two questions:
$\fbox{$1.$}\ $ What if there was no solution for $x$? How would I be able to prove it?
$\fbox{$2.$}\ $ Are there a set of steps that I could program a computer to follow and get an answer if other similar modular equations are inputted?
My solution is below:
$13x +1 \equiv 0 \pmod {100}$
$13x \equiv 99 \pmod {100}$ (added $99$ to both of equation and applied the $\mod 100$ to the left side)
$104x \equiv 792 \pmod {100}$ (multiplied both sides by $8$)
$4x \equiv 792 \pmod {100}$ (removed a $100$ from the left side)
$x \equiv 198 \pmod {100}$ (divided both side by $4$)
Like I said, I believe I got the right solution but only through trial and error. I was wondering if there is a more systematic way of solving these problems.
Thank you for any help.