Let $X \sim \operatorname{Exp}(\lambda)$ and $Y \sim \operatorname{Poisson}(\mu)$, where $X$ and $Y$ are independent and $\mu < \lambda$. Compute $\mathop{\mathbb{E}}[X^Y]$ using conditional expectation. We are given that the expectation of the moment generation function ($\mathop{\mathbb{E}}[e^{tX}]$) of $X$ is $\frac{\lambda}{\lambda - t}$, though I'm not sure where to use this.
So far, what I've been able to do is $\mathop{\mathbb{E}}[X^Y] = \mathop{\mathbb{E}}[X^Y|Y=y]$ for all $y$. But I'm not sure how to proceed as there are both continuous and discrete distributions here.
A correct starting point is instead: $$\mathop{\mathbb{E}}[X^Y] = \sum_{y=0}^\infty \mathop{\mathbb{E}}[X^Y|Y=y] \mathop{\mathbb{P}}[Y=y] = \sum_{y=0}^\infty \mathop{\mathbb{E}}[X^y] \mathop{\mathbb{P}}[Y=y] $$