What is the smallest positive integer such that has a string of 500 zeros at the end of its decimal representation?
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.
If you want 500 zeroes at the end of its decimal you have to have at least 500 fives and way to find numbers of five is
Let n! be an integer then n! have 5's in its as can be found by ⌊ 5 n ⌋ + ⌊ 2 5 n ⌋ + ⌊ 1 2 5 n ⌋ + ⌊ 6 2 5 n ⌋ + . . .
So we can find n as
5 0 0 = ⌊ 5 n ⌋ + ⌊ 2 5 n ⌋ + ⌊ 1 2 5 n ⌋ + ⌊ 6 2 5 n ⌋ + . . . ≈ n ( 4 5 − 1 ) = 4 n
n ≈ 2 0 0 0
Now we have to check that if we have enough 5's
4 0 0 + 8 0 + 1 6 + 3 = 4 9 9 this tell us that we have to find more 5's and so just plus with 5 and then we've got 2 0 0 5