As simple as counting

Find the number of trailing zeros of the following number:

1 1 × 2 2 × 3 3 × 4 4 × 5 5 × × 99 99 × 100 100 \large {1}^{1}\times{2}^{2}\times{3}^{3}\times{4}^{4}\times{5}^{5}\times\cdots\times{99}^{99}\times{100}^{100}


The answer is 1300.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Ravneet Singh
Jun 15, 2016

For counting number of trailing zeroes in any integer, we only need to find the number of 5's in that integer.

So, Number of 5's in 5 5 \large 5^{5} = 5

Number of 5's in 1 0 10 \large 10^{10} = 10

and so on except for 2 5 25 \large 25^{25} which contains 50 \large 50 5's (as 25 itself contains t w o two 5's)

similarly for 5 0 50 \large 50^{50} which contains 100 \large 100 5's, 7 5 75 \large 75^{75} contains 150 \large 150 5's and 10 0 100 \large 100^{100} contains 200 \large 200 5's

So Total =

5 + 10 + 15 + 20 + 50 + 30 + 35 + 40 + 45 + 100 + 55 + 60 + 65 + 70 + 150 + 80 + 85 + 90 + 95 + 200 5+10+15+20+50+30+35+40+45+100+55+60+65+70+150+80+85+90+95+200 = 1300 \huge 1300

Nice thought of actually bringing this question (+1). :)

Abhay Tiwari - 5 years ago

Same strategy, but different order. But your way looks more organized!

Colin Carmody - 5 years ago

Same Way! (+1)

Samara Simha Reddy - 5 years ago

Nice solution but this will work only when highest power of 2 is greater than 5.

Harsh Shrivastava - 4 years, 12 months ago

Log in to reply

@Harsh Shrivastava don't you think power of 2 will always be greater then power of 5.

Ravneet Singh - 4 years, 12 months ago

Log in to reply

It is correct in these types of questions but suppose if you have (5×5×2)×(25×25×4)×(125×125×8)×... then highest power of 5>2.

Harsh Shrivastava - 4 years, 12 months ago

Log in to reply

@Harsh Shrivastava @Harsh Shrivastava yeah you are right...but I was talking about consecutive positive integers

Ravneet Singh - 4 years, 12 months ago

Try These Problems 1 , 2 and 3 @Ravneet Singh .

Samara Simha Reddy - 4 years, 12 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...