Any reference or suggestion for the following problem would be greatly appreciated. I am working on the quotient ring $Q=R[X_1,\dots,X_n]/<f_1,\dots,f_k>$. Given polynomials $p$ and $q$ I want to obtain a polynomial $u$ such that
$$ q\cdot u \equiv p \text{ in } Q .$$
In particular, I have a quotient of polynomials $\frac{p}{q}$ and I would like write it as a simple polynomial not involving any fraction. This should be possible by adding a term that belongs to the ideal and is therefore $\equiv0$.