数学题:乘积末尾有几个0

  • 时间:2020-05-12 13:38:15
  • 分类:数学世界
  • 阅读:130 次

数学题:乘积末尾有几个0?1*2*3*4……..*50得到的结果后有几个0?

数学题解答:积的末尾有一个0,可以理解为有一个因数10。有两个0,可以理解为有两个因数10,……依次类推。而10可以分解为:10=2*5,也就是说一个因数2和一个因数5便可以使积的末尾有一个0。

从1到50各数中,含有因数2的远远超过含有因数5的。所以只需算出这些数中,一个含有几个因数5,就可以确定积的末尾有几个0了。

从一到50中,5的倍数有5,10,15,……,50。分别是5的1倍到10倍,其中25和50都含有两个因数5,其余的只含有一个因数5。所以,这些数中一共含有:10+1+1=12(个)因数5,所以积的末尾有12个0。

经计算机验证,答案是正确的,如下图:

50!

推荐阅读:
K Closest Points to Origin Algorithm by using Priority Queues in  Total Number of Ways to Decode the Message via Dynamic Programmi  The License Key Formatting Algorithm in C++  Integrating LinkedIn Long-Form Posts in Your Blogging Strategy  A Quick Guide on Beefing Up Your WordPress Security  10 Proven Ways to Destroy Writer’s Block  3 Chrome Blogging Extensions to Watch Out for 2015  Cloud-Based Tools to Stake Your Business Blog On  How To Protect Your Brand On Social Media  Ways to Find Out if a Ghost Blogger is Right for You 
评论列表
添加评论