11个数字选择6个出来做组合,怎样把每种组合出来的6个数字都列明出来?

 我来答
天然槑17
2022-10-14 · TA获得超过1.1万个赞
知道大有可为答主
回答量:6034
采纳率:100%
帮助的人:32.8万
展开全部
分类: 教育/科学 >> 学习帮助
问题描述:

从1、2、3、4、5、6、7、8、9、10、11这11个数字任意选择6个数字出来组合成为一组,比如1、2、3、4、5、6或者7、8、9、10、11等等,一共有很多种情况,情况的种数我没算错误的话应该是(11×10×9×8×7)/(6×5×4×3×2)/(5×4×3×2)种,请问怎样才可以把每组6个数字象1、2、3、4、5、6或者7、8、9、10、11这样列明出来,我知道人工理论上可以完成这个工作,但是太慢而且肯定容易出现疏漏或者重复的错误,请教怎样通过什么电脑程序啊或者什么软件等等方法把这些各种情况都列明出来?

解析:

只要会编程,随便使用哪一种语言,使用循环就可以了

总数量是:11!/(6!×5!)=11×10×9×8×7/(5×4×3×2)=462

这些组合是:

1,2,3,4,5,6,1,2,3,4,5,7,1,2,3,4,5,8,1,2,3,4,5,9,1,2,3,4,5,10

1,2,3,4,5,11,1,2,3,4,6,7,1,2,3,4,6,8,1,2,3,4,6,9,1,2,3,4,6,10

1,2,3,4,6,11,1,2,3,4,7,8,1,2,3,4,7,9,1,2,3,4,7,10,1,2,3,4,7,11

1,2,3,4,8,9,1,2,3,4,8,10,1,2,3,4,8,11,1,2,3,4,9,10,1,2,3,4,9,11

1,2,3,4,10,11,1,2,3,5,6,7,1,2,3,5,6,8,1,2,3,5,6,9,1,2,3,5,6,10

1,2,3,5,6,11,1,2,3,5,7,8,1,2,3,5,7,9,1,2,3,5,7,10,1,2,3,5,7,11

1,2,3,5,8,9,1,2,3,5,8,10,1,2,3,5,8,11,1,2,3,5,9,10,1,2,3,5,9,11

1,2,3,5,10,11,1,2,3,6,7,8,1,2,3,6,7,9,1,2,3,6,7,10,1,2,3,6,7,11

1,2,3,6,8,9,1,2,3,6,8,10,1,2,3,6,8,11,1,2,3,6,9,10,1,2,3,6,9,11

1,2,3,6,10,11,1,2,3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,8,1,3,4,5,7,9,1,3,4,5,7,10,1,3,4,5,7,11

1,3,4,5,8,9,1,3,4,5,8,10,1,3,4,5,8,11,1,3,4,5,9,10,1,3,4,5,9,11

1,3,4,5,10,11,1,3,4,6,7,8,1,3,4,6,7,9,1,3,4,6,7,10,1,3,4,6,7,11

1,3,4,6,8,9,1,3,4,6,8,10,1,3,4,6,8,11,1,3,4,6,9,10,1,3,4,6,9,11

1,3,4,6,10,11,1,3,4,7,8,9,1,3,4,7,8,10,1,3,4,7,8,11,1,3,4,7,9,10

1,3,4,7,9,11,1,3,4,7,10,11,1,3,4,8,9,10,1,3,4,8,9,11,1,3,4,8,10,11

1,3,4,9,10,11,1,3,5,6,7,8,1,3,5,6,7,9,1,3,5,6,7,10,1,3,5,6,7,11

1,3,5,6,8,9,1,3,5,6,8,10,1,3,5,6,8,11,1,3,5,6,9,10,1,3,5,6,9,11

1,3,5,6,10,11,1,3,5,7,8,9,1,3,5,7,8,10,1,3,5,7,8,11,1,3,5,7,9,10

1,3,5,7,9,11,1,3,5,7,10,11,1,3,5,8,9,10,1,3,5,8,9,11,1,3,5,8,10,11

1,3,5,9,10,11,1,3,6,7,8,9,1,3,6,7,8,10,1,3,6,7,8,11,1,3,6,7,9,10

