Let $X \sim Bi(n,p)$, and $Y \sim \mathcal{G}(p)$.
(a) Show that $P(X=0)=P(Y>n)$.
(b) Find the number of kids a marriage should have so as the probability of having at least one boy is $\geq \frac{8}{9}$.
For (a), $P(X=0)$ is the probability of having $0$ successes in $n$ trials with $p$ the probability of success. So $P(X=0)=\binom{n}{0}(1-p)^n=(1-p)^n$. I am a bit confused with the calculation of $P(Y>n)$. Maybe it is easier to calculate $$P(Y>n)=1-P(Y\leq n).$$
I've calculated that expression but I am not at all positive it is correct. $P(Y\leq n)$ would be the sum of the probabilities of the first success happening at the i-th trial for $1\leq i \leq n$. So I thought $$P(Y \leq n)=\sum_{i=1}^n (1-p)^{i-1}p.$$
Bu, in general, $(1-p)^n \neq 1-\sum_{i=1}^n (1-p)^{i-1}p$, so I am clearly doing something wrong.
For (b) I have no idea what to do, I would really appreciate suggestions and corrections on my work in (a).
(a) Given the expressions of the pmfs for the binomial and geometric distributions: $$ \mathbb{P}\{X=0\} = \binom{n}{0} p^0(1-p)^n = (1-p)^n $$ while indeed \begin{align} \mathbb{P}\{Y > n\} &= 1 - \mathbb{P}\{Y \leq n\} = 1 - \sum_{k=1}^n (1-p)^{k-1}p \\ &= 1 - p\sum_{k=0}^{n-1} (1-p)^{k} = 1-p\frac{1-(1-p)^n}{1-(1-p)}\\ &= 1-p\frac{1-(1-p)^n}{p} = (1-p)^n = \mathbb{P}\{X=0\}. \end{align} (using the closed form expression of a geometric series).
For (b), let $Z$ be the number of boys amongst $n$ children, assuming that each chldren is a girl or a boy independently, with probability $1/2$. Then you are looking for the smallest $n$ for which $\mathbb{P}\{Z=0\} \leq 1-8/9=1/9$. What is the distribution of $Z$? (Hint: you should use (a) to find $\mathbb{P}\{Z=0\}$ as a function of $n$ only).