I'm trying to figure out the pattern:
There is 10 , 20, 30 whose product gives three 0s (6000)
Then there are the following that would result in 10: 2 x 5 = 10 4 x 15 = 60 6 x 25 = 150
So, initially I thought there are 6 zeros by merely counting the zeros. But the product (6000 * 10 * 60 * 150) was giving me 7 zeros. I realized it is because 60 * 150 gives me another zero (9000)
Rewriting/rearranging seems to make this clear: 2 x 5 = 10 6 x 15 = 90 4 x 25 = 100
So, even though I got 7 0s, I was wondering if there is a pattern in these question or if is trial-error method only. Is there an efficient way to answer this question.
I have the explanation in the book and it seems to be a bit convoluted. I can type in the explanation if someone wants to take a look.
Thanks, grajee
Question: How many identical digits end the product? 1 x 2 x 3 x 4 x 5 x 6 x 7 x .... x 30
Answer: 7
The most general answer: you should count the number of factors $2$ and $5$ in the product, and the minimum of these two numbers gives you the number of factors $10$. In most cases, it boils down to counting the number of factors $5$ you find in the product.
In your example the answer is $7$ because of the factors $5$ in $5, 10, 15, 20, 25, 25, 30$. Note that $25$ contains two factors $5$.