Return to Video

MATH 110 Sec 12.2 (S2020): Permutations and Combinations

  • 0:00 - 0:01
  • 0:01 - 0:05
    Today we'll discuss
    section 12.2 and continue
  • 0:05 - 0:07
    our study of combinatorics.
  • 0:07 - 0:10
    And I'll begin by
    reminding you that we've
  • 0:10 - 0:14
    talked about using lists, and
    tables, and tree diagrams.
  • 0:14 - 0:17
    And more importantly, we
    introduced a counting principle
  • 0:17 - 0:19
    as a counting technique.
  • 0:19 - 0:21
    I want to add to that.
  • 0:21 - 0:27
    Our tool box for counting
    things will continue to grow.
  • 0:27 - 0:30
    Suppose we are arranging
    a promotional photo
  • 0:30 - 0:33
    shoot for three celebrities.
  • 0:33 - 0:34
    And if you like
    Star Wars, you'll
  • 0:34 - 0:40
    recognize these as
    Luke, Han, and Yoda.
  • 0:40 - 0:43
    And I'm asking the question, in
    how many ways can we line them
  • 0:43 - 0:44
    up together for a photo?
  • 0:44 - 0:47
  • 0:47 - 0:51
    If you're just going to
    list them by brute force,
  • 0:51 - 0:54
    one way is to just leave them
    in the order they appear now.
  • 0:54 - 0:57
    You've got Luke, Han and Yoda.
  • 0:57 - 1:00
    And then you need to figure
    out how many ways you
  • 1:00 - 1:03
    can move things around to
    get a different arrangement.
  • 1:03 - 1:07
    Suppose I decide to keep
    Luke in the first position
  • 1:07 - 1:10
    and switch Han and Yoda.
  • 1:10 - 1:12
    That would put Yoda
    in the second position
  • 1:12 - 1:13
    and Han in the third position.
  • 1:13 - 1:15
    And there's no other
    arrangement that leaves
  • 1:15 - 1:17
    Luke in the first position.
  • 1:17 - 1:19
    So maybe now I'll
    slide Luke over
  • 1:19 - 1:24
    into the second position,
    put Luke in the middle.
  • 1:24 - 1:28
    That means I could put Han
    on the left of Luke and Yoda
  • 1:28 - 1:29
    on the right.
  • 1:29 - 1:34
    Or I could switch that and
    put Yoda on the left and Han
  • 1:34 - 1:36
    on the right.
  • 1:36 - 1:39
    If you think about it,
    there's no other arrangement
  • 1:39 - 1:41
    that leaves Luke in the middle.
  • 1:41 - 1:44
    So let's move Luke
    over to the far right.
  • 1:44 - 1:49
    Now let's put Han
    first, Yoda second,
  • 1:49 - 1:52
    leaving Luke in
    the third position.
  • 1:52 - 1:57
    The only other thing I can
    do is switch Han and Yoda.
  • 1:57 - 2:00
    And that's a sixth
    way to do this.
  • 2:00 - 2:04
    And as you can see, I put Luke
    in every possible position.
  • 2:04 - 2:08
    And then I've switched
    the other two around Luke,
  • 2:08 - 2:10
    so there's no
    other way to do it.
  • 2:10 - 2:13
    And the answer would be six.
  • 2:13 - 2:16
    You could do this with
    a tree diagram as well.
  • 2:16 - 2:18
    If you were to break
    it out that way,
  • 2:18 - 2:20
    you could start off
    with Luke and branch
  • 2:20 - 2:22
    to either Han, and
    Yoda, and so forth.
  • 2:22 - 2:25
    But the point is,
    either way you do it,
  • 2:25 - 2:31
    there are six possible ways of
    arranging three people in line
  • 2:31 - 2:34
    to take a photo.
  • 2:34 - 2:38
    Each of those six
    orderings is called
  • 2:38 - 2:42
    a permutation of those objects.
  • 2:42 - 2:48
    So there are six permutations
    of three things taken together.
  • 2:48 - 2:50
    Fortunately, there's a
    quick way to calculate
  • 2:50 - 2:52
    the number of permutations,
    and it involves
  • 2:52 - 2:55
    something called a factorial.
  • 2:55 - 2:58
    And the definition involves
    an exclamation point.
  • 2:58 - 3:00
    Here it says, n
    exclamation point.
  • 3:00 - 3:02
    That's read, n factorial.
  • 3:02 - 3:07
    And n factorial is defined
    to be n times n minus 1,
  • 3:07 - 3:10
    times n minus 2, continuing that
    pattern to count down to one.
  • 3:10 - 3:13
  • 3:13 - 3:15
    Now, hold that thought.
  • 3:15 - 3:18
    We're going to go
    off and explore
  • 3:18 - 3:21
    this idea of a factorial, and
    we'll come back to this spot.
  • 3:21 - 3:25
    So remember this spot,
    and we'll come back to it.
  • 3:25 - 3:28
    Going back and diverting and
    talking about factorials,
  • 3:28 - 3:32
    the n exclamation point
    is read, n factorial.
  • 3:32 - 3:35
    And the calculation
    is simply whatever
  • 3:35 - 3:38
    number is to the left of
    the exclamation point.
  • 3:38 - 3:41
    You start with that,
    and then you count down
  • 3:41 - 3:43
    until you get to one,
    and you take the product.
  • 3:43 - 3:47
    So 4 factorial is 4
    times 3 times 2 times 1,
  • 3:47 - 3:50
    which happens to be 24.
  • 3:50 - 3:55
    6 factorial would be 6 times 5
    times 4 times 3 times 2 times
  • 3:55 - 3:59
    1, which is 720.
  • 3:59 - 4:01
    1 factorial-- you start
    at 1, and you count down
  • 4:01 - 4:02
    till you get to 1.
  • 4:02 - 4:07
    Well, you're already at 1,
    so 1 factorial is just 1.
  • 4:07 - 4:09
    There is one
    special case that we
  • 4:09 - 4:11
    need that doesn't
    follow that pattern.
  • 4:11 - 4:17
    As long as n is 1, or 2, or 3,
    or 4, or any counting number,
  • 4:17 - 4:19
    you can use this formula.
  • 4:19 - 4:21
    But there is a need
    occasionally for us
  • 4:21 - 4:25
    to define what happens when
    you get zero factorial.
  • 4:25 - 4:29
    And it turns out that zero
    factorial is, by definition,
  • 4:29 - 4:31
    equal to one.
  • 4:31 - 4:33
    I'm not going to talk about why.
  • 4:33 - 4:35
    At this point, it
    doesn't matter.
  • 4:35 - 4:38
    But in order for our
    factorials to work
  • 4:38 - 4:40
    the way we want them
    to work, we have
  • 4:40 - 4:43
    to define zero
    factorial to be one.
  • 4:43 - 4:46
    That's the one that you
    just have to memorize.
  • 4:46 - 4:49
    It doesn't follow the
    pattern for the others.
  • 4:49 - 4:50
    Now, you can play with this.
  • 4:50 - 4:52
    But you probably can see,
    just by the definition,
  • 4:52 - 4:56
    that factorials can
    get big really fast.
  • 4:56 - 4:59
    So it's nice to know that
    your Casio FX-260 does
  • 4:59 - 5:01
    have a Factorial button.
  • 5:01 - 5:04
    If you look at your calculator,
    the Factorial button
  • 5:04 - 5:09
    is above the number
    three on the calculator.
  • 5:09 - 5:12
    So that means you have to
    press Shift to get to it.
  • 5:12 - 5:15
    So if I ask you to
    calculate 8 factorial,
  • 5:15 - 5:18
    you would press eight.
  • 5:18 - 5:20
    Then you would do Shift-3.
  • 5:20 - 5:23
    Shift-3 takes you to factorial.
  • 5:23 - 5:25
    And you don't even
    have to press Equal To,
  • 5:25 - 5:28
    and you'll get 40,320.
  • 5:28 - 5:31
    Now that we know how to
    calculate factorial, let's
  • 5:31 - 5:35
    go back to the spot I asked
    you to remember earlier
  • 5:35 - 5:36
    and pick up from there.
  • 5:36 - 5:40
    Remember, we were
    here, just after we'd
  • 5:40 - 5:44
    done these permutations
    of Luke, Han, and Yoda
  • 5:44 - 5:47
    and found out that there were
    six ways we could line them up
  • 5:47 - 5:47
    for a photo.
  • 5:47 - 5:50
  • 5:50 - 5:52
    The important point
    here, though, I
  • 5:52 - 5:55
    want to emphasize
    is that it turns out
  • 5:55 - 6:01
    that the number of permutations
    is actually n factorial where
  • 6:01 - 6:02
    n is how many distinct
    objects you have.
  • 6:02 - 6:07
    So here, you have three people,
    so it will be 3 factorial.
  • 6:07 - 6:13
    And 3 factorial is 3 times
    2 times 1, which is 6.
  • 6:13 - 6:16
    Notice it matches
    what we got earlier.
  • 6:16 - 6:19
    So rather than having
    to actually write out
  • 6:19 - 6:23
    every permutation, we can
    just use the factorial formula
  • 6:23 - 6:25
    and get there very quickly.
  • 6:25 - 6:30
    And again, just for emphasis,
    that's exactly the same answer
  • 6:30 - 6:34
    we got when we just
    did it by brute force.
  • 6:34 - 6:35
    Now, you need to remember this.
  • 6:35 - 6:37
    This is a very
    important result. If you
  • 6:37 - 6:42
    want to count permutations
    of indistinct objects,
  • 6:42 - 6:45
    all you need to do is
    calculate n factorial.
  • 6:45 - 6:47
    Occasionally though, we're
    interested in counting
  • 6:47 - 6:49
    the number of
    different arrangements
  • 6:49 - 6:51
    of a group of objects.
  • 6:51 - 6:55
    Now let's go back to the
    example that we began with.
  • 6:55 - 6:58
    That's Luke, Han, and Yoda.
  • 6:58 - 6:59
    But what if we added
    a fourth person?
  • 6:59 - 7:02
    What would that do?
  • 7:02 - 7:04
    What if we added Princess Leia?
  • 7:04 - 7:07
    Well, now that we
    know that factorials
  • 7:07 - 7:09
    do the counting for
    us, all we have to do
  • 7:09 - 7:12
    is calculate 4 factorial
    instead of 3 factorial.
  • 7:12 - 7:18
    The 4 factorial is 4 times 3
    times 2 times 1, which is 24.
  • 7:18 - 7:20
    So there are 24 different
    arrangements possible
  • 7:20 - 7:23
    if you got four people.
  • 7:23 - 7:25
    And knowing that
    form is good enough
  • 7:25 - 7:27
    when the number of
    objects you're arranging
  • 7:27 - 7:29
    is the same as the
    number of objects you
  • 7:29 - 7:31
    have to choose from because--
  • 7:31 - 7:34
    For example, in the last
    exercise, we had four people,
  • 7:34 - 7:38
    and we lined them all
    four up for a photo.
  • 7:38 - 7:40
    But what if you were doing
    something slightly differently?
  • 7:40 - 7:42
    Suppose we had a
    bicycle built for two,
  • 7:42 - 7:44
    and we wanted to pick
    two of those four people
  • 7:44 - 7:48
    and put them on the
    bicycle built for two.
  • 7:48 - 7:51
    Also keep in mind, if you're
    looking for the number of ways
  • 7:51 - 7:54
    you could do that, a person
    sitting on the front seat
  • 7:54 - 7:56
    would be different than
    that same person sitting
  • 7:56 - 7:58
    on the back seat.
  • 7:58 - 8:00
    So we will look at the
    number of arrangements.
  • 8:00 - 8:02
    We're choosing from
    the four celebrities,
  • 8:02 - 8:06
    but we can only take them two
    at a time to get a photo of them
  • 8:06 - 8:09
    on a bicycle built for two.
  • 8:09 - 8:11
    So this time, the count
    is slightly different.
  • 8:11 - 8:13
    I don't want to take
    them all four at time.
  • 8:13 - 8:14
    How do you deal with that?
  • 8:14 - 8:16
    Well, let's play with this.
  • 8:16 - 8:19
    I'm going to just
    randomly reach up and grab
  • 8:19 - 8:20
    two of the celebrities.
  • 8:20 - 8:23
    I'll take Luke and Leia.
  • 8:23 - 8:25
    Put Luke on the front seat
    and Leia on the back seat--
  • 8:25 - 8:28
    so that would be my
    first arrangement.
  • 8:28 - 8:31
    Now you need a strategy to
    go through every possibility
  • 8:31 - 8:32
    in an organized fashion.
  • 8:32 - 8:36
    So I decided I'm going to
    leave Leia on the back seat
  • 8:36 - 8:38
    and swap everyone else out.
  • 8:38 - 8:42
    So if Leia stays on the back
    seat, and I take Luke off,
  • 8:42 - 8:43
    I can put Han in Luke's place.
  • 8:43 - 8:45
    That's the second possibility.
  • 8:45 - 8:47
    Again, I want to keep
    Leia on that back seat
  • 8:47 - 8:48
    as long as possible.
  • 8:48 - 8:50
    So now the only
    other way to do that
  • 8:50 - 8:54
    is to put Yoda on
    the front seat.
  • 8:54 - 8:57
    That's a third possibility.
  • 8:57 - 9:00
    At this point, Leia has
    to come off the back seat,
  • 9:00 - 9:02
    or I don't get any more
    unique arrangements.
  • 9:02 - 9:05
    So I'll take Leia
    off the back seat
  • 9:05 - 9:08
    and put Luke on the back seat.
  • 9:08 - 9:10
    And then I'll start
    on the left, and I'll
  • 9:10 - 9:13
    pair Luke on the back seat
    with Leia on the front seat.
  • 9:13 - 9:14
    That's a fourth arrangement.
  • 9:14 - 9:17
    I'm going to leave
    Luke on the back seat
  • 9:17 - 9:19
    and take everyone else
    on the front seat.
  • 9:19 - 9:23
    I've already used Leia, so I'll
    move Leia off and take Han.
  • 9:23 - 9:26
    So now I'm leaving
    Luke on the back seat,
  • 9:26 - 9:27
    Han goes in the front seat.
  • 9:27 - 9:31
    Again, if I leave
    Luke where he is
  • 9:31 - 9:34
    and take Han off
    and put Yoda, that
  • 9:34 - 9:36
    gives me yet a
    sixth possibility.
  • 9:36 - 9:38
    There's nothing else
    I can do and leave
  • 9:38 - 9:40
    Luke on the back seat.
  • 9:40 - 9:42
    So I'll take Luke
    off the back seat now
  • 9:42 - 9:43
    and put Han on the back seat.
  • 9:43 - 9:46
    And I'll start on the left and
    let Leia be on the front seat.
  • 9:46 - 9:48
    That's a seventh arrangement.
  • 9:48 - 9:50
    Keeping Han in the
    back seat, now I
  • 9:50 - 9:52
    can put Luke on the front seat.
  • 9:52 - 9:53
    That's an eighth arrangement.
  • 9:53 - 9:57
    Leaving Han on the back seat, I
    can put Yoda on the front seat.
  • 9:57 - 9:59
    That's a ninth arrangement.
  • 9:59 - 10:01
    Now there's nothing else
    I can do and still leave
  • 10:01 - 10:04
    Han on the back seat, so I'll
    bump Han off the back seat
  • 10:04 - 10:05
    and put Yoda on the back seat.
  • 10:05 - 10:07
    And then I'll start
    on the left again.
  • 10:07 - 10:10
    So Han is off.
  • 10:10 - 10:14
    Yoda goes in the back seat,
    Leia on the front seat.
  • 10:14 - 10:16
    That's a tenth arrangement.
  • 10:16 - 10:18
    Leaving Yoda in the
    back seat, now I'll
  • 10:18 - 10:20
    put Luke on the front seat.
  • 10:20 - 10:22
    That's an 11th arrangement.
  • 10:22 - 10:24
    And finally, leaving
    Yoda in the back seat,
  • 10:24 - 10:26
    I can put Han on the front seat.
  • 10:26 - 10:28
    And that's a 12th arrangement.
  • 10:28 - 10:30
    And there's really
    nowhere else to go.
  • 10:30 - 10:33
    So there are 12 permutations
    of four objects--
  • 10:33 - 10:37
    and this is important--
    taken two at a time.
  • 10:37 - 10:39
    So I'm still trying to
    arrange four objects,
  • 10:39 - 10:42
    but I'm only taking
    them in pairs.
  • 10:42 - 10:45
    This is an important distinction
    because, if you're not
  • 10:45 - 10:47
    taking them all, you've
    got to know how many you
  • 10:47 - 10:49
    are taking at a time.
  • 10:49 - 10:51
    And that's extremely important.
  • 10:51 - 10:53
    So in the previous example,
    when we took four people,
  • 10:53 - 10:55
    we took all four at a time.
  • 10:55 - 10:58
    That turned out just
    to be a factorial.
  • 10:58 - 11:01
    4 factorial is 24.
  • 11:01 - 11:04
    But when we took
    them two at a time,
  • 11:04 - 11:07
    it turned out to be only 12.
  • 11:07 - 11:12
    We learn, if we do take them
    all, we just use the factorial,
  • 11:12 - 11:14
    as I mentioned.
  • 11:14 - 11:17
    The question is, is
    there also a formula
  • 11:17 - 11:20
    if you don't take
    all of them at once?
  • 11:20 - 11:23
    And the answer turns
    out to be lucky for us--
  • 11:23 - 11:25
    yes, there is.
  • 11:25 - 11:26
    And here's what we need.
  • 11:26 - 11:29
    A permutation is an ordering
    of distinct objects.
  • 11:29 - 11:32
    You often think of them as
    being in a straight line.
  • 11:32 - 11:36
    If we select r distinct objects
    from a set of n objects--
  • 11:36 - 11:39
    in other words, you're only
    taking them r at a time--
  • 11:39 - 11:41
    and arrange them
    in some order, we
  • 11:41 - 11:45
    call this a permutation of
    n objects taken r at a time.
  • 11:45 - 11:49
    It's denoted quite often with
    a capital P and subscripts n
  • 11:49 - 11:54
    on the left and r on the
    right, or just a capital P
  • 11:54 - 11:56
    and have n comma
    r in parentheses.
  • 11:56 - 11:59
    Both of those notations
    are common ways
  • 11:59 - 12:03
    to list a permutation of n
    objects taken r at a time.
  • 12:03 - 12:05
    And here's the formula.
  • 12:05 - 12:10
    The formula for that is
    n factorial up top and n
  • 12:10 - 12:13
    minus r factorial down bottom.
  • 12:13 - 12:15
    We're not going to
    prove this, but we're
  • 12:15 - 12:19
    going to use the
    result, nevertheless.
  • 12:19 - 12:22
    Now let's apply that formula
    to the bicycle-built-for-two
  • 12:22 - 12:25
    problem and see if we get that
    same answer, which was 12,
  • 12:25 - 12:27
    that we got earlier.
  • 12:27 - 12:28
    So let's plug them in.
  • 12:28 - 12:31
    We had four people, so n is 4.
  • 12:31 - 12:34
    We took them two at
    a time, so r is 2.
  • 12:34 - 12:39
    So if you plug in 4
    for n and 2 for 4,
  • 12:39 - 12:45
    you get 4 factorial over the
    quantity 4 minus 2 factorial.
  • 12:45 - 12:48
    Or 4 factorial over
    4 minus 2 factorial
  • 12:48 - 12:51
    is 4 factorial over 2 factorial.
  • 12:51 - 12:53
    4 factorial's 4 times
    3 times 2 times 1.
  • 12:53 - 12:56
    2 factorial's 2 times 1.
  • 12:56 - 12:58
    That's 24 over 2, which is 12--
  • 12:58 - 13:01
    gives us exactly the same
    answer we got before.
  • 13:01 - 13:04
  • 13:04 - 13:06
    And just like for the
    factorial, there's
  • 13:06 - 13:10
    a Permutation button on
    your calculator as well.
  • 13:10 - 13:12
    It's above the number one.
  • 13:12 - 13:16
    That is the permutation button.
  • 13:16 - 13:21
    It's above the one, so you have
    to press Shift to access it.
  • 13:21 - 13:23
    So if I want to
    calculate permutation
  • 13:23 - 13:28
    of four things taken two at a
    time, here are the keystrokes.
  • 13:28 - 13:30
    Press the four.
  • 13:30 - 13:35
    Do Shift-1, which takes
    you to the permutation.
  • 13:35 - 13:39
    Then you put in the
    two, which is the r.
  • 13:39 - 13:40
    And in order to get
    that to calculate,
  • 13:40 - 13:42
    you have to press Equal.
  • 13:42 - 13:44
    For the factorial you
    didn't have to press Equal.
  • 13:44 - 13:47
    You just have one
    number, and you
  • 13:47 - 13:50
    hit the Factorial-Shift
    combination.
  • 13:50 - 13:51
    But when you're
    plugging in two numbers,
  • 13:51 - 13:54
    you have to press Equal
    after the second number
  • 13:54 - 13:56
    to get the calculation
    to take place.
  • 13:56 - 13:57
    And in this case,
    you would end up
  • 13:57 - 14:01
    with 12, which again is the
    same answer we got earlier.
  • 14:01 - 14:05
  • 14:05 - 14:06
    So a very important formula--
  • 14:06 - 14:09
    this is the formula for
    the permutation of it
  • 14:09 - 14:12
    n things taken all r at a time.
  • 14:12 - 14:15
    Just to practice, if I ask you
    to evaluate the permutation
  • 14:15 - 14:18
    to four things taken two at
    a time times the permutations
  • 14:18 - 14:21
    of eight things
    taken four at a time,
  • 14:21 - 14:24
    you would calculate the
    permutation to four combination
  • 14:24 - 14:31
    two first, which is
    four, Shift-1, press two.
  • 14:31 - 14:33
    Then you want to hit Equal To.
  • 14:33 - 14:36
    Then you do the
    multiplication symbol.
  • 14:36 - 14:38
    Then you do a permutation
    of eight things,
  • 14:38 - 14:40
    so you press eight.
  • 14:40 - 14:43
    Then you do Shift-1 again.
  • 14:43 - 14:44
    Then you press four.
  • 14:44 - 14:47
    And to make it do the
    calculation, you press Equal.
  • 14:47 - 14:50
  • 14:50 - 14:55
    And you'll get 20,160.
  • 14:55 - 15:00
    So that's just practice
    using the calculator
  • 15:00 - 15:01
    with permutations.
  • 15:01 - 15:03
  • 15:03 - 15:05
    There is one more interesting
    fact that I like mentioning.
  • 15:05 - 15:09
    In that formula above,
    if n is equal to r,
  • 15:09 - 15:13
    you would get the permutations
    of n things taken n at a time.
  • 15:13 - 15:16
    And if you plug that
    into the formula above,
  • 15:16 - 15:19
    you'll get n factorial
    over n minus n factorial.
  • 15:19 - 15:22
    Well, n minus n is 0,
    and 0 factorial is 1.
  • 15:22 - 15:26
    So you get n factorial over
    1, which is just n factorial.
  • 15:26 - 15:28
    So if you don't believe it,
    try it on your calculator.
  • 15:28 - 15:32
    If n and r are the same
    number for a permutation,
  • 15:32 - 15:34
    it's just the same
    thing as just doing
  • 15:34 - 15:37
    the factorial of that number.
  • 15:37 - 15:42
    You don't have to know that, but
    it is a nice, interesting fact.
  • 15:42 - 15:45
    Now, suppose we've got two
    of these four celebrities.
  • 15:45 - 15:48
    And we're going to choose them
    as before on the bicycle built
  • 15:48 - 15:51
    for two except, this time, we're
    not putting them on a bicycle.
  • 15:51 - 15:55
    We're going to give them a star
    on the Hollywood Walk of Fame.
  • 15:55 - 15:56
    The difference is important.
  • 15:56 - 15:58
    On the bicycle built for
    two, the order mattered.
  • 15:58 - 16:00
    Sitting on the front seat
    was different from sitting
  • 16:00 - 16:01
    on the back seat.
  • 16:01 - 16:05
    But if I'm just choosing
    two people to get a star,
  • 16:05 - 16:08
    it doesn't matter what
    order I chose them in.
  • 16:08 - 16:11
    It's an important distinction.
  • 16:11 - 16:14
    So for instance, if the two
    chosen were Han and Yoda,
  • 16:14 - 16:17
    it doesn't matter if I
    do Han/Yoda or Yoda/Han.
  • 16:17 - 16:21
    In the example on the bicycle
    built for two, it did matter.
  • 16:21 - 16:24
    It decided which one was
    on the front of the bike.
  • 16:24 - 16:26
    But for the stars,
    it doesn't matter.
  • 16:26 - 16:29
    Problems like that, where
    the order doesn't matter,
  • 16:29 - 16:30
    has a special name.
  • 16:30 - 16:32
    It's called a combination.
  • 16:32 - 16:35
    Those type problems are
    combination problems.
  • 16:35 - 16:38
    Now, we've already written
    out the 12 arrangements
  • 16:38 - 16:40
    for the bicycle built for two.
  • 16:40 - 16:43
    And we can see that what
    happens is, with the stars,
  • 16:43 - 16:45
    the order doesn't matter.
  • 16:45 - 16:46
    So we can actually
    look back at the answer
  • 16:46 - 16:49
    we got for the
    bicycle built for two
  • 16:49 - 16:51
    and just eliminate
    the duplicates.
  • 16:51 - 16:55
    In other words, if
    you've got Leia and Han,
  • 16:55 - 17:00
    and you've got Han and Leia, if
    you're just giving them a star,
  • 17:00 - 17:03
    it doesn't matter what
    order they were chosen in.
  • 17:03 - 17:05
    So really, four is
    a duplicate of one,
  • 17:05 - 17:07
    so you can just get rid of four.
  • 17:07 - 17:09
    And the same thing is
    true going down the list.
  • 17:09 - 17:12
    If you've got Leia
    and Han, that's
  • 17:12 - 17:14
    the same as Han and Leia,
    which is number seven.
  • 17:14 - 17:18
    So you can get rid of the
    seven, and you keep moving down.
  • 17:18 - 17:21
    Number three is Leia and
    Yoda, so you can also
  • 17:21 - 17:23
    get rid of number 10,
    which is Yoda and Leia.
  • 17:23 - 17:25
    So you don't need
    that duplicate.
  • 17:25 - 17:28
    Giving them stars, the
    order doesn't matter.
  • 17:28 - 17:32
    And as you move down the
    list, you've got Luke and Han.
  • 17:32 - 17:34
    And the number eight
    is Han and Luke,
  • 17:34 - 17:37
    so you can get rid
    of number eight.
  • 17:37 - 17:42
    Number six is Luke and Yoda,
    and number 11 is Yoda and Luke,
  • 17:42 - 17:44
    so you can get rid
    of that number 11.
  • 17:44 - 17:46
    It's a duplicate.
  • 17:46 - 17:49
    And then, finally,
    you've got Han and Yoda,
  • 17:49 - 17:52
    and number 12 is Yoda and Han.
  • 17:52 - 17:54
    So you can get rid of number 12.
  • 17:54 - 17:59
    And that leaves
    you simply with six
  • 17:59 - 18:00
    where you're just
    giving them a star.
  • 18:00 - 18:03
    The order doesn't matter.
  • 18:03 - 18:04
    Is there a formula for that?
  • 18:04 - 18:07
    Yes, there is.
  • 18:07 - 18:08
    It has to do with
    the combination.
  • 18:08 - 18:12
    A combination is a subset
    of a set of distinct objects
  • 18:12 - 18:14
    where order is not important.
  • 18:14 - 18:17
    If we select r objects
    from a set of n objects
  • 18:17 - 18:21
    without regard to order,
    we call this a combination
  • 18:21 - 18:23
    of n objects taken r at a time.
  • 18:23 - 18:27
    And it's often written exactly
    as for a permutation, except we
  • 18:27 - 18:30
    use capital C
    instead of capital P.
  • 18:30 - 18:32
    So we could put
    the capital C there
  • 18:32 - 18:35
    with the subscript of n on
    the left and r on the right.
  • 18:35 - 18:39
    Or we can write capital C
    with n comma r in parentheses.
  • 18:39 - 18:43
    So the capital P for
    permutation changes
  • 18:43 - 18:46
    to capital C for combination.
  • 18:46 - 18:49
    And there is your formula.
  • 18:49 - 18:51
    Combination of n
    things take r at a time
  • 18:51 - 18:54
    is n factorial in the numerator.
  • 18:54 - 18:58
    And the denominator is the
    product of r factorial and n
  • 18:58 - 19:02
    minus r factorial.
  • 19:02 - 19:05
    That's the formula when
    order doesn't matter.
  • 19:05 - 19:08
    If we apply that to that
    Hollywood Walk of Fame star
  • 19:08 - 19:11
    problem, remember, we
    got an answer of six
  • 19:11 - 19:13
    when we did it by brute force.
  • 19:13 - 19:15
    Let's see if we get the
    same answer by plugging in.
  • 19:15 - 19:18
    In this problem, if we
    had four people taken two
  • 19:18 - 19:21
    at a time where order
    doesn't matter--
  • 19:21 - 19:22
    so it's a combination--
  • 19:22 - 19:24
    plugging into that
    formula for a combination,
  • 19:24 - 19:29
    we get 4 factorial over the
    product of 2 factorial and 4
  • 19:29 - 19:31
    minus 2 factorial.
  • 19:31 - 19:35
    Well, that's 4 factorial over
    2 factorial times 2 factorial.
  • 19:35 - 19:39
    4 factorial is 4 times
    3 times 2 times 1,
  • 19:39 - 19:41
    and 2 factorial is 2 times 1.
  • 19:41 - 19:45
    If you write all that out, 4
    times 3 times 2 times 1 is 24.
  • 19:45 - 19:47
    And 2 times 1 times
    2 times 1 is 4.
  • 19:47 - 19:50
    And 24 divided by 4--
  • 19:50 - 19:52
    big surprise-- is six.
  • 19:52 - 19:55
    It's exactly the same answer as
    when we did it by brute force.
  • 19:55 - 19:59
    So these formulas allow
    you to get to the count
  • 19:59 - 20:03
    much faster than having
    to do it by brute force.
  • 20:03 - 20:05
    And again, you won't
    be surprised to know
  • 20:05 - 20:09
    that there is a button on
    your calculator for that.
  • 20:09 - 20:12
    It's above the
    number two, and you
  • 20:12 - 20:15
    have to press the
    Shift key to access it.
  • 20:15 - 20:18
    So if I were to calculate
    the combination of four
  • 20:18 - 20:21
    things taken two at a
    time, I would press four,
  • 20:21 - 20:23
    then I'd do Shift-2.
  • 20:23 - 20:26
    Then I would press
    two, which is the r.
  • 20:26 - 20:29
    And to calculate it,
    you hit Equal To,
  • 20:29 - 20:30
    and you'll come up
    with the number six.
  • 20:30 - 20:33
    Again, it's the same
    answer we got before.
  • 20:33 - 20:36
  • 20:36 - 20:38
    Now, one of the things
    you'll come across
  • 20:38 - 20:40
    when you're doing
    these is that, when
  • 20:40 - 20:44
    you read a problem, sometimes
    you have to figure out,
  • 20:44 - 20:48
    is it a permutation
    or is a combination?
  • 20:48 - 20:52
    For example, suppose there are
    10 different books in a box,
  • 20:52 - 20:55
    and four of them are to
    be arranged on a shelf.
  • 20:55 - 20:57
    How many different
    arrangements are possible?
  • 20:57 - 20:59
    You're taking 10 books.
  • 20:59 - 21:01
    And you're going to
    take four of them
  • 21:01 - 21:02
    and arrange them on a shelf.
  • 21:02 - 21:05
    Well, if you're arranging them
    on a shelf, by definition,
  • 21:05 - 21:08
    order matters.
  • 21:08 - 21:09
    So that makes it a--
  • 21:09 - 21:12
  • 21:12 - 21:12
    right.
  • 21:12 - 21:16
    It makes it a permutation,
    because order matters.
  • 21:16 - 21:19
    If you get that
    wrong, of course,
  • 21:19 - 21:20
    your answer will be wrong.
  • 21:20 - 21:22
    You have to know here
    that order matters.
  • 21:22 - 21:23
    You're making arrangements.
  • 21:23 - 21:26
    By definition, that's order.
  • 21:26 - 21:28
    So I use the
    permutation formula,
  • 21:28 - 21:33
    plugging 10 in for
    n and 4 in for r--
  • 21:33 - 21:36
    10 books, four at a time.
  • 21:36 - 21:40
    So that's 10 factorial
    over 6 factorial.
  • 21:40 - 21:44
    And if you do the calculation,
    that comes out of a 5,040.
  • 21:44 - 21:46
    There are 5,040
    different arrangements
  • 21:46 - 21:50
    of 10 books taking four
    at a time on a bookshelf.
  • 21:50 - 21:54
    You could also do this
    problem, just FYI,
  • 21:54 - 21:56
    by using the counting
    principal directly.
  • 21:56 - 21:59
    You could think of it as a
    fourth-stage experiment where
  • 21:59 - 22:03
    you're choosing book number one,
    book number two, book number
  • 22:03 - 22:04
    three, and book number four.
  • 22:04 - 22:06
    And if you think about
    it, you have 10 books.
  • 22:06 - 22:10
    So for your first stage
    of the experiment,
  • 22:10 - 22:11
    you can choose any of the 10.
  • 22:11 - 22:14
    But once that first
    book has been chosen,
  • 22:14 - 22:17
    you only have nine left to
    choose for the second position,
  • 22:17 - 22:19
    and eight for the
    third position,
  • 22:19 - 22:21
    and seven for the
    fourth position.
  • 22:21 - 22:24
    And 10 times 9 times 8
    times 7, believe it or not,
  • 22:24 - 22:27
    is also 5,040.
  • 22:27 - 22:29
    So you could actually
    do that problem
  • 22:29 - 22:30
    by the counting principal.
  • 22:30 - 22:32
    And you'll find that
    to be true quite a lot.
  • 22:32 - 22:36
    The counting principal is
    kind of a bedrock principle.
  • 22:36 - 22:40
    And sometimes, you
    can use it in place
  • 22:40 - 22:41
    of using one of
    these other formulas,
  • 22:41 - 22:43
    if you really want to.
  • 22:43 - 22:48
    But it is the same answer,
    either way you do it.
  • 22:48 - 22:51
    If you wanted to do that on your
    calculator, you'd type in 10,
  • 22:51 - 22:55
    hit Shift-1, which is the
    permutation combination.
  • 22:55 - 23:01
    Then you'd press four, and
    that would give you 5,040.
  • 23:01 - 23:02
    Let's do another example.
  • 23:02 - 23:05
    Suppose we got that 10
    different books again.
  • 23:05 - 23:08
    But this time, Jan wants
    to choose four of them
  • 23:08 - 23:10
    to read while
    going on some trip.
  • 23:10 - 23:14
    Maybe she's taking them
    into the car with her.
  • 23:14 - 23:16
    How many different
    arrangements are possible?
  • 23:16 - 23:19
    Now, how is that different from
    putting books on a bookshelf?
  • 23:19 - 23:21
    If you're putting
    books on a bookshelf,
  • 23:21 - 23:23
    you're arranging the books
    in a different order.
  • 23:23 - 23:26
    Here, Jan doesn't care
    which book is chosen first.
  • 23:26 - 23:29
    She is simply going
    to grab four books
  • 23:29 - 23:31
    and bring them with
    her on the trip.
  • 23:31 - 23:33
    Order doesn't matter at all.
  • 23:33 - 23:38
    The order she picks those books
    is totally irrelevant to Jan.
  • 23:38 - 23:40
    That means it's a combination.
  • 23:40 - 23:43
    Again, if you get
    that wrong, you're
  • 23:43 - 23:44
    going to get the answer wrong.
  • 23:44 - 23:48
    It's a combination because
    order does not matter.
  • 23:48 - 23:51
    Once you figure that out, you
    use a combination formula--
  • 23:51 - 23:56
    again, plugging 10 in
    for n and 4 in for r.
  • 23:56 - 24:00
    And you end up with 10
    factorial over the product
  • 24:00 - 24:02
    of 4 factorial and 6 factorial.
  • 24:02 - 24:06
    And that comes out to be 210.
  • 24:06 - 24:08
    And again, if you wanted
    to do that calculation
  • 24:08 - 24:10
    with your calculator--
  • 24:10 - 24:14
    10 factorial over 6 factorial.
  • 24:14 - 24:16
    And if you want to do that
    calculation in your calculator,
  • 24:16 - 24:19
    you'd type in 10,
    hit Shift-2, which
  • 24:19 - 24:21
    gives you the combination.
  • 24:21 - 24:24
    And then you'd do
    four, and Equal To,
  • 24:24 - 24:26
    and that gives you
    the same answer.
  • 24:26 - 24:29
    So even though I'm giving you
    the formulas for combinations
  • 24:29 - 24:32
    of permutations,
    really you just need
  • 24:32 - 24:33
    to know how to do
    it on a calculator,
  • 24:33 - 24:37
    and you can avoid having to
    plug into these formulas.
  • 24:37 - 24:39
    So I'm doing it sort
    of just to reinforce
  • 24:39 - 24:42
    that these formulas really
    do give you the right result.
  • 24:42 - 24:45
    But I'm also pointing out that
    the calculator is the fastest
  • 24:45 - 24:48
    and best way to do it.
  • 24:48 - 24:51
    Sometimes, a problem requires
    the use of more than one
  • 24:51 - 24:52
    counting tool.
  • 24:52 - 24:55
    So in order to discuss
    problems like that,
  • 24:55 - 24:58
    it's probably a good time to
    go back and remind ourselves
  • 24:58 - 25:01
    of all the tools we've
    developed so far.
  • 25:01 - 25:04
    Remember, we talked about lists,
    tables, and tree diagrams.
  • 25:04 - 25:06
    We talked about the
    counting principle.
  • 25:06 - 25:10
    We talked about the permutation
    formula as a factorial.
  • 25:10 - 25:13
    Remember, factorial is a special
    type of permutation where
  • 25:13 - 25:16
    you take them all the time.
  • 25:16 - 25:19
    We've talked about permutations
    when you don't take them
  • 25:19 - 25:20
    all at a time.
  • 25:20 - 25:22
    You take n objects r at a time.
  • 25:22 - 25:27
    We've talked about combinations
    where order doesn't matter.
  • 25:27 - 25:29
    So we're building
    a tool box of tools
  • 25:29 - 25:34
    that help us count arrangements
    of things and different items
  • 25:34 - 25:37
    that we want to count.
  • 25:37 - 25:38
    Let's look at a
    particular example.
  • 25:38 - 25:40
    Suppose a committee
    of four people
  • 25:40 - 25:42
    is chosen from eight
    women and eight men.
  • 25:42 - 25:45
    How many different committees
    are possible consisting
  • 25:45 - 25:47
    of two women and two men?
  • 25:47 - 25:51
    Well, here, order isn't
    important on the committee.
  • 25:51 - 25:54
    You pick two people to be on
    a committee, or four people,
  • 25:54 - 25:55
    or eight people.
  • 25:55 - 25:57
    But what order you put
    them on the committee
  • 25:57 - 25:59
    is totally irrelevant,
    so we're going
  • 25:59 - 26:02
    to use combinations
    to count this.
  • 26:02 - 26:05
    But there's really
    two different stages.
  • 26:05 - 26:07
    One stage is to
    choose the women,
  • 26:07 - 26:09
    and the other stage
    is to choose the men.
  • 26:09 - 26:12
    So even though,
    for choosing women,
  • 26:12 - 26:15
    we know order doesn't matter,
    we'll use combinations.
  • 26:15 - 26:17
    And for choosing men,
    the order doesn't matter,
  • 26:17 - 26:19
    so we'll use combinations.
  • 26:19 - 26:22
    But since it's a
    two-stage experiment,
  • 26:22 - 26:24
    it will be embedded inside
    the counting principal.
  • 26:24 - 26:27
    In other words, the first
    stage of the process
  • 26:27 - 26:30
    is the number of ways
    to choose the two women.
  • 26:30 - 26:32
    The second stage of the
    process is the number
  • 26:32 - 26:34
    of ways to choose the men.
  • 26:34 - 26:35
    And we find those
    two quantities.
  • 26:35 - 26:38
    We multiply together by
    the counting principle.
  • 26:38 - 26:41
    And that gives us the
    total arrangements.
  • 26:41 - 26:46
    So because the women being
    chosen is a combination--
  • 26:46 - 26:49
    again, because order
    doesn't matter--
  • 26:49 - 26:51
    we use the combination formula.
  • 26:51 - 26:52
    There are eight women.
  • 26:52 - 26:53
    Who want to choose two.
  • 26:53 - 26:56
    So that's eight women,
    chosen two at a time.
  • 26:56 - 26:59
    And it's a combination,
    because order doesn't matter.
  • 26:59 - 27:02
    Then, if you go to the men,
    there are also eight men.
  • 27:02 - 27:04
    It doesn't have to be the same.
  • 27:04 - 27:06
    But in this case, there
    are also eight men.
  • 27:06 - 27:10
    And you're also
    choosing two men.
  • 27:10 - 27:12
    So that would be the combination
    of eight men taken two
  • 27:12 - 27:13
    at a time.
  • 27:13 - 27:15
    And the product of
    those two calculations
  • 27:15 - 27:17
    give you the total.
  • 27:17 - 27:20
    So now we've got to calculate
    the combination of eight
  • 27:20 - 27:21
    things taken two at a time.
  • 27:21 - 27:26
    Well, that is eight,
    Shift-2 for combination.
  • 27:26 - 27:28
    Press two, because that's the r.
  • 27:28 - 27:31
    And hit Equal To, and
    that gives you 28.
  • 27:31 - 27:34
    And just by happenstance, notice
    that the other combination
  • 27:34 - 27:38
    is also a combination of eight
    things taken two at a time.
  • 27:38 - 27:41
    So it turns out that
    that's also going to be 28.
  • 27:41 - 27:43
    It doesn't have to be the same.
  • 27:43 - 27:44
    But in this case, it is.
  • 27:44 - 27:47
    So there are a total
    of 28 times 28, which
  • 27:47 - 27:53
    is 784 different ways you can
    choose two women and two men
  • 27:53 - 27:56
    to be on the committee if there
    are eight women and eight men
  • 27:56 - 27:58
    to start with.
  • 27:58 - 28:01
    And notice that the
    combination calculation
  • 28:01 - 28:06
    was used for each stage in
    the counting principle, which
  • 28:06 - 28:07
    had two stages.
  • 28:07 - 28:09
    Choosing the women
    was the first stage.
  • 28:09 - 28:11
    Choosing the men was
    the second stage.
  • 28:11 - 28:14
  • 28:14 - 28:16
    That's an important
    point to remember.
  • 28:16 - 28:17
    This is a process.
  • 28:17 - 28:19
    This is an example
    where you actually
  • 28:19 - 28:23
    have two of your tools
    going on at the same time.
  • 28:23 - 28:25
    You're using the
    combination formula,
  • 28:25 - 28:27
    but you're also embedding
    that inside of the counting
  • 28:27 - 28:29
    principle.
  • 28:29 - 28:31
    If five cards are
    randomly chosen
  • 28:31 - 28:33
    from a standard deck of
    cards, how many hands
  • 28:33 - 28:35
    contain four queens?
  • 28:35 - 28:37
    Now, you've got five cards.
  • 28:37 - 28:41
    And they told you that you
    had to have four queens.
  • 28:41 - 28:43
    So even though they
    didn't come right out
  • 28:43 - 28:45
    and say it, by
    implication, there's
  • 28:45 - 28:48
    got to be another card
    that's not a queen that's
  • 28:48 - 28:50
    chosen as the fifth card.
  • 28:50 - 28:52
    You sort of have to read
    between the lines there.
  • 28:52 - 28:54
    You're choosing five cards.
  • 28:54 - 28:56
    They told you what four
    of them have to be.
  • 28:56 - 28:58
    So there's still a
    fifth card involved.
  • 28:58 - 29:02
    So you're still
    choosing five cards.
  • 29:02 - 29:05
    They just told you what they
    wanted four of them to be.
  • 29:05 - 29:08
    But the basic thing here
    is, order isn't important.
  • 29:08 - 29:10
    So we can use combinations
    to count this.
  • 29:10 - 29:12
    We don't care what order
    we draw these cards in.
  • 29:12 - 29:14
    We're just going to
    put them into our hand,
  • 29:14 - 29:15
    and they're going
    to be in our hand.
  • 29:15 - 29:17
    It doesn't matter what
    order we drew them.
  • 29:17 - 29:18
    So it's a combination.
  • 29:18 - 29:22
    But like the previous
    problem, it really
  • 29:22 - 29:25
    involves two subtasks.
  • 29:25 - 29:27
    There are two stages
    to this experiment.
  • 29:27 - 29:29
    One stage is choosing
    the four queens,
  • 29:29 - 29:32
    and the other stage is choosing
    the one that wasn't a queen--
  • 29:32 - 29:33
    the fifth card.
  • 29:33 - 29:35
  • 29:35 - 29:38
    So if you think about
    queens versus non-queens,
  • 29:38 - 29:41
    every standard deck
    has four queens.
  • 29:41 - 29:43
    That means-- 52 minus 4.
  • 29:43 - 29:45
    That means 48 cards
    are not queens.
  • 29:45 - 29:48
    So I'm thinking the deck is
    being partitioned into queens
  • 29:48 - 29:49
    and not queens.
  • 29:49 - 29:52
    There are four queens in the
    deck, which means the other 48
  • 29:52 - 29:55
    cards are non-queens.
  • 29:55 - 29:58
    So embedding this in
    the counting principle,
  • 29:58 - 30:00
    I want to choose
    my queens first.
  • 30:00 - 30:02
    So the first stage
    of the process
  • 30:02 - 30:05
    is the number of ways to
    choose the four queens.
  • 30:05 - 30:07
    Once I've chosen
    the four queens,
  • 30:07 - 30:10
    then I want to choose
    one of the other cards.
  • 30:10 - 30:11
    There are only four
    queens in the deck,
  • 30:11 - 30:16
    so the other card has to be
    something other than a queen.
  • 30:16 - 30:19
    So since it's a combination,
    if I'm choosing queens,
  • 30:19 - 30:20
    there are only four
    queens in the deck,
  • 30:20 - 30:22
    and I want to
    choose four queens.
  • 30:22 - 30:27
    So that's a combination of four
    queens taken four at a time.
  • 30:27 - 30:31
    For the non-queens, again,
    order doesn't matter.
  • 30:31 - 30:33
    But this time, there
    are 48 non-queens,
  • 30:33 - 30:35
    and I only want to
    choose one of them.
  • 30:35 - 30:39
    So that's a combination of 48
    things taken one at a time.
  • 30:39 - 30:41
    And if you do the
    calculation for a combination
  • 30:41 - 30:46
    of four things taken four at
    a time, that's four Shift-2.
  • 30:46 - 30:48
    And then r is also 4,
    and you hit Equal To,
  • 30:48 - 30:50
    and it comes out to be 1.
  • 30:50 - 30:52
  • 30:52 - 30:55
    And if you do combination
    of 48 things taken one
  • 30:55 - 30:59
    at a time, you type
    in 48, you Shift-2.
  • 30:59 - 31:01
    Then you press 1,
    which is the r.
  • 31:01 - 31:03
    And you press Equal To,
    and you end up with 48.
  • 31:03 - 31:07
    And 1 times 48 is 48--
  • 31:07 - 31:11
    again, another problem where
    you're using two of your tools.
  • 31:11 - 31:14
    You're using the
    combination tool inside
  • 31:14 - 31:17
    of the counting principle tool.
  • 31:17 - 31:19
    If five cards are
    randomly chosen
  • 31:19 - 31:21
    from a standard deck of
    cards, how many hands
  • 31:21 - 31:25
    contain exactly two
    twos and two eights?
  • 31:25 - 31:29
    It's very similar to
    the other problem.
  • 31:29 - 31:32
    And again, for the
    same reason as was
  • 31:32 - 31:36
    true for the other problem,
    order doesn't matter.
  • 31:36 - 31:38
    So these are going
    to be combinations.
  • 31:38 - 31:42
    And also like the
    last problem, it's
  • 31:42 - 31:47
    actually going to be a counting
    principle problem at the base.
  • 31:47 - 31:50
    But this time, there
    are three subtasks,
  • 31:50 - 31:52
    or there are three stages.
  • 31:52 - 31:54
    This is a three-stage
    experiment.
  • 31:54 - 31:58
    The first stage, you're
    going to choose your twos.
  • 31:58 - 32:00
    The second stage, you're
    going choose your eights.
  • 32:00 - 32:03
    And if you're going to choose
    two twos and two eights,
  • 32:03 - 32:04
    and there are five
    cards, that means
  • 32:04 - 32:07
    you also got to
    choose a fifth card.
  • 32:07 - 32:08
    So think about this.
  • 32:08 - 32:10
    You're going to take the number
    of ways to choose your twos--
  • 32:10 - 32:12
    your two twos.
  • 32:12 - 32:15
    You're going to find the number
    of ways to choose your eights.
  • 32:15 - 32:17
    And then you're going to
    find the number of ways
  • 32:17 - 32:19
    to choose your one more card.
  • 32:19 - 32:20
    That makes the fifth card.
  • 32:20 - 32:23
    That can't be a two or
    an eight, because we only
  • 32:23 - 32:27
    want exactly two twos
    and exactly two eights.
  • 32:27 - 32:30
    So if that third card were
    either a two or an eight,
  • 32:30 - 32:35
    we would have more than two
    twos or more than two eights.
  • 32:35 - 32:38
    So going back,
    choosing your twos
  • 32:38 - 32:41
    is a combination, because
    order doesn't matter.
  • 32:41 - 32:43
    There are four twos
    in the deck, and we
  • 32:43 - 32:44
    want to choose two of them.
  • 32:44 - 32:48
    So that's a combination of four
    things taken two at a time.
  • 32:48 - 32:49
    Then we want to move the eights.
  • 32:49 - 32:51
    Again, there four
    eights in the deck,
  • 32:51 - 32:52
    and we want to
    choose two of them.
  • 32:52 - 32:55
    So that's also a combination
    of four things taken two
  • 32:55 - 32:57
    at a time.
  • 32:57 - 33:00
    Now, the last one--
    think about it.
  • 33:00 - 33:02
    You want it to not be
    an eight, not be a two.
  • 33:02 - 33:05
    Well, there are four twos,
    and there are four eights.
  • 33:05 - 33:12
    So for that fifth card,
    order still doesn't matter.
  • 33:12 - 33:16
    But there are only 44 of them,
    because 52 minus 4 minus 4--
  • 33:16 - 33:18
    take away the four twos
    and the four eights--
  • 33:18 - 33:20
    leave only 44 cards.
  • 33:20 - 33:24
    So that last card has to
    come from the 44 cards that
  • 33:24 - 33:27
    aren't twos or eights.
  • 33:27 - 33:29
    And when you do the
    calculation, the combination
  • 33:29 - 33:30
    of four things
    taken two at a time
  • 33:30 - 33:33
    is four, Shift-2, two, Equals.
  • 33:33 - 33:35
    And that comes out to be six.
  • 33:35 - 33:38
    Well, that actually--
    for the eights,
  • 33:38 - 33:40
    it comes out to be exactly
    the same-- four, Shift-2,
  • 33:40 - 33:42
    two, Equals.
  • 33:42 - 33:46
    That's also six, because it is
    exactly the same combination.
  • 33:46 - 33:49
    And then, finally, combination
    of 44 things taken one
  • 33:49 - 33:53
    at a time-- that's 44,
    Shift-2, one, Equals.
  • 33:53 - 33:55
    And that comes out to be 44.
  • 33:55 - 33:57
    And then, by the
    counting principal,
  • 33:57 - 33:59
    you multiply those
    numbers together--
  • 33:59 - 34:01
    6 times 6 times 44--
  • 34:01 - 34:06
    and you end up with 1,584.
  • 34:06 - 34:09
    So if you choose five cards
    randomly from a standard deck
  • 34:09 - 34:13
    of cards, there are
    1,584 different hands
  • 34:13 - 34:16
    that contain exactly
    two twos and two eights.
  • 34:16 - 34:18
    Let's look at a couple
    of extra problems.
  • 34:18 - 34:21
    Suppose I ask you to
    evaluate this product.
  • 34:21 - 34:22
    It's the product of
    two combinations.
  • 34:22 - 34:26
    The first combination is eight
    things chosen five at a time.
  • 34:26 - 34:30
    The second combination is nine
    things taken four at a time.
  • 34:30 - 34:32
    So the easiest way is
    to use your calculator.
  • 34:32 - 34:38
    And remember that the Shift-2
    combination is the combination
  • 34:38 - 34:39
    key.
  • 34:39 - 34:43
    So you type in eight,
    Shift-2, five, hit Equal To--
  • 34:43 - 34:46
    that gives you the first
    combination value--
  • 34:46 - 34:48
    then times.
  • 34:48 - 34:49
    Now you start the
    second combination.
  • 34:49 - 34:52
    That will be nine,
    Shift-2, four.
  • 34:52 - 34:59
    When you hit Equal, you will
    get the final answer of 7,056.
  • 34:59 - 35:00
    How about this?
  • 35:00 - 35:02
    The planning committee
    for a class reunion
  • 35:02 - 35:05
    must elect a president,
    secretary, and treasurer.
  • 35:05 - 35:07
    In how many ways can
    this be accomplished
  • 35:07 - 35:09
    if there are 25 members?
  • 35:09 - 35:11
    I'm actually going to show you a
    couple of ways you can do this.
  • 35:11 - 35:14
    First of all, it
    is a permutation,
  • 35:14 - 35:16
    because order matters.
  • 35:16 - 35:18
    The president,
    secretary, and treasurer
  • 35:18 - 35:20
    is different than if
    you switch positions.
  • 35:20 - 35:22
    That's a different arrangement.
  • 35:22 - 35:23
    So order matters.
  • 35:23 - 35:24
    It's a permutation.
  • 35:24 - 35:26
    In fact, it's
    equivalent to a problem
  • 35:26 - 35:28
    we've done earlier where we
    were taking a group of people,
  • 35:28 - 35:30
    and pulling some out, and
    lining them up for photos.
  • 35:30 - 35:33
    And we wanted to know how
    many ways we could do that--
  • 35:33 - 35:35
    same thing here with the
    president, secretary,
  • 35:35 - 35:36
    and treasurer.
  • 35:36 - 35:41
    So this is a permutation of 25
    things taken three at a time.
  • 35:41 - 35:46
    With the calculator and
    the Shift-1 keystroke
  • 35:46 - 35:48
    that gives you the
    permutation, we
  • 35:48 - 35:53
    type in 25 Shift-1 for
    permutation, then enter tree.
  • 35:53 - 35:57
    And when you hit Equal
    To, you get 13,800.
  • 35:57 - 36:02
    So there are 13,800 ways
    you could take 25 members
  • 36:02 - 36:03
    and make them
    president, secretary,
  • 36:03 - 36:07
    and treasurer of the group.
  • 36:07 - 36:09
    But there is a second way
    you could look at this.
  • 36:09 - 36:11
    You could think of it as
    a straightforward counting
  • 36:11 - 36:12
    principle problem.
  • 36:12 - 36:14
    If you did it that way, you
    could think of the number
  • 36:14 - 36:18
    of ways to make these selections
    as being a three-stage
  • 36:18 - 36:19
    process--
  • 36:19 - 36:22
    the number of ways to choose
    the president, times the number
  • 36:22 - 36:26
    of ways to choose the secretary,
    times the number of ways
  • 36:26 - 36:27
    to choose a treasurer.
  • 36:27 - 36:29
    It's just a standard
    counting principal problem.
  • 36:29 - 36:31
    If you do it that
    way, obviously,
  • 36:31 - 36:33
    when you're choosing
    a president,
  • 36:33 - 36:36
    you can choose any
    of the 25 members.
  • 36:36 - 36:40
    But the president can't also
    be secretary or treasurer.
  • 36:40 - 36:42
    So when you go to
    the next position,
  • 36:42 - 36:44
    you have to eliminate the
    person you chose for president.
  • 36:44 - 36:48
    So you only have 24 members to
    choose from for the secretary.
  • 36:48 - 36:51
    And then, by the time you get
    to the treasurer position,
  • 36:51 - 36:52
    you've already
    chosen two people.
  • 36:52 - 36:55
    So those two people are out of
    the running to be treasurer.
  • 36:55 - 36:58
    That leaves only 23 people.
  • 36:58 - 37:01
    And if you multiply
    25 times 24 times
  • 37:01 - 37:04
    23, which is what the counting
    principle tells you to do,
  • 37:04 - 37:07
    you'll get the same 13,800 ways.
  • 37:07 - 37:09
    So either way is
    fine-- whichever
  • 37:09 - 37:10
    way makes most sense to you.
  • 37:10 - 37:13
  • 37:13 - 37:15
    Along the way, I've been
    building up our tool box.
  • 37:15 - 37:17
    I want to go through
    this one more time.
  • 37:17 - 37:20
    We started off with a list,
    and tables, and tree diagrams.
  • 37:20 - 37:23
    Then we moved to the
    counting principle.
  • 37:23 - 37:27
    Then we talked
    about n factorial,
  • 37:27 - 37:31
    which is a special permutation
    where you take everything
  • 37:31 - 37:35
    all at once, like n
    things n at a time.
  • 37:35 - 37:38
    Then you have the permutation,
    where you have n objects,
  • 37:38 - 37:41
    but you're only taking
    them r at a time.
  • 37:41 - 37:43
    Then you move to
    the combinations,
  • 37:43 - 37:46
    where you're taking n
    objects r at a time,
  • 37:46 - 37:48
    but order doesn't matter.
  • 37:48 - 37:51
    That's where we stand
    with our tool box
  • 37:51 - 37:54
    for doing these
    type of problems.
Title:
MATH 110 Sec 12.2 (S2020): Permutations and Combinations
Description:

Slightly modified version of the F2019 video

more » « less
Video Language:
English
Duration:
37:54

English subtitles

Revisions