True or False?
If we remove the trailing zeroes of the factorial n ! , where n is a positive integer such that 5 ≤ n < 1 0 , then the last digit of the remaining number is even. This is still true for all n ≥ 1 0 .
Hints:
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.
We can notice that for n ≥ 5 n ! = a 0 a 1 a 2 ⋯ × a n × 1 0 n n ! = a 0 a 1 a 2 ⋯ a n × ( 2 n × 5 n ) it's says that the number of trailing zeroes depend on the prime factors of 2 and 5 in case base is 10. Since the number 2's is greater than 5's in n ! and even after removing the trailing n ! still has some 2's say 2 r . Then we can conclude that n ! = 2 ( p 0 p 1 p 3 ⋯ p n ) ⋅ 2 r − 1 = 2 k Hence, the last digits non-zeros digit of n ! is always even.
In the first part of your solution, I believe you need to change some of your variables in the first two lines; I not certain what a 0 , a 1 , etc. represent, but at the very least the n 's you have in the exponents of 2 n , 5 n and 1 0 n cannot be the same as the n in n ! . I don't yet understand the second part of your solution, will have to look at it again later.
Log in to reply
Thank you for going through my solution. I have fixed it . :)
Problem Loading...
Note Loading...
Set Loading...
Removing the trailing zeroes of any whole number k is the same as dividing it by the largest power of ten that is its factor; the size of this power of ten is, in turn, determined by the number of 2's or the number of 5's, whichever is smaller, in the prime factorization of k .
For p a prime, the prime factorization of n ! will contain at least one p for every multiple of p in its expansion, so for n ≥ 2 , n ! = 1 ⋅ 2 ⋅ 3 ⋅ 4 ⋅ 5 ⋅ 6 ⋅ 7 ⋅ … ⋅ n will clearly always contain more 2's than 5's. Therefore the statement in the problem is true for any n ≥ 2 .
To be more specific, for p a prime, every multiple of p in the expansion of n ! will contribute one p to the prime factorization of n ! ; however every multiple of p 2 will contribute two p 's rather than one, and in general every multiple of p k will contribute k p 's. Thus the number of p 's in the prime factorization of n ! is given by
i = 1 ∑ ⌊ p i n ⌋
Since the largest power of ten that is a factor of n ! is limited by the number of 5's in its prime factorization, removing the trailing zeroes of n ! will remove all its 5's and an equal number of 2's. Thus the remaining number will not only be even, but divisible by 2 m , where
m = i = 1 ∑ ⌊ 2 i n ⌋ − i = 1 ∑ ⌊ 5 i n ⌋
For example, if n = 3 7
m = i = 1 ∑ ⌊ 2 i n ⌋ − i = 1 ∑ ⌊ 5 i n ⌋ = ( ⌊ 2 3 7 ⌋ + ⌊ 4 3 7 ⌋ + ⌊ 8 3 7 ⌋ + ⌊ 1 6 3 7 ⌋ + ⌊ 3 2 3 7 ⌋ ) − ( ⌊ 5 3 7 ⌋ + ⌊ 2 5 3 7 ⌋ ) = ( 1 8 + 9 + 4 + 2 + 1 ) − ( 7 + 1 ) = 2 6
so after removing the (eight) trailing zeroes of 3 7 ! , the remaining number will still be divisible by 2 2 6 .