1,3,6,7,9,11,1,3,6,7,10,11,1,3,6,8,9,10,1,3,6,8,9,11,1,3,6,8,10,11

1,3,6,9,10,11,1,3,7,8,9,10,1,3,7,8,9,11,1,3,7,8,10,11,1,3,7,9,10,11

1,3,8,9,10,11,1,4,5,6,7,8,1,4,5,6,7,9,1,4,5,6,7,10,1,4,5,6,7,11

1,4,5,6,8,9,1,4,5,6,8,10,1,4,5,6,8,11,1,4,5,6,9,10,1,4,5,6,9,11

1,4,5,6,10,11,1,4,5,7,8,9,1,4,5,7,8,10,1,4,5,7,8,11,1,4,5,7,9,10

1,4,5,7,9,11,1,4,5,7,10,11,1,4,5,8,9,10,1,4,5,8,9,11,1,4,5,8,10,11

1,4,5,9,10,11,1,4,6,7,8,9,1,4,6,7,8,10,1,4,6,7,8,11,1,4,6,7,9,10

1,4,6,7,9,11,1,4,6,7,10,11,1,4,6,8,9,10,1,4,6,8,9,11,1,4,6,8,10,11

1,4,6,9,10,11,1,4,7,8,9,10,1,4,7,8,9,11,1,4,7,8,10,11,1,4,7,9,10,11

1,4,8,9,10,11,1,5,6,7,8,9,1,5,6,7,8,10,1,5,6,7,8,11,1,5,6,7,9,10

1,5,6,7,9,11,1,5,6,7,10,11,1,5,6,8,9,10,1,5,6,8,9,11,1,5,6,8,10,11

1,5,6,9,10,11,1,5,7,8,9,10,1,5,7,8,9,11,1,5,7,8,10,11,1,5,7,9,10,11

1,5,8,9,10,11,1,6,7,8,9,10,1,6,7,8,9,11,1,6,7,8,10,11,1,6,7,9,10,11

1,6,8,9,10,11,1,7,8,9,10,11,2,3,4,5,6,7,2,3,4,5,6,8,2,3,4,5,6,9

2,3,4,5,6,10,2,3,4,5,6,11,2,3,4,5,7,8,2,3,4,5,7,9,2,3,4,5,7,10

2,3,4,5,7,11,2,3,4,5,8,9,2,3,4,5,8,10,2,3,4,5,8,11,2,3,4,5,9,10

2,3,4,5,9,11,2,3,4,5,10,11,2,3,4,6,7,8,2,3,4,6,7,9,2,3,4,6,7,10

2,3,4,6,7,11,2,3,4,6,8,9,2,3,4,6,8,10,2,3,4,6,8,11,2,3,4,6,9,10

2,3,4,6,9,11,2,3,4,6,10,11,2,3,4,7,8,9,2,3,4,7,8,10,2,3,4,7,8,11

2,3,4,7,9,10,2,3,4,7,9,11,2,3,4,7,10,11,2,3,4,8,9,10,2,3,4,8,9,11

2,3,4,8,10,11,2,3,4,9,10,11,2,3,5,6,7,8,2,3,5,6,7,9,2,3,5,6,7,10

2,3,5,6,7,11,2,3,5,6,8,9,2,3,5,6,8,10,2,3,5,6,8,11,2,3,5,6,9,10

2,3,5,6,9,11,2,3,5,6,10,11,2,3,5,7,8,9,2,3,5,7,8,10,2,3,5,7,8,11

2,3,5,7,9,10,2,3,5,7,9,11,2,3,5,7,10,11,2,3,5,8,9,10,2,3,5,8,9,11

2,3,5,8,10,11,2,3,5,9,10,11,2,3,6,7,8,9,2,3,6,7,8,10,2,3,6,7,8,11

2,3,6,7,9,10,2,3,6,7,9,11,2,3,6,7,10,11,2,3,6,8,9,10,2,3,6,8,9,11

2,3,6,8,10,11,2,3,6,9,10,11,2,3,7,8,9,10,2,3,7,8,9,11,2,3,7,8,10,11

2,3,7,9,10,11,2,3,8,9,10,11,2,4,5,6,7,8,2,4,5,6,7,9,2,4,5,6,7,10

