6

I have been looking at this problem for a long time. Can anyone prove the combination formula using factorials N choose K?

In case anyone does not know how to list all combinations in a set, you start with a permutation tree (for example)
1 2 3 4
234 134 124 123

You then delete all connected groups in the second row that are less than the previous row (or experience an inversion) which are in bold above.

W. G.
  • 1,766
  • You want to prove that the number of $k$-subsets of an $n$-set is $\binom nk=\frac{n!}{k!(n-k)!}$? – Pedro Dec 27 '15 at 18:54
  • yes, that would be very helpful – W. G. Dec 27 '15 at 19:03
  • 1
    if you don't like the argument in the answer(which is perfectly fine) then you can also prove this by induction in k – math635 Dec 27 '15 at 19:18
  • I guess I was wanting a more in depth proof. Possibly by using factorials, nodes, cycles, whatever it takes to arrive at the n choose k formula. – W. G. Dec 27 '15 at 19:53
  • Just a link iam posting so to visualise the n choose k https://www.mathsisfun.com/combinatorics/combinations-permutations.html – Thakur Karthik May 06 '20 at 15:26

7 Answers7

12

First choose $k$ elements among the $n$ elements in some order, which can be done in $n\cdot(n-1)\cdots (n-k+1)$ ways.

In this count, any group of $k$ elements have been counted $k!$ times, which you have to compensate for, giving

$$\frac{n\cdot(n-1)\cdots (n-k+1)}{k!} = \frac{n!}{k!(n-k)!}.$$

Mankind
  • 13,170
  • I know that. I just want to see how that formula can be proved. In a lot more detail. – W. G. Dec 27 '15 at 19:26
  • 3
    @W.G. If you tell us exactly what is wrong with this proof, we might be more able to help you. – Mankind Dec 27 '15 at 22:02
  • 2
    Why any group of k elements can be counted k! times? It seems like a broad statement to make with no reasoning behind it. You can prove it inductively like the site below, but there has got to be a better reason for it.{https://www.google.com/search?q=combination+permutation&espv=2&biw=1366&bih=667&site=webhp&source=lnms&tbm=isch&sa=X&sqi=2&ved=0ahUKEwjz5cDAn_3JAhXCcT4KHXyoDZYQ_AUICCgD#imgrc=Jj_B7G33uEUzYM%3A} – W. G. Dec 28 '15 at 00:03
  • 1
    @W.G. The factor of $k!$ represents the number of orders in which the $k$ objects can be selected. Since the order of selection is irrelevant, we must divide by the $k!$ orders in which the same elements can be selected. – N. F. Taussig Dec 28 '15 at 01:47
  • Yes, but I'm looking a little deeper. I'm looking for something a little more concrete. – W. G. Dec 28 '15 at 03:33
  • 1
    @W.G. Do you know of the symmetric group $S_k$ on $k$ letters? This group has $k!$ elements. – Mankind Dec 28 '15 at 16:36
  • What is a symmetric group referring to? – W. G. Dec 28 '15 at 17:05
  • @W.G. The symmetric group $S_k$ on $k$ symbols consists of all permutations of these $k$ symbols. For instance, $S_3$ consists of all permutations of $1,2,3$, which means that the elements of $S_3$ are the triples $(1,2,3),(1,3,2),(2,1,3),(2,3,1),(3,1,2),(3,2,1)$. https://en.m.wikipedia.org/wiki/Symmetric_group – Mankind Dec 28 '15 at 17:45
  • You are talking about the cayley graph right? Is there another site that explains how to make these graphs? I see the pattern on the outside ring of this graph. I appreciate your help. – W. G. Dec 28 '15 at 19:32
  • @W.G. I wasn't thinking of the Cayley graph as such, but of the symmetric group in itself. The Cayley graph is more of a tool for visualizing groups. The thing about the symmetric group is that it exactly represents all possible ways of arranging $k$ elements. So if you get to understand why the size of this group is $k!$, then you know why any $k$ elements were counted $k!$ times in my proof above. – Mankind Dec 28 '15 at 21:38
6

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:

  1. x z y
  2. y x z
  3. y z x
  4. z x y
  5. 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)]
  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.

