[Math] How does Combination formula relates in getting the coefficients of a Binomial Expansion

binomial-coefficientscombinatorics

Sorry for the very basic question. I'm a programmer, not a mathematician. The title says it all but I'll just include a little background on why I asked the (stupid?) question.

I'd just finished solving Problem 15 from Project Euler. I used brute force (soooo slow) and I was curious if there's a faster way to do solve the problem. Most people from the Project Euler forum said that the problem could be solved using Combination or Pascal's Triangle. I googled those terms and found these interesting posts:

I understood the facinating relationship between Binomial Expansions and Pascal's Triangle, but I don't quite get the "Combination formula" as the shortcut/formula in getting the Binomial Coefficients.

Request:
Since I'm not a math gal, please refrain from posting very "deep"/complicated formulas. Just imagine you're trying to teach Binomial Expansions to a 9th grade student. 😉

If this is a duplicate post, I'm sorry, I don't know what math terms to search for. If I used the wrong terminologies, I'm sorry. Feel free to edit them.

Thanks in advance. 🙂

Related but hard to grok (for me) post: question about binomial expansion's coefficients

Best Answer

The symbol

$$n\choose k$$

is a shorthand for "The number of ways to choose $k$ objects from a collection of $n$ objects."

That is: you have $n$ objects in a line. You select $k$ of them, and paint them red, and you paint the other $n-k$ blue. How many ways are there to do that so that the final result looks different?

A moment of reflection will convince you that you could have chosen $n-k$ of the objects to paint blue first, and painted the rest of the objects red. The answer shouldn't depend on something arbitrary like whether you pick up the blue or the red paint first. If you can grok this fact, then you will have proved to yourself that

$${n\choose k} = {n\choose n-k}$$

How does this relate to binomial expansions? Well, say that we want to expand

$$(r + b)^n$$

Then we'll get a bunch of terms, each of which is a product of some $r$s with some $b$s. There are $n$ brackets, so there will be $n$ multipliers in each of the terms, and each of them will be either $r$ or $b$, so every term looks like

$$a_kr^kb^{n-k}$$

where $a_k$ is a coefficient, and $k=0, 1, 2, \dots n$.

What is $a_k$? Notice that in every bracket, we have to choose either an $r$ or a $b$. We can imagine going through the brackets one by one and making these choices, or you can imagine looking at all the brackets at once, and choosing which of them to pick $r$ form and which to pick $b$ from. The coefficient $a_k$ is the number of different ways of picking $k$ $r$s and $(n-k)$ $bs$ from the $n$ brackets. That is:

$$a_k = {n\choose k}$$

which, using the fact from earlier, we can instantly use to prove that the coefficients in a binomial expansion are symmetric:

$$a_k = {n\choose k} = {n\choose n-k} = a_{n-k}$$

Maybe you can see how binomial expansions relate to Pascal's triangle now?

Hint: It is linked to another cool and exciting relationship between the binomial coefficients!

Related Question