Can someone show me the way how to solve below questions?
X_{i }: independent identically distributed discrete random variables.
N : positive random variable
X_{i} and N are all mutually independent.
How can i define the random sum as
And how i can compute the probability generating function of S.