Finding a trigonometric polynomial
Solution 1:
Writing the answer here to close the question. Thanks to @5pm for the hint.
Since $ z^k F(z)$ is a polynomial. $z = 0$ is the only pole of $F$ and all $\gamma_j = 0$. This makes the last term in the question a polynomial.