So then I tried to figure out how to compute the number of trailing zeros - I got close, but missed the leap. Turns out that you just keep dividing the original number by 5 and summing the truncated results. Very cool. So for my 1500 book example:
1500 / 5 = 300
300 / 5 = 60
60 / 5 = 12
12 / 5 = 2
= 374
QED!
Numbers are so stinkin' cool to play around with! I should do it more often - one of the few things I left behind of my kidhood. It's nice when something shows up and throws me back into it. Numbers rock!
* * * * * *
No comments:
Post a Comment