Lemma (generating function of random sums)
Let $N, X, X_1, X_2, X_3,\ldots$ be non-negative integer-valued independent random variables, and suppose $X,X_1,X_2,X_3,\ldots$ are identically distributed. Define the random sum $$ S_N = \fsum n1N X_n. $$
Then $$ G_{S_N} = G_N \circ G_X. $$