How many 5's would you write if you were to write all the numbers from 1 to 1,000,000?
Question #62189. Asked by melnnat.
gmackematix
Answer has 4 votes
Currently Best Answer
gmackematix 22 year member
3206 replies
Answer has 4 votes.
Currently voted the best answer.
Imagine we add zeros to the start of the lower numbers so that each is a six figure number.
Counting from 000000 to 999999 will take 6,000,000 digits to write down and each digit will occur an equal number of times.
That means that 600,000 fives would be written.
Ignoring the initial zeros and counting from 1 to 1,000,000 makes no difference to the number of fives written so the answer is 600,000.
Feb 02 2006, 8:56 PM
minuscule_
Answer has 2 votes
minuscule_
Answer has 2 votes.
I get it gmackematix, there's a pattern. One 5 in the first 10 numbers, Twenty 5's in the first 100 numbers, or 1.10^0 in 10^1, 2.10^1 in 10^2, 3.10^2 in 10^3, ..., 6.10^5 in the first 10^6 numbers, etc. You can be my teacher anytime.