Docsity

Permutations and Combinations Review Cheat Sheet, Cheat Sheet of Combinatorics

Toggle sidebar
bg1
Ismor Fischer, 7/21/2010
Appendix / A1. Basic Reviews / Perms & Combos-1
A1. Basic Reviews
PERMUTATIONS and COMBINATIONS...
or “HOW TO COUNT”
Question 1: Suppose we wish to arrange n = 5 people {a, b, c, d, e}, standing side by side, for
a portrait. How many such distinct portraits (“permutations”) are possible?
a b c d e
Example:
Solution: There are 5 possible choices for which person stands in the first position (either a, b, c,
d, or e). For each of these five possibilities, there are 4 possible choices left for who is in the next
position. For each of these four possibilities, there are 3 possible choices left for the next position,
and so on. Therefore, there are 5 × 4 × 3 × 2 × 1 = 120 distinct permutations. See Table 1.
This number, 5 × 4 × 3 × 2 × 1 (or equivalently, 1 × 2 × 3 × 4 × 5), is denoted by the symbol “5!”
and read “5 factorial”, so we can write the answer succinctly as 5! = 120.
In general,
FACT 1: The number of distinct PERMUTATIONS of n objects is "n factorial", denoted by
n! = 1 × 2 × 3 × ... × n, or equivalently,
= n × (n-1) × (n-2) × ... × 2 × 1.
Examples: 6! = 6 × 5 × 4 × 3 × 2 × 1
= 6 × 5!
= 6 × 120 (by previous calculation)
= 720
3! = 3 × 2 × 1 = 6
2! = 2 × 1 = 2
1! = 1
0! = 1, BY CONVENTION (It may not be obvious why, but there are good
mathematical reasons for it.)

FACT 1: The number of distinct PERMUTATIONS of n objects is “n factorial”, denoted by
n! = 1 × 2 × 3 × ... × n, or equivalently,
= n × (n − 1) × (n − 2) × ... × 2 × 1.
Here, every different ordering
counts as a distinct permutation.
For instance, the ordering
(a,b,c,d,e) is distinct from
(c,e,a,d,b), etc.
pf3
pf4
pf5
Discount

On special offer

Partial preview of the text

Download Permutations and Combinations Review Cheat Sheet and more Cheat Sheet Combinatorics in PDF only on Docsity!

A1. Basic Reviews

PERMUTATIONS and COMBINATIONS...

or “HOW TO COUNT”

Question 1: Suppose we wish to arrange n = 5 people {a, b, c, d, e}, standing side by side, for a portrait. How many such distinct portraits (“permutations”) are possible?

a b c d e Example:

Solution: There are 5 possible choices for which person stands in the first position (either a, b, c, d, or e). For each of these five possibilities, there are 4 possible choices left for who is in the next position. For each of these four possibilities, there are 3 possible choices left for the next position, and so on. Therefore, there are 5 × 4 × 3 × 2 × 1 = 120 distinct permutations. See Table 1.

This number, 5 × 4 × 3 × 2 × 1 (or equivalently, 1 × 2 × 3 × 4 × 5), is denoted by the symbol “5!” and read “5 factorial”, so we can write the answer succinctly as 5! = 120.

In general,

FACT 1: The number of distinct PERMUTATIONS of n objects is "n factorial", denoted by n! = 1 × 2 × 3 × ... × n, or equivalently, = n × (n-1) × (n-2) × ... × 2 × 1.

Examples: 6! = 6 × 5 × 4 × 3 × 2 × 1

= 6 × 5!

= 6 × 120 (by previous calculation)

= 720

3! = 3 × 2 × 1 = 6

2! = 2 × 1 = 2

0! = 1, BY CONVENTION (It may not be obvious why, but there are good mathematical reasons for it.)



FACT 1: The number of distinct PERMUTATIONS of n objects is “ n factorial”, denoted by

n! = 1 × 2 × 3 × ... × n , or equivalently,

= n × ( n − 1) × ( n − 2) × ... × 2 × 1.

Here, every different ordering counts as a distinct permutation. For instance, the ordering (a,b,c,d,e) is distinct from (c,e,a,d,b), etc.

Question 2: Now suppose we start with the same n = 5 people {a, b, c, d, e}, but we wish to make portraits of only k = 3 of them at a time. How many such distinct portraits are possible?

a b c Example:

Solution: By using exactly the same reasoning as before, there are 5 × 4 × 3 = 60 permutations.

 See Table 2 for the explicit list!

