Combinatorics Flashcards
Permutation
A permutation of the set {1,2,…,n} is a sequence of length n in which each of the numbers appears exactly once
sequences of length k formed from n elts without repetition
n!/(n-k)!
ways to choose a subset of k objects from set of size n (0 ≤ k ≤ n)
(n k) = n!/k!(n-k)!
Binomial theorem
(𝑥 + 𝑦)ⁿ = ∑_{k=0, n} (n k)𝑥ⁿ⁻ᵏ𝑦ᵏ
Inductive property of binom coefficients
For all integers n ≥ 0 and k,
n k) = ([n-1] [k-1]) + ([n-1] k
Orthogonality for binom coefficients
If r < n are nonnegative integers, then
∑_{k=0, n} (n k)(-1)ᵏkʳ = 0.
Mean Value Theorem for divided differences
If f is n times diffble on an open interval including [0,n] then for some t, 0 ≤ t ≤ n,
∑_{k=0, n}(n k)(-1)ᵏf(k) = (-1)ⁿf⁽ⁿ⁾(t).
Multiset
An unordered collection of elts in which repetition is allowed.
Multiset formula
The number of multisets of size d with elts from a set of size m is
([d+m-1] [m-1]) = ([d+m-1] d).
Dimension of spaces of polynomials
The space of homogeneous polynomials of degree d in m variables has dimension
([d+m-1] [m-1]).
The space of polynomials of degree at most d in m variables has dimension
([d+m] m).
Multinomial theorem
(𝑥 + 𝑦 + 𝑧)ⁿ =
∑_{k,j,𝓁≥0, k+j+𝓁=n} (n!/k!j!𝓁!) 𝑥ʲ𝑦ᵏ𝑧ˡ
Inclusion-Exclusion formula
Let A₁, A₂, …, Aₙ be subsets of a set Ω. Then
|Ω(A₁ ∪ A₂ ∪ … ∪ Aₙ)|
= |Ω| - ∑ᵢ |Aᵢ| + ∑_{i
Stirling approximation
n! ~ sqrt(2𝜋n)(n/e)ⁿ
Binet Theorem (Fibonacci formula)
Let 𝜑 = (1+√5)/2,
𝜓 = (1-√5)/2,
then for n ≥ 0 the nth Fibonacci number is
Fₙ = (𝜑ⁿ - 𝜓ⁿ)/(𝜑 - 𝜓).
Golden Ratio
Fₙ₊₁/Fₙ = (𝜑ⁿ⁺¹ - 𝜓ⁿ⁺¹)/(𝜑ⁿ - 𝜓ⁿ) → 𝜑, so we call 𝜑 the golden ratio.