As it usually goes with asking questions for a third person... You don't get it right the first time.
Question I asked here is as follows:
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).
The real asker of the question forgot to mention the master key ingredient to me, though. Multiplication in that congruence is not the ordinary one. It is done on $\mathbb{Z}(\mathbb{R})/(x^N-1)$, so it should read
$$A(x)\cdot B(x) \text{ mod } (x^N-1) \text{ mod } n = 1$$
in a bit abused mod notation. I didn't edit the original question, since people already gave the correct answer to that question as it was stated. So, the question is still open - is there a $B$ for every $A$, now in this manner of multiplication?