How can I prove that $$\sum_{n=1}^\infty \frac{\sin(nx)}{\sqrt{n}}$$ converges pointwise on $[-\pi, \pi]$ but not uniformly?
For the pointwise part, I tried to prove it by comparison, using $$\sum_{n=1}^\infty \frac{\sin(nx)}{\sqrt{n}} \leq \sum_{n=1}^\infty \frac{nx}{\sqrt{n}} = \sum_{n=1}^\infty x\sqrt{n},$$ which does not converge.
I also tried $$ \sum_{n=1}^\infty \left| \frac{\sin(nx)}{\sqrt{n}}\right| \leq \sum_{n=1}^\infty \left| \frac{1}{\sqrt{n}}\right|,$$ which does not converge either.
For the pointwise convergence, use Dirichlet's test.
To see that it's not uniform, note that $\sin(nx) > 2 n x/\pi$ if $0 < n x < \pi/2$. Take $x = 1/N$ and consider the $N$'th partial sum
$$ \eqalign{\sum_{n=1}^N \frac{\sin(n/N)}{ \sqrt{n}} &\ge \frac{2}{\pi N} \sum_{n=1}^N \sqrt{n} \cr&\ge \frac{2}{\pi N} \int_0^N \sqrt{t}\; dt = \frac{4\sqrt{N}}{3\pi}}$$