排列 = 从 n 个不同元素中选 r 个排成一排(有顺序)。
环形排列:n 个不同元素围成一圈,排列数为 (n−1)!(因为旋转后相同)。
组合 = 从 n 个不同元素中选 r 个(不区分顺序)。
排列 vs 组合:排列有序(P),组合无序(C)。同一个问题,P(n,r) = C(n,r) × r!。
4.1 容斥原理 Inclusion-Exclusion
容斥原理可以处理"至少一个"类型的计数问题。
4.2 鸽巢原理 Pigeonhole Principle
从 5 个人中选 3 人排成一排,有多少种排法?How many ways to arrange 3 out of 5 people in a row?
从 10 个不同球中取 4 个的组合数 C(10,4) 是多少?Find C(10,4).
5 个不同的人围成一圈坐,有多少种坐法?5 distinct people sit around a circular table. How many arrangements?
将 4 个不同的球放入 3 个不同的盒子(允许空盒),有多少种方法?Distribute 4 distinct balls into 3 distinct boxes. How many ways?
C(12, 5) 等于多少?What is C(12, 5)?
第1题从 7 人中选 3 人组成委员会(不区分职务),有多少种方法?Choose 3 from 7 for a committee. How many ways?
第2题6 本不同的书排放在书架上,有多少种排法?6 distinct books on a shelf. How many arrangements?
第3题C(8, 3) + C(8, 5) 等于多少?C(8,3) + C(8,5) = ?
第4题一个班级有 25 名学生,至少几人的生日在同一个月?25 students. What is the minimum number sharing a birth month?
第5题从 5 男 4 女中选 3 人,要求恰好 1 男 2 女,有多少种选法?Choose 3 from 5 men and 4 women with exactly 1 man and 2 women.
第6题将"AMC10"这 5 个字母排成一排,有多少种不同的排列?How many arrangements of the letters in "AMC10"?
第7题从 1 到 100 中,既不是 3 的倍数也不是 5 的倍数的整数有多少个?How many integers from 1 to 100 are neither multiples of 3 nor 5?
第8题一个 3 位数的各位数字从 {1, 2, 3, 4, 5} 中选取(可重复),且各位数字互不相同。这样的三位数有多少个?How many 3-digit numbers have distinct digits chosen from {1,2,3,4,5}?