(12x)mod147 = 7
is there any x in Z147(0,1,....,146) to satisfy the equation?
as far as I learned, If 12 has the multiplicative inverse in Z147,
x = (12^(-1) * 7)mod147
and gcd(12,147)=1, 12 has the multiplicative inverse in Z147 and it is Amod147,
where 12A+147B=1.
combine these two statements,
gcd(12,147)=1, x = (12^(-1) * 7)mod147
however, gcd(12,147)=3≠1, it implies that there exist some b in Z147,
(12x)mod147 ≠ b,
but I don't know whether b is 7 or not?
so, how do I deal with this kind of problem?