数学小故事:高斯巧解算术题

  • 时间:2022-06-01 16:30:27
  • 分类:数学世界
  • 阅读:170 次
  高斯是德国伟大的数学家。小时候他就是一个爱动脑筋的聪明孩子。还是上小学时,一次一位老师想治一治班上的淘气学生,他出了一道算术题,让学生从1+2+3……一直加到100为止。他想这道题足够这帮学生算半天的,他也可以得到半天悠闲。

  谁知,出乎他的意料,刚刚过了一会儿,小高斯就举起手来,说他算完了。老师一看答案,5050,完全正确。老师惊诧不已,问小高斯是怎么算出来的。

  高斯说,他不是从开始加到末尾,而是先把1和100相加,得到101,再把2和99相加,也得101......最后50和51相加,也得101,这样一共有50个101,结果当然就是5050了。

  聪明的高斯受到了老师的表扬。
推荐阅读:
Algorithm to Compute the Revenue Milestones  How to Modify the Git Commit Messages After Your Push Your Branc  Personal Cloud Options to Backup Data and Photos  Greedy Algorithm to Find the Lexicographically Smallest Sequence  ReactiveX/RxJava Tutorial: Compute the Fibonacci Numbers using R  What are Big4 Tech Companies looking for in the technical interv  Design a Moving Average Class for Data Stream  3 Ways to Protect Your Website from Negative SEO  Algorithm to Check if A String Matches a Pattern  How to Get Free HTTPS Certificates via acme.sh? 
评论列表
添加评论