\frac{a_{i1}}{x-a}+\cdots+\frac{a_{in_i}}{(x-a)^{n_i}}