This is an exercise from the book Fourier analysis: An Introduction, by E.Stein and R.Shakarchi.
Let $ g(x) = 1-|x|$ if $|x| \le 1$ and $g(x)=0$ otherwise. The exercise asks us to apply Poisson summation to the function $g$ to obtain : $$ \sum_{n=-\infty}^{\infty}\frac{1}{(n+a)^2}= \frac{\pi^2}{\sin^2(\pi a)}.$$
The Poisson summation formula given in text book is, $$\sum_{n \in \mathbb{Z}} f(x+n) = \sum_{n \in \mathbb{Z}}\hat{f}(n)\exp(2i\pi nx), $$ under appropriate conditions for $f$.
I was able to show that $\hat g(s) = \frac{\sin^2(\pi s)}{\pi^2 s^2}.$ If I put $f=g$ I get $\hat g (n) =0$ for non zero $n$ and $\hat g(0) = 1$. So RHS in above formula will be $1$ while the LHS will be of the form $ 1-|x+n_0| $ where $ n_0 $ depends on $x$.
I do not understand how to proceed here.