

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Number of ways to arrange objects in a:
Permutations = n!/(n-k)!
Word rearrangements: n!/(d 1! * d 2! * d 3 !...) where n is number of letters and d 1 , d 2 , d 3 … are number of times each of the letter that occur more than once appear
Combinations = n!/(k! * (n-k)!)
nCk = nC(n-k)
Number of subsets of size n is 2^n
Use complementary counting when the keyword “at least” is present
Principle of Inclusion and Exclusion:
Stars and Bars: number of ways to place n identical objects into k distinguishable bins is: (n + k - 1)Cn
Binomial identity: nC0 + nC1 + … + nCn = 2n
Vandermonde’s identity: nC0 * mCm + nC1 * mC(m-1) + … + nCm * mC0 = (m+n)Cn
Special case of Vandermonde’s identity: kC0 * kC0 + kC1 * kC1 + … + kCk * kCk = 2kCk
Pascal’s identity: nCk + nC(k+1) = (n+1)C(k+1)
Hockey stick identity:
kCk + (k+1)Ck + … + nCk = (n+1)C(k+1)
Hockey stick identity generalisation: jCk + (j+1)Ck + … + nCk = (n+1)C(k+1) - jC(k+1)
Σmk=0(-1)k^ * nCK = (-1)m^ * (n-1)Cm
Number of rectangles of all sizes in a rectangular grid of size m*n is: (m+1)C2 * (n+1)C
Expected value: Sum of xi * P(xi) of some event X where xi are the possible values of X and P(xi) is the probability that they occur
Linearity of Expectations: E(x 1 + x 2 + … + xn) = Ex 1 + Ex 2 + … + Exn Total exected value of n events is just the sum of the expected values of each individual event
Recursion:
States:
Binomial square expansions: (x+y)^2 = x^2 + 2xy + y^2 = (x-y)^2 + 4xy (x-y)^2 = x^2 - 2xy + y^2 = (x+y)^2 - 4xy (x+y)^2 + (x-y)^2 = 2(x^2 + y^2 ) (x+y)^2 - (x-y)^2 = 4xy (x+y+z)^2 = x^2 + y^2 + z^2 + 2(xy + yz+ zx)
Binomial cube expansions: (x+y)^3 = x^3 + y^3 + 3xy(x+y) = x^3 + y^3 + 3x^2 y + 3xy^2 (x-y)^3 = x^3 - y^3 - 3xy(x-y) = x^3 - y^3 - 3x^2 y + 3xy^2