Let $G$ be a compact abelian connected metric group with Haar measure $\mu$ and let $f\colon G\to S^1$(=unit circle in $\mathbb{C}$) be a continuous function (not necessarily a group homomorphism) such that $\int_G fd\mu\neq0$. Can we say something about the set $\{k\in\mathbb{Z}\mid \int_G f^kd\mu\neq0\}$? Is this a question that has been studied in the literature?
Properties that I am potentially interested in would be: Does it always contain an arithmetic progression? Or does it even have finite complement in $\mathbb{Z}$?