9.2 KB · commit a9602da
See 06.1 The Basics of Counting
See 06.2 The Pigeonhole Principle
See 06.3 Permutations and Combinations
See 06.4 Binomial Coefficients and Identities
See 06.5 Generalized Permutations and Combinations
See 06.6 Generating Permutations and Combinations
The Product Rule for Counting: If a procedure can be broken down into a sequence of two tasks, with n1 ways for the first and n2 ways for the second, there are n1n2 ways to carry out the procedure.
The Sum Rule for Counting: If a task can be done in one of n1 ways or one of n2 ways (mutually exclusive), there are n1+n2 ways to do the task.
The Subtraction Rule (Principle of Inclusion–Exclusion): If a task can be done in either n1 ways or n2 ways: Total ways=n1+n2−(ways common to both)
The Division Rule: There are n/d ways to do a task if it can be done in n ways and for every way w, exactly d of the n ways correspond to w.
The Pigeonhole Principle: 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.
The Generalized Pigeonhole Principle: If N objects are placed into k boxes, then there is at least one box containing at least ⌈N/k⌉ objects.
Monotone Subsequences (Theorem 3 of Section 6.2): Every sequence of n2+1 distinct real numbers contains a subsequence of length n+1 that is either strictly increasing or strictly decreasing.
Ramsey Numbers: R(3,3)=6, R(m,n)=R(n,m), and R(2,n)=n for n≥2.
Number of r-Permutations: P(n,r)=n(n−1)(n−2)⋯(n−r+1)=(n−r)!n!
Number of r-Combinations: C(n,r)=(rn)=r!(n−r)!n!=r!n(n−1)⋯(n−r+1)
Symmetry of Combinations: C(n,r)=C(n,n−r)
The Binomial Theorem: (x+y)n=j=0∑n(jn)xn−jyj=k=0∑n(kn)xn−kyk
Binomial Identities:
Summary of Selection Formulas (Table 1 of Section 6.5):
Permutations with Indistinguishable Objects: The number of permutations of n objects with ni indistinguishable objects of type i is: n1!n2!⋯nk!n!
Distributing Objects into Boxes:
Generation Algorithms: