That's even better! I tested them in Excel VBA.

Actually, 2 versions I posted are nearly identical.
The first uses Log() to calculate before hand the number of round to loop,
The second just loops until n*2 > Number.