Problem: Investigate the convergence of $\sum a_n$, where $a_n =\int_{0}^{1} \frac{x^n \sin(\pi x)}{1-x} \, \mathrm{d}x$.
I'm thinking about changing $\frac{1}{1-x}$ to $\sum x^k$ and then exchange the integral and the sum but it came back to the original form. Or I just take the sum of $a_n$ switch the sum and integral since the integrand is nonnegative and measurable function. Then the integrand becomes $\frac{\sin(\pi x)}{(1-x)^2}$,so I think the series should diverge.