Let $A(x)$ be a polynomial with integer coefficients. Is there always a polynomial $B(x)$ for which
$$A(x)\cdot B(x)\equiv 1\pmod n$$
(for a given integer $n$). If the answer isn't yes, an answer "yes if $n$ is ____ (fill in with a characteristic the number has to have" would be interesting as well. Of course, no is also an answer.
This question is on the track of what I'm interested in, it just doesn't have the key ingredient, the mod (that's why it turned out trivial).