排列与组合是组合数学中的基础概念,涉及从有限集合中选取元素的不同方式。
Permutations and combinations are basic concepts in combinatorics, involving different ways of selecting elements from a finite set.
排列与组合的区别:
- 排列:考虑顺序,不同的顺序算不同的排列
- 组合:不考虑顺序,不同的顺序算相同的组合
例题 1 Example 1
排列数 P(5, 3) = 5! / (5 - 3)! = 5 × 4 × 3 = 60。
所以从 5 个不同的元素中取出 3 个元素的排列数是 60。
The number of permutations is P(5, 3) = 5! / (5 - 3)! = 5 × 4 × 3 = 60.
二项式定理与组合恒等式是组合数学中的重要内容,涉及二项式展开、组合恒等式的证明和应用。
Binomial theorem and combinatorial identities are important content in combinatorics, involving binomial expansion, proof and application of combinatorial identities.
例题 2 Example 2
根据二项式定理,(x + y)^5 展开式中 x²y³ 的系数为 C(5, 3) = 10。
所以 x²y³ 的系数是 10。
According to the binomial theorem, the coefficient of x²y³ in the expansion of (x + y)^5 is C(5, 3) = 10.
容斥原理与鸽巢原理是组合数学中的重要原理,涉及计数问题的解决方法。
Inclusion-exclusion principle and pigeonhole principle are important principles in combinatorics, involving methods for solving counting problems.
容斥原理的应用:
- 计算集合的并集大小
- 解决排列组合中的限制问题
- 计算概率
鸽巢原理的应用:
- 证明存在性问题
- 解决组合优化问题
- 分析算法复杂度
例题 3 Example 3
使用容斥原理计算:
能被 2 整除的数的个数:⌊100/2⌋ = 50
能被 3 整除的数的个数:⌊100/3⌋ = 33
能被 2 和 3 同时整除的数的个数:⌊100/6⌋ = 16
所以能被 2 或 3 整除的数的个数:50 + 33 - 16 = 67
Using the inclusion-exclusion principle: Number of integers divisible by 2: ⌊100/2⌋ = 50, number divisible by 3: ⌊100/3⌋ = 33, number divisible by both: ⌊100/6⌋ = 16. Thus the total is 50 + 33 - 16 = 67.
