Just writing the solution a little differently in case it helps anyone... I believe the number of times a smaller number needs to be doubled in order to equal a larger number = Log((larger number / smaller number), base2). To prove it the other way, just multiply the smaller number by (2 raised to that solution). Similarly, for example, if you wanted to know how many times you need to iteratively multiply a small number by 8 in order to equal a larger number, just use base 8 in the log funtion. The prove it the other way by multiplying the small number by (8 raised to that solution). Hope that helps somebody.