I copied my answer from Quora which I wrote on the same day as I saw this.
Let’s take the numbers 1 2 3 4 5 6 7 8 9 10 11 and call it set A
Ask yourself: how many ways can I make triplets from A (e.g. 1 2 3 or 10 11 6), where triplets with exactly the same numbers count as one (e.g. 1 2 3 and 3 2 1)
Let’s start off by considering the number of different ways of ordering three numbers (permutations) from set A.
We start off with 11 options, followed by 10 left and then we are left with 9.
So 11 * 10 * 9 = 990
Let’s define a set B, which contains all of the different orderings of triplets from A.
Consider ANY element in set B. Let’s call the numbers x y z.
Because set B is a set of permutations, it’ll also contain values:
- x z y
- y x z
- y z x
- z x y
- z y x
So our goal, is to remove all extra five elements from set B for all triplets x y z. Well we can do this.
We know there are 990 permutations in total. For each permutation, there are five others which contain exactly the same numbers.
So let p be a single triplet. There will be 6p of these in B (ignoring their order).
We know 6p = 990. Hence p = 165. So there are 165 unique triplets in B, which answers our first question.
There is one issue I didn’t raise: how did I know how many different ways there were of ordering x y and z? Well the simple answer is that it was fairly trivial to think up the different orderings, since there were only three numbers per ordering.
If there were more numbers (let’s call this number r), then the best way to calculate the number of different orderings would be
$r(r-1)(r-2)…1$, which is r!. (Each time we have one less choice until there’s only 1 left)
So we can say: the number of different triplet combinations from the set A is
$\frac{11*10*9}{3!}$
OK, from this, we can think of a more general formula.
If there are n items in a set, the number of ways we can group r items is
$\frac{n(n-1)(n-2)...(n-r+1)}{r!}$
OK, we still haven’t derived the general combinations formula, but we’re getting closer.
There is one other concept we’ve yet to raise:
If I take r items from a group of n items, then there will be n-r unique group of items left over from the items I didn’t take.
For example, with set A, if I take a unique triplet (ignoring any permutations) 1 2 3, then I also have a unique set of 9 numbers 4 5 6 7 8 9 10 11.
Or if I took the numbers 4 8 11, I’d also end up with the numbers 1 2 3 5 6 7 9 10.
Therefore:
The number of ways of taking r items from a group of n items, is the same as the number of ways of taking n-r items from a group of n items.
So let’s go back to that general formula, and let’s call it x:
$\frac{n(n-1)(n-2)...(n-r+1)}{r!} = x$
By the above rule, this also means the number of ways of taking n-r items is also x. So
$\frac{n(n-1)(n-2)...(r+1)}{(n-r)!} = x$
If we add this together we get:
$2x = \frac{n(n-1)(n-2)...(r+1)}{(n-r)!} + \frac{n(n-1)(n-2)...(n-r+1)}{r!} $
[Note: original answer had an (n-1) denominator in first addend]
Now via simple adding of fractions we can do:
$2x = \frac{r![n(n-1)(n-2)...(r+1)]}{r!(n-r)!} + \frac{(n-r)![n(n-1)(n-2)...(n-r+1)]}{r!(n-r)!} $
But wait.
Let’s take a closer look at our numerators:
1. r![n(n-1)(n-2)...(r+1)]
- (n-r)![n(n-1)(n-2)...(n-r+1)]
Number 1 implies $1*2*3*4*…*r$ (i.e., $r!$), multiplied by $(r+1)(r+2)…(n-2)(n-1)n$. S0 isn’t this just another way of writing out n! ?
Number two implies $1*2*3*4*…*(n-r)$ (i.e., $(n-r)!$) multiplies by $(n-r+1)(n-r+2)…(n-2)(n-1)n$. Isn’t this also n! ?
Therefore, we can simplify this and say
$2x = \frac{n!}{(n-r)!r!} + \frac{n!}{r!(n-r)!} $
so $2x = \frac{2n!}{r!(n-r)!} $
Therefore $x = \frac{2n!}{2r!(n-r)!} = \frac{n!}{r!(n-r)!} $
That's one way of proving the formula.