yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Factorial and counting seat arrangements | Probability and Statistics | Khan Academy


4m read
·Nov 11, 2024

In this video, we are going to introduce ourselves to the idea of permutations, which is a fancy word for a pretty straightforward concept: what are the number of ways that we can arrange things? How many different possibilities are there?

To make that a little bit tangible, let's have an example with, say, a sofa. My sofa can seat exactly three people. I have seat number one on the left of the sofa, seat number two in the middle of the sofa, and seat number three on the right of the sofa. Let's say we're going to have three people who are going to sit in these three seats: person A, person B, and person C. How many different ways can these three people sit in these three seats? Pause this video and see if you can figure it out on your own.

Well, there are several ways to approach this. One way is to just try to think through all of the possibilities. You could do it systematically. You could say, “All right, if I have person A in seat number one, then I could have person B in seat number two and person C in seat number three.” Then I could think of another situation: if I have person A in seat number one, I could then swap B and C. So, I could look like that.

That's all of the situations, all of the permutations where I have A in seat number one. Now let's put someone else in seat number one. So, now let's put B in seat number one, and I could put A in the middle and C on the right. Or, I could put B in seat number one and then swap A and C, so C, then A. Then if I put C in seat number one, well, I could put A in the middle and B on the right. Or, with C in seat number one, I could put B in the middle and A on the right.

These are actually all of the permutations, and you can see that there are one, two, three, four, five, six. Now this wasn't too bad, and in general, if you're thinking about permutations of six things and/or three things in three spaces, you can do it by hand. But it could get very complicated if I said, “Hey, I have a hundred seats and I have 100 people that are going to sit in them.”

How do I figure it out mathematically? Well, the way that you would do it, and this is going to be a technique that you can use for really any number of people and any number of seats, is to really just build off of what we just did here. What we did here is we started with seat number one and we said, “All right, how many different possibilities are there? How many different people could sit in seat number one, assuming no one has sat down before?” Well, three different people could sit in seat number one.

You can see it right over here. This is where A is sitting in seat number one; this is where B is sitting in seat number one, and this is where C is sitting in seat number one. Now, for each of those three possibilities, how many people can sit in seat number two? Well, we saw when A sits in seat number one, there's two different possibilities for seat number two. When B sits in seat number one, there's two different possibilities for seat number two. When C sits in seat number one—this is a tongue twister—there's two different possibilities for seat number two.

So, you're going to have two different possibilities here. Another way to think about it is: one person has already sat down here; there are three different ways of getting that, and so there's two people left who could sit in the second seat. We saw that right over here, where we really wrote out the permutations.

So, how many different permutations are there for seat number one and seat number two? Well, you would multiply. For each of these three, you have two for each of these three. In seat number one, you have two in seat number two. And then what about seat number three? Well, if you know who's in seat number one and seat number two, there's only one person who can be in seat number three. Another way to think about it: if two people have already sat down, there's only one person who could be in seat number three.

So, mathematically, what we could do is just say three times two times one. You might recognize the mathematical operation factorial, which literally just means, “Hey, start with that number and then keep multiplying it by the numbers one less than that and then one less than that, all the way until you get to one.” This is three factorial, which is going to be equal to six, which is exactly what we got here.

To appreciate the power of this, let's extend our example. Let's say that we have five seats: one, two, three, four, five. And we have five people: person A, B, C, D, and E. How many different ways can these five people sit in these five seats? Pause this video and figure it out.

Well, you might immediately say, “Well, that's going to be 5 factorial,” which is going to be equal to 5 times 4 times 3 times 2 times 1. 5 times 4 is 20. 20 times 3 is 60, and then 60 times 2 is 120, and then 120 times 1 is equal to 120.

And once again, that makes a lot of sense. There were five different—if no one's sat down—there are five different possibilities for seat number one. And then for each of those possibilities, there's four people who could sit in seat number two. And then for each of those twenty possibilities in seat numbers one and two, well, there's going to be three people who could sit in seat number three. And for each of these sixty possibilities, there's two people who can sit in seat number four.

Then, once you know who's in the first four seats, you know who has to sit in that fifth seat, and that's where we got that 120 from.

More Articles

View All
Sports Betting Is Destroying Young Men
In May of 2023, Ivan Tony, an English soccer player who plays for Brentford Football Club in the English Premier League, was banned from soccer for eight months and fined $62,500 after being found guilty of 232 breaches of the Football Association spendin…
A Warning For The 2023 Stock Market
What’s up, Graham? It’s guys here! So, 2023 is already off to an interesting start because, in just the last week alone, we’ve seen a woman go viral for buying a 1998 Ford Escort for 289 dollars a month for the next 84 months. A teacher was charged for ru…
Why more military spending is a bad idea | Christopher Preble | Big Think
It’s true the U.S. military is a costly enterprise. It cost us more as a share of our total output during the Cold War, but in absolute dollar terms we’re spending about as much now as we spent during the Cold War, so the cost to maintain primacy has rema…
180° Kathmandu, City of Temples | National Geographic
Carved into the foothills of some of the world’s highest peaks, the Kathmandu Valley has been a unique witness to the development of Buddhism and Hinduism. The valley is dotted by more than a hundred sacred spots: temples, stupas, and monasteries, many sh…
45 minutes on a single paragraph of Nietzsche's Beyond Good & Evil
So I’m going to read something that Nietzsche wrote in the first part Beyond Good and Evil. Which is a section called Prejudices of Philosophers and it’s a really good example of the density of this book. One of the ways of conceptualizing Beyond Good and…
The Lost Colony of Roanoke - settlement and disappearance
So that takes us to our third and what will be final expedition to the new world. And this is where the spooky part comes in. This is where the spooky part comes in. Sir Walter Raleigh and John White realized that a whole group of soldiers was probably no…