几个数字组成数的问题

  • 时间:2020-04-02 21:17:33
  • 分类:数学世界
  • 阅读:100 次

有三个数字,用它们组成6个不同的三位数,这6个三位数的和是1554。那么这三个数字分别是多少?

解题思路:三个数字,既能组成6个不同的三位数,那么这三个数字肯定互不相同。设这三个数字为A、B、C,组成的六个三位数则是以下形式:

ABC,ACB,BAC,BCA,CAB,CBA

把六个三位数加起来,每个数位上都有2个A,2个B,2个C,如果把它们的和1554除以2,则每个数位上都只剩下一个A,一个B,一个C,即A+B+C,此时1554÷2=777,可见:每个数位上A+B+C都等于7(说明没有进位),只要再把7分成三个数字相加即可。

解题过程:

1554÷2=777,7为三个数字之和。

7=1+2+4,三个数字各不相同,且不能为0,所以仅有此一种答案。

答:这三个数字分别是1、2、4。

推荐阅读:
Dynamic Programming (Memoization) to Sort Integers by The Power   Applicable Accounting Software For Churches  How to Balance a Binary Search Tree using Recursive Inorder Trav  Finding the Lucky Numbers in a Matrix  Factory Design Pattern in Object Oriented Design Programming  Algorithm to Find Minimum Removals to Make Valid Parentheses  Greedy Algorithm to Validate Stack Sequences  Why is Web Hosting Important for Bloggers?  How to Write More Local Content (and Why You Should)  8 Ways To Monetize Your Blog Without Driving Away Visitors/Users 
评论列表
添加评论