0到9,一共10个数字,任选5个,一共有252个组合,请问具体是哪些组合? 数学组合问题 从0到9这10个个位中任取5个,有哪252组?
\u67090-9\u517110\u4e2a\u6570\u5b57\uff0c\u968f\u610f5\u4e2a\u4e00\u7ec4\u7684\u7ec4\u5408\uff1f01234,01235,01236,01237,01238,01239,12345,12346,12347,12348,12349,23456,23457,23458,23459,34567,34568,34569,45678,45679,56789,67890,67891,67892,67893,67894,67895\u3002
10*9*8*7*6=30240\uff08\u5171\u6709\u4e2a\u6570\uff09
1*2*3*4*5=120(\u91cd\u590d\u6b21\u6570)
30240/120=252\u7ed3\u679c
\u53ef\u4ee5\u5229\u7528EXCEL2007\uff0c\u4f46\u4e0d\u53ea\u662f\u7528\u51fd\u6570\uff08\u6211\u6ca1\u90a3\u4e48\u5389\u5bb3\uff09
1\u3001\u7b2c\u4e00\u5217\uff0c0~9\uff0c\u6bcf\u4e00\u4f4d\u8de8\u5ea610^4
2\u3001\u7b2c\u4e8c\u5217\uff0c0~9\uff0c\u6bcf\u4e00\u4f4d\u8de8\u5ea610^3\uff0c\u5faa\u73af
3\u3001\u7b2c\u4e09\u5217\uff0c0~9\uff0c\u6bcf\u4e00\u4f4d\u8de8\u5ea610^2\uff0c\u5faa\u73af
4\u3001\u7b2c\u56db\u5217\uff0c0~9\uff0c\u6bcf\u4e00\u4f4d\u8de8\u5ea610\uff0c\u5faa\u73af
5\u3001\u7b2c\u4e94\u5217\uff0c0~9\uff0c\u8fde\u7eed\uff0c\u5faa\u73af
6\u3001\u7b2c\u516d\u5217\u81f3\u7b2c\u4e5d\u5217\uff0c\u5224\u65ad\u5404\u4f4d\u6570\u5b57\u662f\u5426\u6709\u7b2c\u4e8c\u4e2a\uff08countif\u5e94\u8be5\u4f1a\u5427\uff09
7\u3001\u7b2c\u5341\u5217\uff0c\u5168\u662fTRUE\u7684\u662fTRUE
8\u3001\u67e5\u627e\uff0c\u91cd\u590d\u7684\uff08\u7b2c\u5341\u5217\u662fFALSE\u7684\uff09\u5220\u9664\u6574\u884c
9\u30016~10\u5217\u6e05\u7a7a
10\u3001\u9009\u62e9\u8fd930240\u884c\uff0c\u7136\u540e\u5347\u5e8f\u6392\u5e8f
11\u3001\u7528COUNTIF\u770b\u4e00\u770b\u4ece\u8fd9\u884c\u5230\u4e0b\u9762\u4e00\u884c\u6709\u6ca1\u6709\u91cd\u590d\u7684\uff084\u6b21\uff09
12\u3001\u6709\u91cd\u590d\u7684\u8bdd\u5212\u6b7b\uff0c\u5212\u53bb\u7684\u662f119/120\uff0c\u5269\u4f59\u7684252\u4e2a\u5c31\u662f\u4e86
\u53ef\u80fd\u4f1a\u5361\u6b7b\uff0c\u4f46\u7528VBA\u5c31\u597d\u529e\u591a\u4e86
第一个数是0,那么第二个是可以是1~9,同样我们先选1
第三个书可以是2~9......
然后第二个数可以从1开始,一直到第二个数从9开始。
下面是例子。
01234
01235
01236
01237
01238
01239
01243
01245
01246
01247
01248
01249
01250
01253
01254
......
绛旓細10鐨勪簲娆℃柟銆旂涓浣嶆湁鍗佺鍙兘锛堝垎鍒槸0鍒9锛夌浜屻佷笁銆佸洓銆佷簲浣嶆暟涔熶竴鏍凤紝鎵浠浜斾釜鍗佺浉涔樺氨鏄崄鐨勪簲娆℃柟銆
绛旓細10鐨5娆℃柟=10涓
绛旓細6825 鑳借3,5,7,13鏁撮櫎 3脳5脳7脳13=1365 1365脳13=17745锛堟湁閲嶅鐨鏁帮紝涓嶅 1365脳7 =9555锛堟湁閲嶅鐨勬暟锛屼笉瀵 1365脳5=6825鍙互
绛旓細鐚滀竴涓暟瀛椼10涓暟瀛涓殢鏈5涓暟瀛楃殑閫夋硶鏈塁(10,5)锛屽惈鏈夎鏁板瓧鐨勯夋硶鏈塁(9,4), 鐚滀腑杩欎釜鏁板瓧鐨勬鐜囨槸C(9,4)/C(10,5)=1/2.鐚滀袱涓暟瀛椼10涓暟瀛椾腑闅忔満5涓暟瀛楃殑閫夋硶鏈塁(10,5)锛屽惈璇ヤ袱涓暟瀛楃殑閫夋硶鏈塁(8,3), 鐚滀腑杩欎袱涓暟瀛楃殑姒傜巼鏄疌(8,3)/C(10,5)=2/9.鐚滀笁涓暟瀛...
绛旓細鑳藉悓鏃惰2鍜5鏁撮櫎锛屼釜浣嶄笂鍙兘鏄0 鑳借3鏁撮櫎锛屽悇浣嶄笂鏁板瓧鐨勫拰鏄3鐨勫嶆暟锛岃岃兘琚7銆11鏁撮櫎鐨勬暟濂囨暟浣嶄笂鐨勬暟瀛楀拰鍋舵暟浣嶄笂鐨勬暟瀛楀拰鐩稿樊鑳借7銆11鏁撮櫎 鎵浠ヨ繖涓暟鏄98670
绛旓細10鍙5鍏鏈252绉嶅彲鑳,鍏朵腑杩炵画鑷劧鏁涓0娆1娆2娆3娆4娆$殑娆℃暟鍒嗗埆涓6,60,120,60,6,浣犺繖棰樼殑姒傜巼灏辨槸60/252
绛旓細璇佹槑锛氶鍏堬紝鐢变簬3銆5銆7銆13閮芥槸璐ㄦ暟锛屽洜姝よ浣胯繖涓5浣嶆暟鑳借杩欏嚑涓暟鍚屾椂鏁撮櫎锛岄偅涔堣繖涓5浣嶆暟涓瀹氳鑳借3*5*7*13锛1365鏁撮櫎锛屽嵆褰㈠1365n,鍏朵腑n涓烘暣鏁般傜敱浜99999/1365鐨勬暣鏁伴儴鍒嗘槸73锛屽洜姝5浣嶆暟涓兘琚1365鏁撮櫎鐨勬渶澶х殑鏁颁负n=73鏃剁殑1365*73=99645锛屼絾鏄繖涓暟涓湁涓や綅閮芥槸9锛涓嶅悎棰樻剰锛...
绛旓細Private Sub Command1_Click() Dim a(3) As Integer, SumArr(), intSum As Integer, GCD(3) As Integer SumArr = Array(10, 20, 30, 40) For i = 0 To 9 For j = i + 1 To 9 For k = j + 1 To 9 For r = k + 1 To 9 For t = r + 1 To 9...
绛旓細浜涓彿鐮侀噸澶嶇殑姒傜巼鏄99999/1涓嶉噸澶嶇殑姒傜巼鏄99999/99998 鍥涗釜鍙风爜涓鏍风殑姒傜巼9999/1 涓変釜鍙风爜涓鏍9999/1(涓嶅寘鎷笁涓互涓婁竴鏍风殑锛
绛旓細灏嗘浜浣嶆暟璁句负98XYZ 琚2銆3銆7銆11鏁撮櫎鍗宠兘琚2*3*7*11=462鏁撮櫎 98000 梅 462 = 212 鈥︹︿綑56 鍒橷YZ 琚462闄ら』浣462-56 = 406 XYZ = 462K + 406锛屽綋K = 0鏃讹紝XYZ = 406 褰揔 = 1鏃讹紝XYZ = 868 褰揔 > 1鏃讹紝XYZ瓒呰繃3浣嶆暟銆傚垯浠呮湁XYZ = 406 杩欎釜浜斾綅鏁板氨鏄 98406 ...