There is a simple closed formula for the remainder $R$ and the quotient $Q$ of the euclidean division of a polynomial $P$ by a nonzero polynomial $D$. Here $P,D,Q,R$ are in $\mathbb C[X]$.
For any complex number $a$, any nonnegative integer $k$, and any rational fraction $f(X)\in\mathbb C(X)$ defined at $a$, let $$T_a^k(f(X))$$ be the degree at most $k$ Taylor approximation of $f(X)$ at $X=a$.
We may assume
$$
D(X)=\big(X-a_1\big)^{m_1}\cdots\big(X-a_r\big)^{m_r},
$$
where the $a_j$ are distinct and the $m_j$ positive. Then we have
$$
R(X)=\sum_{j=1}^r\ T_{a_j}^{m_j-1}\left(P(X)\ \frac{(X-a_j)^{m_j}}{D(X)}\right)
\frac{D(X)}{(X-a_j)^{m_j}}\quad.
$$
If $m_j=1$ for all $j$, we get Lagrange's Interpolation Formula
$$
R(X)=\sum_{j=1}^r\ P(a_j)\ \prod_{k\not=j}\ \frac{X-a_k}{a_j-a_k}\quad.
$$
If $\deg P < \deg D$, then $Q=0$. Otherwise, putting $q:=\deg P-\deg D$ and $f:=P/D$, we have
$$
Q(X^{-1})=T_0^q\Big(f(X^{-1})X^q\Big)X^{-q}.
$$