The relationship between the number of combinations and the binomial coefficients
Combination of by called sampling of elements taken on a set containing items. The same element cannot be selected several times; the order in which we are given a decision on the election of a particular element is not taken into account. The number of all possible combinations of by equally - coefficient in Newton's binomial. A fact known to every student: you can read about it in Wikipedia or in any textbook, where combinations and combinatorics are generally mentioned.
But why these two numbers are equal is not explained anywhere. Perhaps everyone considers this fact obvious and does not require any additional explanation.
In fact, the connection is really very simple, if you think about it. However, up to a certain point, the connection between the coefficients of a polynomial and combinatorics was something of magic to me. If this is the case for you now, welcome under the cut, I will explain the obvious. Let's start with a specific example. Take the amount and we will raise it to some degree, for example, to the fourth.
Let us open the brackets on the right, but we will not give such terms, use them to write degrees, and forget about commutative multiplication for a minute, i.e. We will not change the order of factors in terms:
Let's think of the terms in the final polynomial as character strings. We got 16 lines 4 characters long. Understand why 16 is easy. Every time we multiply the bracket containing 2 terms, we double the number of elements in the final result. In total, we multiplied 4 brackets with two terms, i.e. finally got . ')
We assume that if the element in the string is then it is not “chosen”, but if then "selected". In this case, the string corresponds to the case when none of the 4 elements was chosen, but the string - the case when all items are selected.
Suppose now that we want to answer the question "in how many ways you can choose two of the four elements." Given our agreement, all we have to do is count the number of lines in which exactly two letters : . There are exactly six of them.
Now recall the commutativity of multiplication and the notation "degree". All these lines can be written as and in the original amount we get:
The coefficient 6 is the answer to our question about the number of ways to select two elements. It is not surprising, because when we give such terms, we count the number of factors in which and come in equally. That is, we count the number of lines in which the same number of elements is “selected”.
Let us return to the initial sum and give all the terms. For clarity, I will explicitly record a factor of 1 and will use the fact that .
In such a record to find out the number of ways to choose items from just look at the coefficient before the term in which enters into -th degree
By the way, note that . This is another property of the binomial coefficients, which becomes obvious if we recall that we started with a polynomial in which terms.
For the general case
The notation is very simple: bottom worth - degree of brackets, top - the degree to which the term is .
Or, as we now know, this is the number of elements in the set from which we make a sample, - the number of items we choose.
I will add that usually the definition of the binomial coefficient is not given through the product and , and through the product and in the polynomial, which is obtained in the end, there is only (because when any degree is equal to one). The essence of this does not change, but to notice the combinatorial essence of the resulting formula becomes more difficult.