Cynicrom
  • 316
83457
  • 304
5

This is how I see it.

Say I have 10 slots and 10 digits that I want to know how many permutations the digits that I can form, the slots look like _ _ _ _ _ _ _ _ _ _

on the first slot, i have 10 options to choose from, so [10] _ _ _ _ _ _ _ _ _

since the first slot is already occupied, i am left with having 9 options [10] [9] _ _ _ _ _ _ _ _

and the third slot will only have 8 left and so on, giving [10] [9] [8] [7] [6] [5] [4] [3] [2] [1]...So the number of 10-digit numbers I can make is 10x9x8x7x6x5x4x3x2x1, which is the definition of 10!

However if i have the same 10 digits but i only have 3 slots then [10] [9] [8] = 10x9x8, which is 10!/7! or 10!/(10-3)! which in general form would become the familiar nPr = n!/(n−r)!

now, among the permutations for [10] [9] [8], the 3 slots themselves can also be rearranged 3! times. to make it easier, let's name the 3 slots, A, B and C [10]-->slot A [9]--> slot B [8]--> slot C

ABC, ACB, BAC, BCA, CAB, CBA are all considered the same when what you want is a combination. so to remove the redundancy, we divide the number of permutations of the digits by the number of redundancies, that is to say, the number of permutations of the slots.

for which you get nCr = (permutation of digits)/(permutation of slots) note that permutation of slots is always rPr, which is r!

and thus you get nCr = nPr /r! = n!/[(n-r)!r!]

Dax
  • 51
0

According to Sheldon Ross' A First Course In Probability, $n(n − 1) · · · (n − k + 1)$ represents the number of ways in which $k$ items can be selected from $n$ items when we care about the order of selection. Notice then that each group of $k$ items is counted $k!$ times. Then the number of different groups of $k$ items that can be made from a set of $n$ items is: $$ \frac{n(n-1)(n-2)...(n-k+1)}{k!} $$

Now, note also that $n!$ can be expressed as $n(n-1)(n-2)...(n-k+1)\times(n-k)!$ Given this information, we can derive the combination formula by multiplying this equation by $1=\frac{(n-k)!}{(n-k)!}$, which gives: $$ \frac{n(n-1)(n-2)...(n-k+1)}{k!}\times\frac{(n-k)!}{(n-k)!} = \frac{n!}{k!(n-k)!} = {n \choose k} $$

Boris
  • 9
0

Let's take set of n elements. Let's express number of k element subsets A in terms of k-1 element subsets B. We know that removing 1 element from A set, we get one of B sets. On the other hand, adding element to B set gives us A set. The only problem is - each A set can be built from different B sets, and versa. But, still, we can build bijection, mapping each pair (A, a) to (B, a) = (A-a, a).

It's domain is k-element subsets, paired with their elements, and codomain - all k-1 element subsets paired with elements from their complement. Easy to check, that such function is bijection with domain of cardinality k*C(n, k) and codomain of cardinality (n-k+1)C(n, k-1), so C(n, k) = C(n, k-1)(n-k+1)/k. You can use it as induction step, or just expand all C(n, k-i) terms to receive the resulting formula.

0

Below is a more complete and rigorous proof than the other existing answers.

Abstract

We will prove the formula for the number of $k$-combinations $_nC_k$ by showing that $_nP_k = k! \cdot {_nC_k}$. We show the latter by first proving $_nP_k \ge k! \cdot {_nC_k}$, and then showing that $_nP_k \not> k! \cdot {_nC_k}$.

Assumptions of the Reader

This proof assumes the reader understands the formula for ${_nP_k}$.

