The binomial formula is extremely useful for a variety of calculations. It follows a nice observation which follows closely from computing what results when we expend the expresssion (a+b)n for various values of n.
We have that:
(a+b)0(a+b)1(a+b)2(a+b)3=1=a+b=a2+2ab+b2=a3+3a2b+3ab2+b3 We can rewrite this in a way that might seem a bit odd but will serve us well:
(a+b)0(a+b)1(a+b)2(a+b)3=1⋅a0b0=1⋅a1b0+1⋅a0b1=1⋅a2+2⋅a1b1+1⋅b2=1⋅a3+3⋅a2b1+3⋅a1b2+1⋅b3 Is this starting to look familiar? What about if we remove all the annoying a's and b's and plus signs?
11 11 2 11 3 3 1 Of course! These are the first few lines of !
In other words, we can rewrite the last line of the expression above as:
(a+b)3=(03)⋅a3+(13)⋅a2b1+(23)⋅a1b2+(33)⋅b3 How does this happen? Well, remember that when we expend (a+b)3 we actually go over each "copy" of (a+b) and choose either a or b. "Choose", here's that word again. Say we chose b exactly two out of the three times, then we got the monomial a⋅b2. How many ways are there to choose b two out of the three times? Obviously (23).
Similarly, if we ask ourselves what is the coefficient of an−k⋅bk in (a+b)n. That is, how many different ways are there to choose b in exactly k of the n copies of (a+b)? We know very well that the answer is (kn).
Putting this all together, we get the remarkable formula known as Newton's binomial formula:
(a+b)n=(0n)an+(1n)an−1⋅b+…+(kn)an−kbk+…+(nn)bn=k=0∑n(kn)an−kbk We will revisit this formula when we discuss probabilities in the next part of the appendix, but lets see a nice example of how it can be used to prove fun stuff.
For example, what do you think should be the alternating sum of the binomial coefficients:
(0n)−(1n)+(2n)−(3n)+…+(−1)n(nn) Well, if n is odd we can use the fact that (kn)=(n−kn) and "pair them up" to get
(0n)−(1n)+(2n)−(3n)+…−(nn)=((0n)−(nn))+((1n)−(n−1n))+…+((⌊n/2⌋n)−(⌈n/2⌉n))=0 But that won't work when n is even. So what can we do? In fact, we can prove it for all cases (n even or odd) in one fell swoop without this ugly "pairing up". We just need to rewrite the sum a little differently:
(0n)−(1n)+(2n)−(3n)+…−(nn)=k=0∑n(−1)k(kn)=k=0∑n1n−k(−1)k(kn) which is exactly the binomial formula with a=1 and b=−1!
We thus get:
k=0∑n1n−k(−1)k(kn)=(1+(−1))n=0 Exercise: Prove that the sum of nth binomial coefficients (0n)+(1n)+…+(nn) is exactly 2n. Why is this answer expected?