Factorial¶
The factorial, , can be understood as “you have objects to arrange — how many ways to do it?”
A concrete example here:
We have A, B, C three objects arranged in order has 6 possible orderings,
ABC
ACB
BAC
BCA
CAB
CBA
Another equivalent way to see it is: “place three objects into three slots”:
The first slot can take any of the three objects;
Once one object is placed, only two remain for the second slot;
Once the second slot is filled, only one object remains for the last slot
That is , which is exactly what means.
Thus, for any positive integer , we have
Three notes need your attention.
First, the factorial is often written in recursive form
Second, in the definition.
It’s quite intuitive: if counts how many ways to arrange objects, then asks how many ways to arrange 0 objects. The answer is exactly 1 — [the empty arrangement], right?
Third, the factorial is generally defined for non-negative integers. However, if you want to extend and talk about arbitrary real numbers, you have to extend the definition via analytic continuation to get the Gamma function (which it’s out of the scope of this article here).
Permutation¶
A permutation, , answers: “pick objects from and arrange them in order — how many arrangements?”
Continuing with our concrete example: picking 1 from {A, B, C} to arrange gives 3 arrangements,
A
B
C
And picking 2 to arrange gives 6 arrangements,
AB
AC
BA
BC
CA
CB
If you’ve internalized the slot perspective, this is easy to explain — think of it as “placing three objects into one/two slots”:
For one slot: the first slot can take any of the three objects, which is naturally 3, i.e. .
For two slots: the first slot takes any of three; the second slot has only two left, giving , i.e. .
The permutation formula is
But what does this actually mean?
Translated into plain language, this formula says: “Arrange all objects, but we don’t care about the ordering of the objects we didn’t pick” — we don’t care, so we divide them out.
That’s a rather satisfying way to think about it.
Returning to the slot view:
When we place three objects but only fill one slot, we start by caring about how all three are ordered. But once the first slot is decided, we no longer care how the remaining two are ordered, hence
Similarly, when we place three objects into two slots, we start by caring about the ordering of all three. Once the first two are decided, we don’t care how the last one is ordered, hence
Combination¶
Finally, let’s look at the combination, .
If you’ve understood the two sections above, we can jump straight into what the combination formula is saying:
So the combination says:
“Arrange all objects, but we don’t care about the ordering of the objects we left out, and we also don’t care about the ordering of the objects we picked.”
In other words, once the objects are in the slots, we don’t even care how they’re arranged within the slots. That is so-called a combination!
Hence, the more common way to introduce it is: a combination means “choosing”. (However, directly defining combination in this way may lose the connection with the expression of the formula)
So from {A, B, C}, choosing 2 gives 3 possible selections:
AB
AC
BC
Finally, the combination formula is often written as