Skip to content

Counting ​

Basic Counting Principles ​

The product rule ​

乘法原理

Exercise ​

•Prove Theorem: $ if |S| = n, then |P(S)| = 2^n$

The sum rule ​

加法原理

The Inclusion-Exclusion Principle ​

容斥原理

The Pigeonhole Principle ​

抽屉原理

Theorem 1: ​

If k is a positive integer and k + 1 or more objects are placed into k boxes, then there is at least one box containing two or more of the objects.

Theorem 2: ​

If n objects are placed into k boxes, then there is at least one box containing at least n/k objects.

Permutation ​

排列(考虑顺序) P(n,r)=n!/(n−r)!

Combination ​

组合(不考虑顺序) C(n,r),or(rn)

隔板法 ​

How many solutions does the equation a + b + c = 11 have where a, b, and c are non-negative integers?

Binomial Coefficients ​

二项式定理:
公式

Recurrence Relations ​

Linear Homogeneous recurrence relation ​

Theorem 1:
Let c1 and c2 be real numbers. Suppose that r2–c1–c2=0 has two distinct roots r1 and r2. Then the sequence {an} is a solution of the recurrence relation an=c1an−1+c2an−2 if and only if an=k1r1n+k2r2n for n=0,1,2,…, where k1 and k2 are constants.