You know there are 3 boys and an unknown number of girls in a nursery at a hospital. Then a woman gives birth a baby, but you do not know its gender, and it is placed in the nursery. Then a nurse comes in a picks up a baby and it is a boy. Given that the nurse picks up a boy, what is the probability that the woman gave birth to a boy?
So I've narrowed it down (taking the number of girls to be $n$) to:
$$\begin{align*} &P(\text{woman had a boy} \mid \text{nurse picked up boy)}\\ &\qquad= \frac{P(\text{nurse picked up boy} \mid \text{woman had a boy}) P(\text{woman had boy})}{P(\text{nurse picked up boy})}\\ &\qquad=\frac{\frac{4}{(4+n)}\cdot0.5}{3/(3+n)}\;, \end{align*}$$
but there's no way for me to get an analytical answer that makes sense. The correct answer is $\frac{4}{7}$.