Let $f$ be a function of a real variable such that $$f(x) = \frac{1}{e^{2 + \cos(x)} - 1}.$$
Find the (trigonometric) Fourier series of the function $f$ and check if it converges to that function in $R$.
(I have tried a lot of stuff, from trying to calculate residues, to trying to somehow transform it to a real part of something, or even just try to get the result from wolframalpha, but nothing worked.) P.S. I saw that a moderator added a homework tag previously. This is not homework. It is a question from a compilation of advanced problems, and I am just curious as to how this one would be solved.