Note that this is technically NOT considered a factorial (since we don't go all the way down to 1), but we can express it as a ratio of factorials:

5 × 4 × 3 =

5 × 4 × 3 × (2 × 1)

(2 × 1)

In general,

FACT 2: The number of distinct PERMUTATIONS of n objects, taken k at a time, is given by the ratio

n! ( n − k )! = n × ( n − 1) × ( n − 2) × ... × ( n − k + 1).

Question 3: Finally suppose that instead of portraits (“permutations”), we wish to form committees (“combinations”) of k = 3 people from the original n = 5. How many such distinct committees are possible?

Example:

c

b

a

Again, as above, every different ordering counts as a distinct permutation. For instance, the ordering (a,b,c) is distinct from (c,a,b), etc.

Now, every different ordering does NOT count as a distinct combination. For instance, the committee {a,b,c} is the same as the committee {c,a,b}, etc.

Remark:

n k

is sometimes called a “combinatorial symbol” or “binomial coefficient” (in

connection with a fundamental mathematical result called the Binomial Theorem; you may also recall the related “Pascal’s Triangle”). The previous examples also show that binomial coefficients

possess a useful symmetry, namely,

n k

n n k

. For example,

, but this is clearly

the same as

. In other words, the number of ways of choosing 3-person committees

from 5 people is equal to the number of ways of choosing 2-person committees from 5 people. A quick way to see this without any calculating is through the insight that every choice of a 3- person committee from a collection of 5 people leaves behind a 2-person committee, so the total number of both types of committee must be equal (10).

Exercise: List all the ways of choosing 2 objects from 5, say {a, b, c, d, e}, and check these claims explicitly. That is, match each pair with its complementary triple in the list of Table 3.

A Simple Combinatorial Application

Suppose you toss a coin n = 5 times in a row. How many ways can you end up with k = 3 heads?

Solution: The answer can be obtained by calculating the number of ways of rearranging 3 objects among 5; it only remains to determine whether we need to use permutations or combinations. Suppose, for example, that the 3 heads occur in the first three tosses, say a, b, and c, as shown below. Clearly, rearranging these three letters in a different order would not result in a different outcome. Therefore, different orderings of the letters a, b, and c should not count as distinct permutations, and likewise for any other choice of three letters among {a, b, c, d, e}. Hence, there

are

= 10 ways of obtaining k = 3 heads in n = 5 independent successive tosses.

Exercise: Let “H” denote heads, and “T” denote tails. Using these symbols, construct the explicit list of 10 combinations. ( Suggestion: Arrange this list of H/T sequences in alphabetical order. You should see that in each case, the three H positions match up exactly with each ordered triple in the list of Table 3. Why?)

a b c d e

Table 1 – Permutations of {a, b, c, d, e}

These are the 5! = 120 ways of arranging 5 objects, in such a way that all the different orders count as being distinct.

a b c d e b a c d e c a b d e d a b c e e a b c d a b c e d b a c e d c a b e d d a b e c e a b d c a b d c e b a d c e c a d b e d a c b e e a c b d a b d e c b a d e c c a d e b d a c e b e a c d b a b e c d b a e c d c a e b d d a e b c e a d b c a b e d c b a e d c c a e d b d a e c b e a d c b a c b d e b c a d e c b a d e d b a c e e b a c d a c b e d b c a e d c b a e d d b a e c e b a d c a c d b e b c d a e c b d a e d b c a e e b c a d a c d e b b c d e a c b d e a d b c e a e b c d a a c e b d b c e a d c b e a d d b e a c e b d a c a c e d b b c e d a c b e d a d b e c a e b d c a a d b c e b d a c e c d a b e d c a b e e c a b d a d b e c b d a e c c d a e b d c a e b e c a d b a d c b e b d c a e c d b a e d c b a e e c b a d a d c e b b d c e a c d b e a d c b e a e c b d a a d e b c b d e a c c d e a d d c e a b e c d a b a d e c b b d e c a c d e d a d c e b a e c d b a a e b c d b e a c d c e a b d d e a b c e d a b c a e b d c b e a d c c e a d b d e a c b e d a c b a e c b d b e c a d c e b a d d e b a c e d b a c a e c d b b e c d a c e b d a d e b c a e d b c a a e d b c b e d a c c e d a b d e c a b e d c a b a e d c b b e d c a c e d b a d e c b a e d c b a