If I need to find the multiplicative inverse of an element in some $T[x]/(m)$ factor ring, do I need to solve a diophantine equation to get the solution?
Let the element be $f$. Then $fu \equiv 1$ (mod $m$) so $fu-mv=1$. Is this correct? $u$ is the inverse