When I first learned about factorials in grade school I quickly became interested in the idea and did a lot of playing with them. I noticed, though, that as the factorials got higher and higher they gained more and more trailing zeros.
5! has 1 trailing zero and = 120
10! has 2 trailing zeros and = 3,628,800
15! has 3 trailing zeros and = 1,307,674,368,000
20! has 4 trailing zeros and = 2,432,902,008,176,640,000
I always wondered if this meant something or perhaps proves a certain theorem. Does it?
Every time you pass a multiple of 10 (or something 5 mod 10) you will accumulate another 0
For example 10! has two trailing zeros, one from multiplying by 10 and the other from multiplying by 5 and 2.
So it makes sense that as you get much higher the number of accumulated zeroes should increase.