Find the number of trailing zeroes in 7 8 ! .
Details
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.
Challenge Master Note: This is correct. +1
f ( 7 8 ) = ⌊ 5 7 8 ⌋ + ⌊ 5 2 7 8 ⌋ + … = 1 5 + 3 = 1 8
Did the same way.
It's better to explain why you stop at 5^2. And why your formula works in the first place.
1 2 3 4 5 6 7 8 9 10 |
|
This is beautiful.
Problem Loading...
Note Loading...
Set Loading...
In the factorization of 7 8 ! there would be 1 5 multiples of 5 . Namely 5 , 1 0 ⋯ 7 5 . But of these, there are 3 which have an extra 5 in their prime factorization which are 2 5 , 5 0 , 7 5 . And since there are certainly more 2 in the prime factorization of 7 8 ! , each 5 multiplied with 2 would produce a trailing zero, or a power of 10. Therefore, 7 8 ! can be written as s o m e t h i n g × 1 0 ( 1 5 + 3 ) . So in total, there would be 1 8 trailing zeros.