# How/Why do nPr and nCr work?

##
I know the formulas and how/when to use them, but why are they the way they are? Why do they work?

I know the formulas and how/when to use them, but why are they the way they are? Why do they work?

##### 1 Answer

#### Answer:

See below for excerpts from https://socratic.org/questions/how-do-you-answer-something-like-7c3-for-a-combination-and-8p3-for-a-permutation#405503 that answer your question:

#### Explanation:

I answered a question similar to this a little while ago. Here's the link: https://socratic.org/questions/how-do-you-answer-something-like-7c3-for-a-combination-and-8p3-for-a-permutation#405503

Here are the relevant bits from that answer:

Combinations, Permutations, and Factorials are used to help calculate the numbers of ways something can be done or ordered.

For instance, let's say we have 5 distinguishable books and want to arrange them on a shelf. How can we do this?

There are 5 books we can place in the first position, 4 in the second, 3 in the third, etc... and so we can express the number of ways we can order the books on the shelf by saying:

Because we do this so often in Permutation and Combination problems, it'd be convenient to have some sort of symbol to let us know that we want to multiply all the natural numbers up to a given value - and this is done via the **Factorial** :

Now let's say we have 7 books and want to arrange 5 on the shelf. We could use the same sort of logic as before, see that there are 7 books we can put in the first position, 6 in the second, 5 in the third, etc, all the way to 3 at the fifth and final book. I can write that as:

and I can sit down and multiply this out each time depending on the number of books available and the ones I intend to arrange. Or I can see that if I simply do this:

I can now express this in terms of two factorials:

and I can even go one more step and see that I can express the denominator in terms of the number of books I have and the number of books on the shelf:

And with this we have the general formula for a **Permutation** :

That equation works well if we care which book is in which position on the shelf. But what if we don't care? If we simply say that simply having the History book, the English book, and the Math book on the shelf together in any order counts as 1 way or ordering (this is much like a poker hand - we don't care in what order we draw the cards, we simply want the best hand possible)? To do this, we divide the Permutation by the number of items picked - we are essentially taking out the "repeats". Sticking with the 7 books available and 5 books to be placed on a shelf:

And with this we have the general formula for a **Combination**: