We toss a fair coin until we've tossed tails exactly 4 times. Let $X$ be the number of tossed heads. What is the distribution of $X$?
My attempt:
We keep tossing the coin until we have registered 4 tails. Suppose that we needed $n$ tosses. The last toss has to be tails, and exactly three of the preceding tosses had to be tails as well:
$$ P(\text{4 tails}|n \text{ tosses})=\frac12\cdot \binom{n-1}{3}\left(\frac 12\right)^3\left(\frac 12\right)^{n-4}=\frac{(n-1)(n-2)(n-3)}{6\cdot 2^n}.$$ This is also the probability of tossing $n-4$ heads, knowing that we needed $n$ tosses to stop the game.
Is this the answer to the question? How do I find 'the distribution' of $X$?
Thanks.