When multiplied out, the number 2017!=1x2x3....x2015x2016x2017 end with a striking of zeros. How many zeros are there at the end of this number.
When multiplied out, the number 2017!=1x2x3....x2015x2016x2017 end with a striking of zeros.
How many zeros are there at the end of this number.
Let n = 2017
Legendre's Theorem - The Prime Factorization of Factorials:
p=factorto baseps= the sum of all the digitsexponent =n−sp −1in the expansion of n in base p 211111100001272017−72−1=201032202201392017−93−1=1004531032592017−95−1=502⋯⋯⋯⋯
Prime factorization on 2017!:
22010×31004×5502×7334×11200×…×1999×2003×2011×2017
Zeros at the end of 2017!:
2502×5502=(2⋅5)502=10502
There are 502 zeros at the end of 2017!