Given a generating function (ordinary, exponential, or otherwise) such as $$ G(a_n;\, x) := \sum_{n=0}^\infty a_nx^n $$ where one or more $a_n = 0$, is there any way to prove that $G$ does or does not have an infinite number of zeros (i.e., there is no maximum $m$ such that $a_m=0$)?
For example, let's say I have a $G$ which yields $$ G(a_n;\, x) = a_2x^2 + a_3x^3 + a_5x^5 + a_6x^6 + a_7x^7 + a_8x^8 + a_{10}x^{10} + \dotsb $$ where the gaps (“zeros”) are exactly when $n$ is an integer square — leaving aside for the moment the obvious fact that this clearly isn't the best way to generate the set of squares in a power series, can the definition of $G$ be used to prove that the set of integer squares is infinite?