In this question, I mentioned that, assuming the digits of pi are independently-random, then at some point in pi's expansion there will be a sequence of one million consecutive 0's. I decided to determine exactly how many digits ($d$) of $\pi$ we'd have to look at to have a 50% chance of seeing $n$ consecutive 0's.
I was able to solve for $d$:
$$(1-10^{-n})^d = 0.5$$
$$d = \frac{\log(0.5)}{\log(1-10^{-n})}$$
However, while playing around with this expression, I discovered by accident that it is either equal to or nearly equal to
$$d \stackrel{\hbox{?}}{\hbox{=}} \ln(2) \cdot 10^n$$
I've been unable to reduce the first equation to the second, or to show why they should be nearly equal.
Could anyone shed some light - are they equal? And why does the natural-log come into this? Is this somehow related to other results in probability (which I know uses $e$ extensively)?