This is an old question, but a probabilistic interpetation was requested, but not given. So, I give it here.
Consider continually tossing a $p$-weighted coin. Let $X_i$ be the number of tosses between the $(i-1)$-th and $i$-th head. Then, $X_1, X_2, ... \sim^\mathsf{iid} \operatorname{Geometric}(p)$. The sum $Y := \sum_{i=1}^n X_i$ is just the time until the $n$-th head.
How do we calculate this? Well, if it takes $m \ge n$ tosses, then precisely $n$ of the tosses must be heads and the remaining $m-n$ tails. These particular events have probability $p^n$ and $(1-p)^{m-n}$, respectively.
Now, we just need to count how many ways they can be ordered. One might think it's $\binom mn$: after all, there are $n$ heads to place amongst $m$ tosses. However, the last toss is always a head: that's when you stop. So, there are actually $n-1$ heads to places amongst $m-1$ tosses. Hence, there are $\binom{m-1}{n-1}$ orderings.
Multiplying these three numbers gives the required PDF:
$$
\mathbb P(Y = m) = \binom{m-1}{n-1} p^n (1-p)^{m-n}.
$$