How many zeroes does 2012! end with?
My idea is:
402 zeroes come from 2×5, 80 from 2×25, 16 from 2×125 and 3 from 2×625
How can we "show" that this is true?
Answer
The correct answer is 501.
In order to find the number of zeros is same as finding the number of factors of powers of 5. There are more factors of powers of 2 than the factors of powers of 5.
For instance 10!=3628800=2834527
⌊np⌋+⌊np2⌋+⌊np3⌋+⋯⌊npk−1⌋
where ⌊npk⌋=0.
In this case k=5 because ⌊201255⌋=0
⌊20125⌋=402,⌊201252⌋=⌊4025⌋=80
⌊201253⌋=⌊805⌋=16,⌊201254⌋=⌊165⌋=3
⌊20125⌋+⌊201252⌋+⌊201253⌋+⌊201254⌋=402+80+16+3=501
No comments:
Post a Comment