TITLE: Partial fraction of $\prod_{j=1}^{N}\frac{1}{(x-a_{j})^{n_{j}}}$
QUESTION [6 upvotes]: Does anybody know the partial fraction decomposition of 
$$
\prod_{j=1}^{N}\ \frac{1}{(x-a_{j})^{n_{j}}}
$$ 
with all $a_{j}$ different and $n_j$ positive integers? I know you can get it with the residue but the differentiation is awkward.

REPLY [3 votes]: New answer
If we write the partial fraction decomposition as 
$$
\prod_{j=1}^N\ \frac{1}{(x-a_j)^{n_j}}
=\sum_{j=1}^N\ \sum_{p=0}^{n_j-1}\ \frac{c_{j,p}}{(x-a_j)^{n_j-p}}\quad,
$$ 
then we have
$$
c_{j,p}=(-1)^p\sum_{u\in S(j,p)}\ \prod_{k\neq j}\ 
\binom{n_k-1+u_k}{n_k-1}\ \frac{1}{(a_j-a_k)^{n_k+u_k}}\quad,
$$
where $S(j,p)$ is the set of those maps 
$$
u:\{1,\dots,N\}\setminus\{j\}\to\mathbb N,\quad k\mapsto u_k
$$
which satisfy 
$$
\sum_{k\neq j}\ u_k=p.
$$
To prove this, it suffices to observe that, for $1\le j\neq k\le N$, the degree less than $n_j$ Taylor polynomial of 
$$
\frac{1}{(x-a_k)^{n_k}}
$$
at $a_j$ is 
$$
\sum_{q=0}^{n_j-1}\ \binom{n_k-1+q}{n_k-1}\ \frac{(-1)^q}{(a_j-a_k)^{n_k+q}}\ (x-a_j)^q\quad.
$$
Old answer
An expression for the partial fraction decomposition is obtained by combining Robert's answer with Theorem $11$ p. $8$ in this pdf document (Internet Archive), accessible from this html page (Internet Archive).