Suppose that the random variable $X$, which has a negative binomial distribution with probability $p$ and parameter $r$, can be represented as the summation of $N$ iid random variables $Y_1, Y_2, \ldots$:
$$X = Y_1 + Y_2 + \cdots + Y_N.$$
If $N$ has a Poisson distribution and is independent of $Y_1, Y_2, \ldots$, what is the probability distribution of each $Y_1, Y_2, \ldots$ and what is the value of the Poisson parameter?
I tried but have no idea. If I know the distribution of $Y_i$, I can get the distribution of $X$, which is their summation, a compound poisson distribution. But in this case, it is the reverse.
I think you are looking for this wikipedia page.