数学题:小王没事就用计算器计算从1加到100的结果
- 时间:2020-05-12 13:42:36
- 分类:数学世界
- 阅读:169 次
数学题:小王没事就用计算器计算从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。
第二问:“少加了一个数,少加了几?”的做法就不写出来了,感兴趣的同学可以自己试一试。
推荐阅读:Bruteforce or Line Sweep Algorithms to Remove Covered Intervals Microbit Programming: The Development of a Snake Eating Apple Ga Compute the Angle of the Hour and Minute Hand on a Clock How to Convert Binary Number in a Linked List to Integer? The Permutation Iterator in Python Compute the Indices of the Target Element in Array/List using Py 5 Cognitive Biases You Can Use to Boost E-Commerce Conversions Important SEO Tips for E-commerce That You Cannot Disregard 5 Effective Ways to Improve Blog Conversion Rate 7 Reasons Blogging is Essential for Law Firms
- 评论列表
-
- 添加评论