2,4,5,6,7,11,2,4,5,6,8,9,2,4,5,6,8,10,2,4,5,6,8,11,2,4,5,6,9,10

2,4,5,6,9,11,2,4,5,6,10,11,2,4,5,7,8,9,2,4,5,7,8,10,2,4,5,7,8,11

2,4,5,7,9,10,2,4,5,7,9,11,2,4,5,7,10,11,2,4,5,8,9,10,2,4,5,8,9,11

2,4,5,8,10,11,2,4,5,9,10,11,2,4,6,7,8,9,2,4,6,7,8,10,2,4,6,7,8,11

2,4,6,7,9,10,2,4,6,7,9,11,2,4,6,7,10,11,2,4,6,8,9,10,2,4,6,8,9,11

2,4,6,8,10,11,2,4,6,9,10,11,2,4,7,8,9,10,2,4,7,8,9,11,2,4,7,8,10,11

2,4,7,9,10,11,2,4,8,9,10,11,2,5,6,7,8,9,2,5,6,7,8,10,2,5,6,7,8,11

2,5,6,7,9,10,2,5,6,7,9,11,2,5,6,7,10,11,2,5,6,8,9,10,2,5,6,8,9,11

2,5,6,8,10,11,2,5,6,9,10,11,2,5,7,8,9,10,2,5,7,8,9,11,2,5,7,8,10,11

2,5,7,9,10,11,2,5,8,9,10,11,2,6,7,8,9,10,2,6,7,8,9,11,2,6,7,8,10,11

2,6,7,9,10,11,2,6,8,9,10,11,2,7,8,9,10,11,3,4,5,6,7,8,3,4,5,6,7,9

3,4,5,6,7,10,3,4,5,6,7,11,3,4,5,6,8,9,3,4,5,6,8,10,3,4,5,6,8,11

3,4,5,6,9,10,3,4,5,6,9,11,3,4,5,6,10,11,3,4,5,7,8,9,3,4,5,7,8,10

3,4,5,7,8,11,3,4,5,7,9,10,3,4,5,7,9,11,3,4,5,7,10,11,3,4,5,8,9,10

3,4,5,8,9,11,3,4,5,8,10,11,3,4,5,9,10,11,3,4,6,7,8,9,3,4,6,7,8,10

3,4,6,7,8,11,3,4,6,7,9,10,3,4,6,7,9,11,3,4,6,7,10,11,3,4,6,8,9,10

3,4,6,8,9,11,3,4,6,8,10,11,3,4,6,9,10,11,3,4,7,8,9,10,3,4,7,8,9,11

3,4,7,8,10,11,3,4,7,9,10,11,3,4,8,9,10,11,3,5,6,7,8,9,3,5,6,7,8,10

3,5,6,7,8,11,3,5,6,7,9,10,3,5,6,7,9,11,3,5,6,7,10,11,3,5,6,8,9,10

3,5,6,8,9,11,3,5,6,8,10,11,3,5,6,9,10,11,3,5,7,8,9,10,3,5,7,8,9,11

3,5,7,8,10,11,3,5,7,9,10,11,3,5,8,9,10,11,3,6,7,8,9,10,3,6,7,8,9,11

3,6,7,8,10,11,3,6,7,9,10,11,3,6,8,9,10,11,3,7,8,9,10,11,4,5,6,7,8,9

4,5,6,7,8,10,4,5,6,7,8,11,4,5,6,7,9,10,4,5,6,7,9,11,4,5,6,7,10,11

4,5,6,8,9,10,4,5,6,8,9,11,4,5,6,8,10,11,4,5,6,9,10,11,4,5,7,8,9,10

4,5,7,8,9,11,4,5,7,8,10,11,4,5,7,9,10,11,4,5,8,9,10,11,4,6,7,8,9,10

4,6,7,8,9,11,4,6,7,8,10,11,4,6,7,9,10,11,4,6,8,9,10,11,4,7,8,9,10,11

5,6,7,8,9,10,5,6,7,8,9,11,5,6,7,8,10,11,5,6,7,9,10,11,5,6,8,9,10,11

5,7,8,9,10,11,6,7,8,9,10,11
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式