Show that $$\sum_{n=-\infty}^\infty \frac{1}{(3n-1)^2} = \frac{4\pi^2}{27}$$
Here is what I tried so far. I know that I can use the Residue theorem to solve a summation of this form.
$$\sum_{n=-\infty}^{\infty} f(n) = -\sum_k \text{res}_{z=z_k} \pi \cot{\pi z}\, f(z)$$
So the poles of $\frac{1}{(3z-1)^2}$ is z= $\frac{1}{3}$ (order 2).
Next I need to find the residues of $\frac{1}{(3n-1)^2} \times \pi \cot(\pi z)$ at z= $\frac{1}{3}$. But, the limit of $\frac{1}{(3z-1)^2} \times \pi \cot(\pi z)$ at z= $\frac{1}{3}$ is $\infty$.
I am not sure what to do at this point. Any help is appreciated.