Q: Is it possible to calculate the integral $$ \int\limits_0^\infty \int\limits_0^\infty\frac{\cos\frac{\pi}2 \left(nx^2-\frac{y^2}n\right)\cos \pi xy}{\cosh \pi x\cosh \pi y}dxdy,~n\in\mathbb{N}\tag{1} $$ using residue theory?
For example, when $n=3$ $$ \int\limits_0^\infty \int\limits_0^\infty\frac{\cos\frac{\pi}{2} \left(3x^2-\frac{y^2}{3}\right)\cos \pi xy}{\cosh \pi x\cosh \pi y}dxdy=\frac{\sqrt{3}-1}{2\sqrt{6}}. $$ There is a closed form formula to calculate (1) for arbitrary natural $n$, but I don't know how to do it by residue theory. Maybe it is possible in principle, but is residue theory practical in this particular case? It seems such an approach would lead to a sum with $O(n^2)$ terms. Any hints would be appreciated.