The number of natural numbers whose factorial ends with exactly 2 0 1 9 zeroes are:
This problem is a part of Tessellate S.T.E.M.S (2019)
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.
For anyone interested, the particular inequality I gave for N is more generally given as 4 ⋅ f ( N ) < N ≤ ⌊ − ln 5 4 W − 1 ( − 2 0 ln 5 ⋅ 5 − f ( N ) ) ⌋ where W − 1 denotes the negative branch of the Lambert W such that W − 1 ( x ) ≤ − 1 for − e 1 ≤ x < 0
That's correct ! Good job !
Problem Loading...
Note Loading...
Set Loading...
For any natural number N , let f ( N ) denote the number of trailing zeroes of N ! . Then we can use the known formula f ( N ) = k = 1 ∑ ∞ ⌊ 5 k N ⌋ which directly implies f ( N ) < k = 1 ∑ ∞ 5 k N = 4 N and can be used to show f ( N ) ≥ 4 N − lo g 5 N − 1 . Then setting f ( N ) = 2 0 1 9 and solving N yields 8 0 7 6 < N ≤ 8 1 0 2
Additionally, for any positive integer k , f ( 5 k − 1 ) < f ( 5 k ) = f ( 5 k + 1 ) = f ( 5 k + 2 ) = f ( 5 k + 3 ) = f ( 5 k + 4 ) < f ( 5 k + 5 ) which means we only need to test integers N which are multiples of five, so we only need to test N ∈ { 8 0 8 0 , 8 0 8 5 , 8 0 9 0 , 8 0 9 5 }
In particular, we can see that f ( 8 0 9 0 ) = f ( 8 0 9 1 ) = f ( 8 0 9 2 ) = f ( 8 0 9 3 ) = f ( 8 0 9 4 ) = 2 0 1 9 and N < 8 0 9 0 ⟹ f ( N ) < 2 0 1 9 N > 8 0 9 4 ⟹ f ( N ) > 2 0 1 9 so that exactly 5 natural numbers have factorials with 2 0 1 9 trailing zeroes.