数学题:组成只能被3整除不能被9整除的4位数
- 时间:2020-06-07 17:53:28
- 分类:数学世界
- 阅读:133 次
数学题:从0、1、2、5、6这几个数字中选出4个,组成只能被3整除不能被9整除的4位数。怎么写?
数学题解答:解答这题首先需要弄清能被3和9整除的数的特征。
能被3带除的数的特征:如果一个数的各个数位上的数字的和能被3整除,那么这个数就能被3整除。
能被9带除的数的特征:如果一个数的各个数位上的数字的和能被9整除,那么这个数就能被9整除。
明白了这一点,就好办了。我们要把挑选的4个数字相加,当和是3的倍数,并且不是9的倍数时,这四个数字便可以用来组成符合“只能被3整除不能被9整除的4位数”要求的四位数。
如果是3的倍数,这个四个数字可以是:0、1、2、6和0、1、5、6。
由于0+1+2+6=9,而9不仅是3的倍数,也是9的倍数,所以被排除。
所以,挑出的四个数字是0、1、5、6。组成的四位数有:6510、6501、6150、6105、6051、6015、5610、5601、5160、5106、5061、5016、1650、1605、1560、1506、1065、1056。
推荐阅读:The Life Of A Million-Dollar Blogger 5 Types of Stories You Can Tell About Your Business The Maximum Average Subtree of a Binary Tree How to Design a Snake Game? How to Design a Two-Sum Data Structure? The MySQL If and Case Statement Exercise: How to Swap Elements i Compute the Number of Ways to Paint the House via Dynamic Progra How to Paint The Houses using Minimal Costs via Dynamic Programm Relative Sort Array Algorithm: Sort Array Based on Predefined Se Classic Unlimited Knapsack Problem Variant: Coin Change via Dyna
- 评论列表
-
- 添加评论