Assumptions in Proof

  1. $n,k \in \mathbb{Z}^{nonneg}$ with $n \ge k$.

  2. $S$ is a set of $n$ arbitrary and distinguishable objects.

  3. ${_nP_k}$ is the total number of $k$-permutations from the $n$ objects in $S$.

  4. ${_nC_k}$ is the total number of $k$-combinations from the $n$ objects in $S$.

  5. Let $P$ and $C$ be the set of all $k$-permutations and $k$-combinations respectively. Note that $|P|={_nP_k}$ and $|C|={_nC_k}$.

Proof

Lemma 1: $_nP_k \ge k! \cdot {_nC_k}$.

Proof of Lemma 1: Our goal is to show that exactly $k! \cdot {_nC_k}$ unique $k$-permutations can be created from the ${_nC_k}$ $k$-combinations.

Take any combination $c$ from $C$. Using the $k$ objects in $c$, we can create a total of ${_kP_k} = k!$ unique $k$-permutations that each contains exactly the $k$ objects. Notice that all of these $k!$ permutations are also $k$-permutations containing only objects from $S$; thus, all of these permutations are in $P$. Furthermore, since this applies to any combination $c$ in $C$, it follows that every combination in $C$ corresponds to a set of $k!$ unique permutations. Because there are ${_nC_k}$ combinations, there are ${_nC_k}$ sets of $k!$ unique permutations and thus a total of $k! \cdot {_nC_k}$ permutations found using this method.

But how do we know all of these $k! \cdot {_nC_k}$ permutations are unique (i.e., we have not double counted)? Since we know all $k!$ permutations in any of the ${_nC_k}$ sets of $k!$ permutations are unique, all we have to do is show that each unique permutation can only be in one of these sets. This can be shown by observing that any two permutations from two different such sets are produced from different combinations and thus must contain different objects.

Therefore, there are at least $k! \cdot {_nC_k}$ permutations, i.e., $_nP_k \ge k! \cdot {_nC_k}$. $\square$

Lemma 2: $_nP_k \not > k! \cdot {_nC_k}$.

Proof of Lemma 2: The lemma means that no valid $k$-permutation is not already counted in the $k! \cdot {_nC_k}$ permutations found in Lemma 1, that is, we have counted all permutations.

The proof is by contradiction. Suppose we have an $k$-permutation $p$, created from $S$, that has not been counted. Use the $k$ objects from $p$ to create a $k$-combination $c$ containing exactly these objects. Now, $c$ is a valid $k$-combination from $S$, so it must be in $C$. Then the $k! \cdot {_nC_k}$ permutations found in Lemma 1 contain all $k!$ possible permutations that can be created from $c$. But notice we can do the reverse of what we did three sentences ago: create $p$ from $c$. So $p$ must have been counted in the $k! \cdot {_nC_k}$ permutations; this contradicts our original assumption. $\square$

Theorem: $_nP_k = k! \cdot {_nC_k}$.

Proof of Theorem: This follows immediately from Lemmas 1 and 2. $\square$

Corollary: ${_nC_k} = \frac{n!}{(n-k)!k!}$.

Proof of Corollary: Since $_nP_k = k! \cdot {_nC_k}$ by the Theorem and the fact that $_nP_k = \frac{n!}{(n-k)!}$, we have

$${_nC_k} = \frac{_nP_k}{k!} = \frac{n!}{(n-k)!k!}$$

as desired. $\square$

Cynicrom
  • 316
-1

To generate a set of all possible 3-digit numbers where each digit is different, we can use two approaches.

Approach A: Choose the digits one by one, starting with 10 options for the first digit, 9 options for the second digit, and 8 options for the third digit.

Approach B: Generate all possible unique unordered triplets of numbers ($combinations$), permute each triplet, and insert them into the resulting set B.

These two approaches generate the same set, since every element in A has a corresponding unique triplet in B that is permuted in all possible ways, and every element in B can be generated by the way that set A was initially generated.

$|A|=10\times9\times8$ and $|B|=combinations \times 3!$

Since $|A| = |B|$

$combinations = \frac{10\times9\times8} {3!}$, or in general $combinations =\frac{n!}{(n - k)! \times k!}$

ledu
  • 81