数学题:小王没事就用计算器计算从1加到100的结果

  • 时间:2020-05-12 13:42:36
  • 分类:数学世界
  • 阅读:150 次

数学题:小王没事就用计算器计算从1加到100的结果,当他算到结果是3842的时候,他的爸爸说:你重复加了一个数。请问:小王重复加的是哪个数?(本题也可以说成:你少加了一个数。请问:少加了几?)题目有意思吧?你也可以做做。

数学题解答

第一问:先看重复加的情况。先迫近3842这个和。几次尝试就可以了。

如果直接从1加到100,那么和是:(1+100)×(100÷2)=5050。

如果从1加到50,那么和是:(1+50)×(50÷2)=1275。

如果从1加到80,那么和是:(1+80)×(80÷2)=3240。

如果从1加到90,那么和是:(1+90)×(90÷2)=4095。

再从后面的数开始一个一个地减,直到接近3842且比3842小为止。

4095-90=4005,4005-89=3916,3916-88=3828。

最后用3842减去3828,算出重复加的数。3842-3828=14。

答:重复加的数是14。

第二问:“少加了一个数,少加了几?”的做法就不写出来了,感兴趣的同学可以自己试一试。

推荐阅读:
Five Tips to Lower Your Tax Bill in 2020  Bruteforce Algorithm to Compute the Maxmium Powerful Digit Sum u  4 Frequently Discussed SEO Myths Exposed  3 Reasons Why Graphic Designers Need to Self-Promote through Ins  How to Split a String in C++?  The Best Instagram Feed WordPress Plugins to Use  Trie Class Data Structure in Python  How to Monitor the CPU Temperature of Raspberry PI using Python   Listen to what an SEO expert has to say about its benefits  Depth First Search Algorithm to Compute the Smallest String Star 
评论列表
添加评论