[Math] Calculate the number of digits in a product of large numbers

algorithmsnumber theory

I'm looking for a method that can calculate the number of digits in a product of several large numbers. For example, calculate the number of digits in the product 4*51*6001*70001*800001*9000001? I know the basic technique is to factor out tens, but I would like to know some details about this method. Thank you all!

Best Answer

For the general case, you should consider the base 10 logarithm of the number. It should be easy to simplify things since $\log_{10}{ab} = \log_{10}{a} + \log_{10}{b}$.

But since calculators are not allowed for your specific example, we'll have to do it a bit differently. The product in your specific example is roughly equals to $4 \times 50 \times 6000 \times 70000 \times 800000 \times 9000000$. I guess its easier to calculate the number of digits from here on, and probably the only way (AFAIK) to do it without a calculator for your specific example.