I learned this rule in 12th Grade when my Economics teacher taught the class the rule. After he mentioned it I was curious to explain why this number comes into the equation.
This is mostly a statistics question. The explaination will be based on an analouge of the method of least squares.
The method of least squares says an approximating curve to a set of finite points is best when the sum of its squares is minimal (if anybody wants me to lecture on this I would. This is one of the things in math I love talking about). The analoague here is that we want to approximate a curve with another curve. And since we have to find the sum of the squares of the points he need to use an integral. Here is another way to look at it. One curve is very closely approximated to the given curve means when we compute the area between the actual curve and approximated curve we get a very small number. For simplicity reasons we compute the square of the area and try to minimize it.
Okay returning to the problem.
Say the bank offers an increase of

in the money. And

is the initial amount of money. Then,
1 year

2 years

3 years

...
In general,

after

years.
We need to find the value of

such that.

. Note, this value of

might not be an integer. Say for example we get

it
does not mean 1.5 years because the bank only pays once a year not half a year. But what this number tells us is that

is too little and

exceeds

but this is the answer. Anyway, you understand what I am saying.
So we need to solve,

who places zero dollars in a bank?

This tells us that the doubling time
does not depend the initial amount.
Take the logarithms (any base),

Thus,

Now let us graph this curve (shown below).
Wow! This curve looks familar.
This looks like a hyperbola.
So it has the equation,

Where

is the ideal constant that will minimized the error.
Look at the picture.
The red curve is the exact value of

.
And the black curve is the ideal approximating hyperbola.

Note they are almost identical when the rate of interest is small.
And that happens to be true, no bank gives for


.
So the reasonable interval is,
By what I said before we need to minizime,

Open Parantheses,

Simpson's rule,

Ideal value is when,

Thus,

Thus,

Of course it depends what the reasonable interval is.
When I did this problem my first time I got something like,