数学题:这包糖果至少有多少颗

  • 时间:2020-06-05 20:30:28
  • 分类:数学世界
  • 阅读:149 次

数学题:一包糖果,分给一些小朋友。如果平均分给6个小朋友,剩下5颗;如果平均分给7个小朋友,剩下6颗;如果平均分给8个小朋友,剩下7颗。这包糖果至少有多少颗?

数学题解答:这个的话,就相当于求 6 , 7 , 8 三个数的最小公倍数,再减去 1 ,就可以得到这包糖的颗数了。减去 1 是因为平均分下去之后,都差 1 颗糖就可以刚好分完。

[这个题目的意思也可以换一种说法:一包糖果,分给一些小朋友。平均分给6个小朋友,少一颗;平均分给7个小朋友,也少一颗。;平均分给8个小朋友,还是少一颗。]

减去 1 是因为平均分下去之后,都差 1 颗糖就可以刚好分完。6个小朋友分,就剩5颗糖,就差一颗就可以全部分下去,7平均分给7个小朋友,剩下6颗,也是差一颗就可以全部分下去,平均分给8个小朋友,剩下7颗。也还是差一颗就可以全部分下去,6 , 7 , 8 的最小公倍数是168颗,现在少了一颗,是167颗糖,平均分给 6个人,或者 7个人, 8个人,都会差一颗就可以全部分下去。

推荐阅读:
Here’s Why Your Content is Struggling  Cloud Hosting vs. Traditional Hosting: Why Hosting Your Blog in   How to Compute the N-th Tribonacci Number using Iterative Dynami  How to Find the Largest Unique Number in Array (C++)?  How to Find the K-diff Pairs in an Array with Two Pointer or Has  String Algorithm: Reverse the first k characters for every 2k ch  How to Generate Parentheses using Bruteforce or Depth First Sear  Algorithm to Construct Binary Tree from Preorder and Inorder Tra  The 24 Game Algorithm using Depth First Search  How to Count the Path Sum from a Binary Tree using Depth First S 
评论列表
添加评论