Can we use log10 to find the first digit of 3100?
Question
To nine decimal places, log102=0.301029996 and log103=0.477121255.
- Calculate log105 and log106 to three decimal places. By taking logs, or otherwise, show that 5×1047<3100<6×1047.
Hence write down the first digit of 3100.
- Find the first digit of each of the following numbers: 21000; 210000; and 2100000.
Solution
The laws of logs tell us that
log10(ab)log10(ab)=log10a+log10b,=blog10a,
and combining the two we have that log10(ba)=log10(ab−1)=log10a+log10b−1=log10a−log10b.
Recall that log1010=1, by definition. We have that log105=log10(210)=log1010−log102=1−0.301029996=0.699 to three decimal places.
Similarly, we have that log106=log10(3×2)=log103+log102=0.477121255+0.301029996=0.778 to three decimal places.
Now we wish to show that 5×1047<3100<6×1047. We can calculate that log10(5×1047)=log105+47log1010=0.699+47=47.699. Further, we have log103100=100log103=47.712, to three decimal places. Finally, we find that log10(6×1047)=log106+47log1010=0.778+47=47.778. Combining these, we have that log10(5×1047)<log103100<log10(6×1047). Therefore 10log10(5×1047)<10log103100<10log10(6×1047), which is the same as 5×1047<3100<6×1047. From this we can see that 5 with 47 zeroes <3100< 6 with 47 zeroes. This means that the first digit of 3100 must be 5.
To nine decimal places, log102=0.301029996 and log103=0.477121255.
- Find the first digit of each of the following numbers: 21000; 210000; and 2100000.
To answer this part we mimic the technique of the last part of part (i). That is, we find an integer n which satisfies n×10m<21000<(n+1)×10m or log10(n×10m)<log1021000<log10((n+1)×10m), which tells us that the first digit of 21000 is n. We have that log1021000=1000log102=301.29996. We know that log1010301=301, so we need to check log10(2×10301)=log102+301=301.301. Therefore 1×10301<21000<2×10301. So the first digit of 21000 is 1.
Again, we study log10210000=10000log102=3010.29996. This is again close to log10103010, so we check log10(2×103010)=log102+3010=3010.301. So 103010<210000<2×103010, which tells us that the first digit of 210000 is 1.
Finally, we have that log102100000=100000log102=30102.9996. This is very close to 30103, so let’s check log10(9×1030102)=log1032+30102=2log103+30102=30102.9542. So we have that 9×1030102<2100000<1030103, and so the first digit of 2100000 is 9.
This is related to Benford’s Law, which states that the fractional part of the logarithm of random data is uniformly distributed between 0 and 1.
So, for instance, in a set of figures taken from real life, 1 is by far the most common first digit.
This has a neat application in fraud detection, in that most people ignore Benford’s Law when making up figures, and create their first digits in equal numbers.