The Wonderful World of Binomial Coefficients and Probability

110
The Wonderful World of Binomial Coefficients and Probability Alan Stein University of Connecticut Waterbury Campus February 1, 2006 Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Transcript of The Wonderful World of Binomial Coefficients and Probability

Page 1: The Wonderful World of Binomial Coefficients and Probability

The Wonderful World of Binomial Coefficientsand Probability

Alan SteinUniversity of Connecticut

Waterbury Campus

February 1, 2006

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 2: The Wonderful World of Binomial Coefficients and Probability

Binomials and Pascal’s Triangle

Consider different powers of binomials:

(x + y)0 = 1(x + y)1 = 1 · x + 1 · y(x + y)2 = 1 · x2 + 2xy + 1 · y2

(x + y)3 = 1 · x3 + 3x2y + 3xy2 + 1 · y3

(x + y)4 = 1 · x4 + 4x3y + 6x2y2 + 4xy3 + 1 · y4

(x + y)5 = 1 · x5 + 5x4y + 10x3y2 + 10x2y3 + 5xy4 + 1 · y5

If we write down the coefficients in an organized way, we getwhat’s known as Pascal’s Triangle:

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 3: The Wonderful World of Binomial Coefficients and Probability

Binomials and Pascal’s Triangle

Consider different powers of binomials:(x + y)0 = 1

(x + y)1 = 1 · x + 1 · y(x + y)2 = 1 · x2 + 2xy + 1 · y2

(x + y)3 = 1 · x3 + 3x2y + 3xy2 + 1 · y3

(x + y)4 = 1 · x4 + 4x3y + 6x2y2 + 4xy3 + 1 · y4

(x + y)5 = 1 · x5 + 5x4y + 10x3y2 + 10x2y3 + 5xy4 + 1 · y5

If we write down the coefficients in an organized way, we getwhat’s known as Pascal’s Triangle:

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 4: The Wonderful World of Binomial Coefficients and Probability
Page 5: The Wonderful World of Binomial Coefficients and Probability

Binomials and Pascal’s Triangle

Consider different powers of binomials:(x + y)0 = 1(x + y)1 = 1 · x + 1 · y(x + y)2 = 1 · x2 + 2xy + 1 · y2

(x + y)3 = 1 · x3 + 3x2y + 3xy2 + 1 · y3

(x + y)4 = 1 · x4 + 4x3y + 6x2y2 + 4xy3 + 1 · y4

(x + y)5 = 1 · x5 + 5x4y + 10x3y2 + 10x2y3 + 5xy4 + 1 · y5

If we write down the coefficients in an organized way, we getwhat’s known as Pascal’s Triangle:

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 6: The Wonderful World of Binomial Coefficients and Probability

Binomials and Pascal’s Triangle

Consider different powers of binomials:(x + y)0 = 1(x + y)1 = 1 · x + 1 · y(x + y)2 = 1 · x2 + 2xy + 1 · y2

(x + y)3 = 1 · x3 + 3x2y + 3xy2 + 1 · y3

(x + y)4 = 1 · x4 + 4x3y + 6x2y2 + 4xy3 + 1 · y4

(x + y)5 = 1 · x5 + 5x4y + 10x3y2 + 10x2y3 + 5xy4 + 1 · y5

If we write down the coefficients in an organized way, we getwhat’s known as Pascal’s Triangle:

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 7: The Wonderful World of Binomial Coefficients and Probability

Binomials and Pascal’s Triangle

Consider different powers of binomials:(x + y)0 = 1(x + y)1 = 1 · x + 1 · y(x + y)2 = 1 · x2 + 2xy + 1 · y2

(x + y)3 = 1 · x3 + 3x2y + 3xy2 + 1 · y3

(x + y)4 = 1 · x4 + 4x3y + 6x2y2 + 4xy3 + 1 · y4

(x + y)5 = 1 · x5 + 5x4y + 10x3y2 + 10x2y3 + 5xy4 + 1 · y5

If we write down the coefficients in an organized way, we getwhat’s known as Pascal’s Triangle:

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 8: The Wonderful World of Binomial Coefficients and Probability

Binomials and Pascal’s Triangle

Consider different powers of binomials:(x + y)0 = 1(x + y)1 = 1 · x + 1 · y(x + y)2 = 1 · x2 + 2xy + 1 · y2

(x + y)3 = 1 · x3 + 3x2y + 3xy2 + 1 · y3

(x + y)4 = 1 · x4 + 4x3y + 6x2y2 + 4xy3 + 1 · y4

(x + y)5 = 1 · x5 + 5x4y + 10x3y2 + 10x2y3 + 5xy4 + 1 · y5

If we write down the coefficients in an organized way, we getwhat’s known as Pascal’s Triangle:

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 9: The Wonderful World of Binomial Coefficients and Probability

Binomials and Pascal’s Triangle

Consider different powers of binomials:(x + y)0 = 1(x + y)1 = 1 · x + 1 · y(x + y)2 = 1 · x2 + 2xy + 1 · y2

(x + y)3 = 1 · x3 + 3x2y + 3xy2 + 1 · y3

(x + y)4 = 1 · x4 + 4x3y + 6x2y2 + 4xy3 + 1 · y4

(x + y)5 = 1 · x5 + 5x4y + 10x3y2 + 10x2y3 + 5xy4 + 1 · y5

If we write down the coefficients in an organized way, we getwhat’s known as Pascal’s Triangle:

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 10: The Wonderful World of Binomial Coefficients and Probability

Binomials and Pascal’s Triangle

Consider different powers of binomials:(x + y)0 = 1(x + y)1 = 1 · x + 1 · y(x + y)2 = 1 · x2 + 2xy + 1 · y2

(x + y)3 = 1 · x3 + 3x2y + 3xy2 + 1 · y3

(x + y)4 = 1 · x4 + 4x3y + 6x2y2 + 4xy3 + 1 · y4

(x + y)5 = 1 · x5 + 5x4y + 10x3y2 + 10x2y3 + 5xy4 + 1 · y5

If we write down the coefficients in an organized way, we getwhat’s known as Pascal’s Triangle:

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 11: The Wonderful World of Binomial Coefficients and Probability

Pascal’s Triangle

11 1

1 2 11 3 3 1

1 4 6 4 1

The entries in Pascal’s Triangle are called binomial coefficients andhave tons of interesting properties and also have significantconnections to combinatorics (the science of counting) and toprobability.Notation:

(nk

)is the coefficient of xn−kyk in the expansion of

(x + y)n.(nk

)is also the kth entry in the nth row of Pascal’s Triangle, where

we count both rows and columns starting with 0.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 12: The Wonderful World of Binomial Coefficients and Probability

Pascal’s Triangle

11 1

1 2 11 3 3 1

1 4 6 4 1

The entries in Pascal’s Triangle are called binomial coefficients andhave tons of interesting properties and also have significantconnections to combinatorics (the science of counting) and toprobability.

Notation:(nk

)is the coefficient of xn−kyk in the expansion of

(x + y)n.(nk

)is also the kth entry in the nth row of Pascal’s Triangle, where

we count both rows and columns starting with 0.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 13: The Wonderful World of Binomial Coefficients and Probability

Pascal’s Triangle

11 1

1 2 11 3 3 1

1 4 6 4 1

The entries in Pascal’s Triangle are called binomial coefficients andhave tons of interesting properties and also have significantconnections to combinatorics (the science of counting) and toprobability.Notation:

(nk

)is the coefficient of xn−kyk in the expansion of

(x + y)n.

(nk

)is also the kth entry in the nth row of Pascal’s Triangle, where

we count both rows and columns starting with 0.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 14: The Wonderful World of Binomial Coefficients and Probability

Pascal’s Triangle

11 1

1 2 11 3 3 1

1 4 6 4 1

The entries in Pascal’s Triangle are called binomial coefficients andhave tons of interesting properties and also have significantconnections to combinatorics (the science of counting) and toprobability.Notation:

(nk

)is the coefficient of xn−kyk in the expansion of

(x + y)n.(nk

)is also the kth entry in the nth row of Pascal’s Triangle, where

we count both rows and columns starting with 0.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 15: The Wonderful World of Binomial Coefficients and Probability

Combinations

Definition (Combination)

A combination is a collection of objects chosen from a set.

Essentially, this means that a combination is a subset.

For example, {b, c} is a combination of two elements chosen fromthe set consisting of the letters of the alphabet.

With sets, the order in which we list the elements does not matter,so the same combination may be written {c , b}.

For convenience, we often omit the braces and sometimes refer tothe combination b, c or even just bc .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 16: The Wonderful World of Binomial Coefficients and Probability

Combinations

Definition (Combination)

A combination is a collection of objects chosen from a set.

Essentially, this means that a combination is a subset.

For example, {b, c} is a combination of two elements chosen fromthe set consisting of the letters of the alphabet.

With sets, the order in which we list the elements does not matter,so the same combination may be written {c , b}.

For convenience, we often omit the braces and sometimes refer tothe combination b, c or even just bc .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 17: The Wonderful World of Binomial Coefficients and Probability

Combinations

Definition (Combination)

A combination is a collection of objects chosen from a set.

Essentially, this means that a combination is a subset.

For example, {b, c} is a combination of two elements chosen fromthe set consisting of the letters of the alphabet.

With sets, the order in which we list the elements does not matter,so the same combination may be written {c , b}.

For convenience, we often omit the braces and sometimes refer tothe combination b, c or even just bc .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 18: The Wonderful World of Binomial Coefficients and Probability

Combinations

Definition (Combination)

A combination is a collection of objects chosen from a set.

Essentially, this means that a combination is a subset.

For example, {b, c} is a combination of two elements chosen fromthe set consisting of the letters of the alphabet.

With sets, the order in which we list the elements does not matter,so the same combination may be written {c , b}.

For convenience, we often omit the braces and sometimes refer tothe combination b, c or even just bc .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 19: The Wonderful World of Binomial Coefficients and Probability

Combinations

Definition (Combination)

A combination is a collection of objects chosen from a set.

Essentially, this means that a combination is a subset.

For example, {b, c} is a combination of two elements chosen fromthe set consisting of the letters of the alphabet.

With sets, the order in which we list the elements does not matter,so the same combination may be written {c , b}.

For convenience, we often omit the braces and sometimes refer tothe combination b, c or even just bc .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 20: The Wonderful World of Binomial Coefficients and Probability

Permutations

Combinations are sometimes confused with permutations.

Definition (Permutation)

A permutation is an arrangement of objects chosen from a set.

With permutations, the order in which elements are listed matters;with combinations, the order doesn’t matter.

bc and cb are different permutations, but they come from thesame combination.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 21: The Wonderful World of Binomial Coefficients and Probability

Permutations

Combinations are sometimes confused with permutations.

Definition (Permutation)

A permutation is an arrangement of objects chosen from a set.

With permutations, the order in which elements are listed matters;with combinations, the order doesn’t matter.

bc and cb are different permutations, but they come from thesame combination.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 22: The Wonderful World of Binomial Coefficients and Probability

Permutations

Combinations are sometimes confused with permutations.

Definition (Permutation)

A permutation is an arrangement of objects chosen from a set.

With permutations, the order in which elements are listed matters;with combinations, the order doesn’t matter.

bc and cb are different permutations, but they come from thesame combination.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 23: The Wonderful World of Binomial Coefficients and Probability

Permutations

Combinations are sometimes confused with permutations.

Definition (Permutation)

A permutation is an arrangement of objects chosen from a set.

With permutations, the order in which elements are listed matters;with combinations, the order doesn’t matter.

bc and cb are different permutations, but they come from thesame combination.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 24: The Wonderful World of Binomial Coefficients and Probability

Counting Combinations

We often need to count the number of combinations of a certainsize chosen from a set of a certain size.Notation: Cn,k is the number of combinations of k elementschosen from a set of size n.There is a formula for Cn,k , which depends on countingpermutations and on . . .

Alan SteinUniversity of ConnecticutWaterbury Campus

Page 25: The Wonderful World of Binomial Coefficients and Probability

The Fundamental Principle of Counting

If a sequences of choices need to be made for which there are:n1 ways of making the first choice,n2 ways of making the second choice,n3 ways of making the third choice, and so on, then

there are n1 · n2 · n3 · . . . ways of making the sequence of choices.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 26: The Wonderful World of Binomial Coefficients and Probability

The Fundamental Principle of Counting

If a sequences of choices need to be made for which there are:n1 ways of making the first choice,n2 ways of making the second choice,n3 ways of making the third choice, and so on, thenthere are n1 · n2 · n3 · . . . ways of making the sequence of choices.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 27: The Wonderful World of Binomial Coefficients and Probability

A Deck of Cards

As one example of the Fundamental Principle of Counting, we candetermine the number of cards in a standard deck. We can observethe number of cards must equal the number of ways we can choosea card. Since we can choose a card by first choosing its face value,which can be done in 13 ways, and then choosing its suit, whichcan be done in 4 ways, it follows that we can choose a card in13 · 4 = 52 different ways. Thus, a deck of cards must contain 52cards.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 28: The Wonderful World of Binomial Coefficients and Probability

Counting Permutations

Let us denote the number of permutations containing k distinctelements chosen from a set of size n by Pn,k . We can find Pn,k

using the Fundamental Principle of Counting by observing:

There are n different ways of choosing the first element.There are (n − 1) different ways of choosing the second element. . . since when we choose the second element we have alreadyeliminated one of the n elements from consideration.There are (n − 2) different ways of choosing the third element.We can continue like this. When we get to the last, or kth

element, we have already chosen k − 1 elements, so we haven − (k − 1) = n − k + 1 ways of choosing the last element.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 29: The Wonderful World of Binomial Coefficients and Probability

Counting Permutations

Let us denote the number of permutations containing k distinctelements chosen from a set of size n by Pn,k . We can find Pn,k

using the Fundamental Principle of Counting by observing:

There are n different ways of choosing the first element.

There are (n − 1) different ways of choosing the second element. . . since when we choose the second element we have alreadyeliminated one of the n elements from consideration.There are (n − 2) different ways of choosing the third element.We can continue like this. When we get to the last, or kth

element, we have already chosen k − 1 elements, so we haven − (k − 1) = n − k + 1 ways of choosing the last element.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 30: The Wonderful World of Binomial Coefficients and Probability

Counting Permutations

Let us denote the number of permutations containing k distinctelements chosen from a set of size n by Pn,k . We can find Pn,k

using the Fundamental Principle of Counting by observing:

There are n different ways of choosing the first element.There are (n − 1) different ways of choosing the second element. . .

since when we choose the second element we have alreadyeliminated one of the n elements from consideration.There are (n − 2) different ways of choosing the third element.We can continue like this. When we get to the last, or kth

element, we have already chosen k − 1 elements, so we haven − (k − 1) = n − k + 1 ways of choosing the last element.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 31: The Wonderful World of Binomial Coefficients and Probability

Counting Permutations

Let us denote the number of permutations containing k distinctelements chosen from a set of size n by Pn,k . We can find Pn,k

using the Fundamental Principle of Counting by observing:

There are n different ways of choosing the first element.There are (n − 1) different ways of choosing the second element. . . since when we choose the second element we have alreadyeliminated one of the n elements from consideration.

There are (n − 2) different ways of choosing the third element.We can continue like this. When we get to the last, or kth

element, we have already chosen k − 1 elements, so we haven − (k − 1) = n − k + 1 ways of choosing the last element.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 32: The Wonderful World of Binomial Coefficients and Probability

Counting Permutations

Let us denote the number of permutations containing k distinctelements chosen from a set of size n by Pn,k . We can find Pn,k

using the Fundamental Principle of Counting by observing:

There are n different ways of choosing the first element.There are (n − 1) different ways of choosing the second element. . . since when we choose the second element we have alreadyeliminated one of the n elements from consideration.There are (n − 2) different ways of choosing the third element.

We can continue like this. When we get to the last, or kth

element, we have already chosen k − 1 elements, so we haven − (k − 1) = n − k + 1 ways of choosing the last element.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 33: The Wonderful World of Binomial Coefficients and Probability

Counting Permutations

Let us denote the number of permutations containing k distinctelements chosen from a set of size n by Pn,k . We can find Pn,k

using the Fundamental Principle of Counting by observing:

There are n different ways of choosing the first element.There are (n − 1) different ways of choosing the second element. . . since when we choose the second element we have alreadyeliminated one of the n elements from consideration.There are (n − 2) different ways of choosing the third element.We can continue like this. When we get to the last, or kth

element, we have already chosen k − 1 elements, so we haven − (k − 1) = n − k + 1 ways of choosing the last element.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 34: The Wonderful World of Binomial Coefficients and Probability

Applying the Fundamental Principle of Counting, we haven(n − 1)(n − 2) . . . (n − k + 2)(n − k + 1) ways of choosing the k

elements. Using factorial notation, we may write this asn!

(n − k)!.

We just have the formula Pn,k =n!

(n − k)!. From this, we can

fairly easily find Cn,k .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 35: The Wonderful World of Binomial Coefficients and Probability

Applying the Fundamental Principle of Counting, we haven(n − 1)(n − 2) . . . (n − k + 2)(n − k + 1) ways of choosing the k

elements. Using factorial notation, we may write this asn!

(n − k)!.

We just have the formula Pn,k =n!

(n − k)!. From this, we can

fairly easily find Cn,k .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 36: The Wonderful World of Binomial Coefficients and Probability

Counting Combinations

Using either the formula for counting permutations or simply usingthe Fundamental Principle of Counting, every combination of kelements can be arranged in Pk,k = k! different ways. Thus, theremust be k! times as many permutations of a given size ascombinations. In other words, Pn,k = k!Cn,k .

Thus, Cn,k =Pn,k

k!=

n!/(n − k)!

k!. In other words,

Cn,k =n!

k!(n − k)!.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 37: The Wonderful World of Binomial Coefficients and Probability

Counting Combinations

Using either the formula for counting permutations or simply usingthe Fundamental Principle of Counting, every combination of kelements can be arranged in Pk,k = k! different ways. Thus, theremust be k! times as many permutations of a given size ascombinations. In other words, Pn,k = k!Cn,k .

Thus, Cn,k =Pn,k

k!=

n!/(n − k)!

k!. In other words,

Cn,k =n!

k!(n − k)!.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 38: The Wonderful World of Binomial Coefficients and Probability

Counting Combinations

Using either the formula for counting permutations or simply usingthe Fundamental Principle of Counting, every combination of kelements can be arranged in Pk,k = k! different ways. Thus, theremust be k! times as many permutations of a given size ascombinations. In other words, Pn,k = k!Cn,k .

Thus, Cn,k =Pn,k

k!=

n!/(n − k)!

k!. In other words,

Cn,k =n!

k!(n − k)!.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 39: The Wonderful World of Binomial Coefficients and Probability

Combinations and Binomial Coefficients

It turns out there’s a close relationship between combinations andbinomial coefficients.

Theorem(nk

)= Cn,k

Why?

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 40: The Wonderful World of Binomial Coefficients and Probability

Combinations and Binomial Coefficients

It turns out there’s a close relationship between combinations andbinomial coefficients.

Theorem(nk

)= Cn,k

Why?

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 41: The Wonderful World of Binomial Coefficients and Probability

Combinations and Binomial Coefficients

It turns out there’s a close relationship between combinations andbinomial coefficients.

Theorem(nk

)= Cn,k

Why?

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 42: The Wonderful World of Binomial Coefficients and Probability

Why(

nk

)= Cn,k

Page 43: The Wonderful World of Binomial Coefficients and Probability

Why(

nk

)= Cn,k

Take a look at how one gets a term of the form xn−kyk when oneexpands (x + y)n.Visualize . . .

(x + y)n =(x + y) · (x + y) · (x + y) . . . (x + y).Each term of the product comes from taking either x or y fromeach of the n factors x + y . Each term of the form xn−kyk comesfrom taking x from n − k of those factors and taking y from k ofthose factors.The number of ways this can be done is precisely the number ofways one can choose the k factors from which one chooses y .By definition, this can be done in Cn,k ways.Thus, the coefficient of xn−kyk must be Cn,k , so Cn,k must beequal to

(nk

). From now on, we’ll use

(nk

)rather than Cn,k .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 44: The Wonderful World of Binomial Coefficients and Probability

Why(

nk

)= Cn,k

Take a look at how one gets a term of the form xn−kyk when oneexpands (x + y)n.Visualize . . . (x + y)n =

(x + y) · (x + y) · (x + y) . . . (x + y).Each term of the product comes from taking either x or y fromeach of the n factors x + y . Each term of the form xn−kyk comesfrom taking x from n − k of those factors and taking y from k ofthose factors.The number of ways this can be done is precisely the number ofways one can choose the k factors from which one chooses y .By definition, this can be done in Cn,k ways.Thus, the coefficient of xn−kyk must be Cn,k , so Cn,k must beequal to

(nk

). From now on, we’ll use

(nk

)rather than Cn,k .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 45: The Wonderful World of Binomial Coefficients and Probability

Why(

nk

)= Cn,k

Take a look at how one gets a term of the form xn−kyk when oneexpands (x + y)n.Visualize . . . (x + y)n =(x + y) · (x + y) · (x + y) . . . (x + y).

Each term of the product comes from taking either x or y fromeach of the n factors x + y . Each term of the form xn−kyk comesfrom taking x from n − k of those factors and taking y from k ofthose factors.The number of ways this can be done is precisely the number ofways one can choose the k factors from which one chooses y .By definition, this can be done in Cn,k ways.Thus, the coefficient of xn−kyk must be Cn,k , so Cn,k must beequal to

(nk

). From now on, we’ll use

(nk

)rather than Cn,k .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 46: The Wonderful World of Binomial Coefficients and Probability

Why(

nk

)= Cn,k

Take a look at how one gets a term of the form xn−kyk when oneexpands (x + y)n.Visualize . . . (x + y)n =(x + y) · (x + y) · (x + y) . . . (x + y).Each term of the product comes from taking either x or y fromeach of the n factors x + y . Each term of the form xn−kyk comesfrom taking x from n − k of those factors and taking y from k ofthose factors.

The number of ways this can be done is precisely the number ofways one can choose the k factors from which one chooses y .By definition, this can be done in Cn,k ways.Thus, the coefficient of xn−kyk must be Cn,k , so Cn,k must beequal to

(nk

). From now on, we’ll use

(nk

)rather than Cn,k .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 47: The Wonderful World of Binomial Coefficients and Probability
Page 48: The Wonderful World of Binomial Coefficients and Probability

Why(

nk

)= Cn,k

Take a look at how one gets a term of the form xn−kyk when oneexpands (x + y)n.Visualize . . . (x + y)n =(x + y) · (x + y) · (x + y) . . . (x + y).Each term of the product comes from taking either x or y fromeach of the n factors x + y . Each term of the form xn−kyk comesfrom taking x from n − k of those factors and taking y from k ofthose factors.The number of ways this can be done is precisely the number ofways one can choose the k factors from which one chooses y .By definition, this can be done in Cn,k ways.

Thus, the coefficient of xn−kyk must be Cn,k , so Cn,k must beequal to

(nk

). From now on, we’ll use

(nk

)rather than Cn,k .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 49: The Wonderful World of Binomial Coefficients and Probability

Why(

nk

)= Cn,k

Take a look at how one gets a term of the form xn−kyk when oneexpands (x + y)n.Visualize . . . (x + y)n =(x + y) · (x + y) · (x + y) . . . (x + y).Each term of the product comes from taking either x or y fromeach of the n factors x + y . Each term of the form xn−kyk comesfrom taking x from n − k of those factors and taking y from k ofthose factors.The number of ways this can be done is precisely the number ofways one can choose the k factors from which one chooses y .By definition, this can be done in Cn,k ways.Thus, the coefficient of xn−kyk must be Cn,k , so Cn,k must beequal to

(nk

). From now on, we’ll use

(nk

)rather than Cn,k .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 50: The Wonderful World of Binomial Coefficients and Probability

Interesting Properties

If we look at Pascal’s Triangle, which contains the BinomialCoefficients, the most obvious fact to most is that each termappears to be the sum of the two terms directly above it, to theleft and to the right.

11 1

1 2 11 3 3 1

1 4 6 4 1

Analytically, this may be expressed(nk

)=

(n−1k−1

)+

(n−1k

).

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 51: The Wonderful World of Binomial Coefficients and Probability

Interesting Properties

If we look at Pascal’s Triangle, which contains the BinomialCoefficients, the most obvious fact to most is that each termappears to be the sum of the two terms directly above it, to theleft and to the right.

11 1

1 2 11 3 3 1

1 4 6 4 1

Analytically, this may be expressed(nk

)=

(n−1k−1

)+

(n−1k

).

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 52: The Wonderful World of Binomial Coefficients and Probability

(nk

)=

(n−1k−1

)+

(n−1k

)

We can see why this is true if we visualize (x + y)n as(x + y)n−1(x + y) and observe the xn−kyk term of (x + y)n comesfrom the xn−kyk−1 and xn−k−1yk terms of (x + y)n−1 when wemultiply the former by y and the latter by x .

We thus see the xn−kyk term comes from(n−1k−1

)xn−kyk−1 · y +

(n−1k

)xn−k−1yk · x =

[(n−1k−1

)+

(n−1k

)]xn−kyk .

This shows that(nk

), the coefficient of xn−kyk , is

(n−1k−1

)+

(n−1k

).

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 53: The Wonderful World of Binomial Coefficients and Probability

(nk

)=

(n−1k−1

)+

(n−1k

)

We can see why this is true if we visualize (x + y)n as(x + y)n−1(x + y) and observe the xn−kyk term of (x + y)n comesfrom the xn−kyk−1 and xn−k−1yk terms of (x + y)n−1 when wemultiply the former by y and the latter by x .We thus see the xn−kyk term comes from(n−1k−1

)xn−kyk−1 · y +

(n−1k

)xn−k−1yk · x =

[(n−1k−1

)+

(n−1k

)]xn−kyk .

This shows that(nk

), the coefficient of xn−kyk , is

(n−1k−1

)+

(n−1k

).

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 54: The Wonderful World of Binomial Coefficients and Probability

(nk

)=

(n−1k−1

)+

(n−1k

)

We can see why this is true if we visualize (x + y)n as(x + y)n−1(x + y) and observe the xn−kyk term of (x + y)n comesfrom the xn−kyk−1 and xn−k−1yk terms of (x + y)n−1 when wemultiply the former by y and the latter by x .We thus see the xn−kyk term comes from(n−1k−1

)xn−kyk−1 · y +

(n−1k

)xn−k−1yk · x =

[(n−1k−1

)+

(n−1k

)]xn−kyk .

This shows that(nk

), the coefficient of xn−kyk , is

(n−1k−1

)+

(n−1k

).

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 55: The Wonderful World of Binomial Coefficients and Probability

The Total in Any Row

Another interesting property comes if we add up the terms in eachrow.

11 1

1 2 11 3 3 1

1 4 6 4 1

The successive sums are 1, 2, 4, 8, 16.Each is exactly double the one before.They are all powers of 2.Another way of looking at it is, if we call the top row, row 0, whichis reasonable because it corresponds to the coefficients of (x + y)0,then the total in the nth row is 2n.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 56: The Wonderful World of Binomial Coefficients and Probability

The Total in Any Row

Another interesting property comes if we add up the terms in eachrow.

11 1

1 2 11 3 3 1

1 4 6 4 1

The successive sums are 1, 2, 4, 8, 16.

Each is exactly double the one before.They are all powers of 2.Another way of looking at it is, if we call the top row, row 0, whichis reasonable because it corresponds to the coefficients of (x + y)0,then the total in the nth row is 2n.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 57: The Wonderful World of Binomial Coefficients and Probability

The Total in Any Row

Another interesting property comes if we add up the terms in eachrow.

11 1

1 2 11 3 3 1

1 4 6 4 1

The successive sums are 1, 2, 4, 8, 16.Each is exactly double the one before.

They are all powers of 2.Another way of looking at it is, if we call the top row, row 0, whichis reasonable because it corresponds to the coefficients of (x + y)0,then the total in the nth row is 2n.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 58: The Wonderful World of Binomial Coefficients and Probability

The Total in Any Row

Another interesting property comes if we add up the terms in eachrow.

11 1

1 2 11 3 3 1

1 4 6 4 1

The successive sums are 1, 2, 4, 8, 16.Each is exactly double the one before.They are all powers of 2.

Another way of looking at it is, if we call the top row, row 0, whichis reasonable because it corresponds to the coefficients of (x + y)0,then the total in the nth row is 2n.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 59: The Wonderful World of Binomial Coefficients and Probability

The Total in Any Row

Another interesting property comes if we add up the terms in eachrow.

11 1

1 2 11 3 3 1

1 4 6 4 1

The successive sums are 1, 2, 4, 8, 16.Each is exactly double the one before.They are all powers of 2.Another way of looking at it is, if we call the top row, row 0, whichis reasonable because it corresponds to the coefficients of (x + y)0,then the total in the nth row is 2n.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 60: The Wonderful World of Binomial Coefficients and Probability

The Total in Row n is 2n

This is easily seen because2n = (1+1)n =

(n0

)1n·10+

(n1

)1n−1·11+

(n2

)1n−2·12+· · ·+

(nn

)10·1n =(n

0

)+

(n1

)+

(n2

)+ · · ·+

(nn

)

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 61: The Wonderful World of Binomial Coefficients and Probability

Connections to Probability

The most basic connection to probability is through the BinomialProbability Distribution.

Suppose we perform the same experiment n times and theexperiment satisfies the following conditions, where theperformance of each experiment is referred to as a binomial trial,so that we may think of the complete sequence of trials as abinomial experiment.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 62: The Wonderful World of Binomial Coefficients and Probability

Connections to Probability

The most basic connection to probability is through the BinomialProbability Distribution.Suppose we perform the same experiment n times and theexperiment satisfies the following conditions, where theperformance of each experiment is referred to as a binomial trial,so that we may think of the complete sequence of trials as abinomial experiment.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 63: The Wonderful World of Binomial Coefficients and Probability

Binomial Experiments

1. Each trial has two possible outcomes, which may be denotedby S and F .

2. The result of each trial is independent of the results of theother trials.

3. There are numbers p and q with p ≥ 0, q ≥ 0 and p + q = 1such that for each trial, the probability of the outcome S is pand the probability of outcome F is q. We may writePr(P) = p, Pr(F ) = q.

If we let X be the number of S’s, it turns out thatPr(X = k) =

(nk

)pkqn−k .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 64: The Wonderful World of Binomial Coefficients and Probability

Binomial Experiments

1. Each trial has two possible outcomes, which may be denotedby S and F .

2. The result of each trial is independent of the results of theother trials.

3. There are numbers p and q with p ≥ 0, q ≥ 0 and p + q = 1such that for each trial, the probability of the outcome S is pand the probability of outcome F is q. We may writePr(P) = p, Pr(F ) = q.

If we let X be the number of S’s, it turns out thatPr(X = k) =

(nk

)pkqn−k .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 65: The Wonderful World of Binomial Coefficients and Probability

Binomial Experiments

1. Each trial has two possible outcomes, which may be denotedby S and F .

2. The result of each trial is independent of the results of theother trials.

3. There are numbers p and q with p ≥ 0, q ≥ 0 and p + q = 1such that for each trial, the probability of the outcome S is pand the probability of outcome F is q. We may writePr(P) = p, Pr(F ) = q.

If we let X be the number of S’s, it turns out thatPr(X = k) =

(nk

)pkqn−k .

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 66: The Wonderful World of Binomial Coefficients and Probability

Example: Tossing Coins

If we toss a coin a number of times, it may be considered abinomial experiment with p = q = 1

2 , where S may correspond togetting a head and F to getting a tail.

In a simple example, if we toss a coin twice, the probability ofgetting exactly 1 head is(21

) (12

)1 ·(

12

)1=

(21

) (12

)2=

2!

1!1!=

2 · 11 · 1

· 1

4=

2

4=

1

2.

In other words, the chance of getting exactly one head if we toss acoin twice is 1

2 .The same analysis implies that if any birth was equally likely to bea boy or a girl, then half the families with two children would haveone boy and one girl.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 67: The Wonderful World of Binomial Coefficients and Probability

Example: Tossing Coins

If we toss a coin a number of times, it may be considered abinomial experiment with p = q = 1

2 , where S may correspond togetting a head and F to getting a tail.In a simple example, if we toss a coin twice, the probability ofgetting exactly 1 head is(21

) (12

)1 ·(

12

)1=

(21

) (12

)2=

2!

1!1!=

2 · 11 · 1

· 1

4=

2

4=

1

2.

In other words, the chance of getting exactly one head if we toss acoin twice is 1

2 .The same analysis implies that if any birth was equally likely to bea boy or a girl, then half the families with two children would haveone boy and one girl.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 68: The Wonderful World of Binomial Coefficients and Probability

Example: Tossing Coins

If we toss a coin a number of times, it may be considered abinomial experiment with p = q = 1

2 , where S may correspond togetting a head and F to getting a tail.In a simple example, if we toss a coin twice, the probability ofgetting exactly 1 head is(21

) (12

)1 ·(

12

)1=

(21

) (12

)2=

2!

1!1!=

2 · 11 · 1

· 1

4=

2

4=

1

2.

In other words, the chance of getting exactly one head if we toss acoin twice is 1

2 .

The same analysis implies that if any birth was equally likely to bea boy or a girl, then half the families with two children would haveone boy and one girl.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 69: The Wonderful World of Binomial Coefficients and Probability

Example: Tossing Coins

If we toss a coin a number of times, it may be considered abinomial experiment with p = q = 1

2 , where S may correspond togetting a head and F to getting a tail.In a simple example, if we toss a coin twice, the probability ofgetting exactly 1 head is(21

) (12

)1 ·(

12

)1=

(21

) (12

)2=

2!

1!1!=

2 · 11 · 1

· 1

4=

2

4=

1

2.

In other words, the chance of getting exactly one head if we toss acoin twice is 1

2 .The same analysis implies that if any birth was equally likely to bea boy or a girl, then half the families with two children would haveone boy and one girl.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 70: The Wonderful World of Binomial Coefficients and Probability

Where does the connection come from?

If one performs the same trial n times, there are exactly(nk

)ways

of k trials coming out S and n − k trials coming out F, with eachway having a probability pkqn−k of happening.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 71: The Wonderful World of Binomial Coefficients and Probability

Other Interesting Properties

Suppose we take any row other than the top row in Pascal’sTriangle and alternately add and subtract adjacent terms. Wealways come up with 0.

11 1

1 2 11 3 3 1

1 4 6 4 1

This can be seen if we expand 0n in the form (1− 1)n.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 72: The Wonderful World of Binomial Coefficients and Probability

Other Interesting Properties

Suppose we take any row other than the top row in Pascal’sTriangle and alternately add and subtract adjacent terms. Wealways come up with 0.

11 1

1 2 11 3 3 1

1 4 6 4 1

This can be seen if we expand 0n in the form (1− 1)n.

Alan SteinUniversity of ConnecticutWaterbury Campus

Page 73: The Wonderful World of Binomial Coefficients and Probability

Odd Binomial Coefficients

All integers are characterized as either even or odd–hardly arevelation.

If we look at the binomial coefficients, and look at the nth row, itturns out that the number of odd binomial coefficients in that rowis 2α(n), where α(n) is the number of 1s in the binary (base 2)representation of n. (We need to look at the top row as the 0th

row.)In fact, it turns out that

(nk

)is odd precisely when all the places

where the binary representation of k have 1’s are at places wherethe binary representation of n also have 1’s.

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 74: The Wonderful World of Binomial Coefficients and Probability

Odd Binomial Coefficients

All integers are characterized as either even or odd–hardly arevelation.If we look at the binomial coefficients, and look at the nth row, itturns out that the number of odd binomial coefficients in that rowis 2α(n), where α(n) is the number of 1s in the binary (base 2)representation of n. (We need to look at the top row as the 0ow

Page 75: The Wonderful World of Binomial Coefficients and Probability

Odd Binomial Coefficients

All integers are characterized as either even or odd–hardly arevelation.If we look at the binomial coefficients, and look at the nth row, itturns out that the number of odd binomial coefficients in that rowis 2α(n), where α(n) is the number of 1s in the binary (base 2)representation of n. (We need to look at the top row as the 0th

row.)In fact, it turns out that

(nk

)is odd precisely when all the places

where the binary representation of k have 1’s are at places wherethe binary representation of n also have 1’s.

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 76: The Wonderful World of Binomial Coefficients and Probability

Odd Binomial Coefficients

All integers are characterized as either even or odd–hardly arevelation.If we look at the binomial coefficients, and look at the nth row, itturns out that the number of odd binomial coefficients in that rowis 2α(n), where α(n) is the number of 1s in the binary (base 2)representation of n. (We need to look at the top row as the 0th

row.)In fact, it turns out that

(nk

)is odd precisely when all the places

where the binary representation of k have 1’s are at places wherethe binary representation of n also have 1’s.

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 77: The Wonderful World of Binomial Coefficients and Probability

Odd Binomial Coefficients

02 = 0, α(0) = 0, 2α(0) = 20 = 1

12 = 1, α(1) = 1, 2α(1) = 21 = 2

22 = 10, α(2) = 1, 2α(2) = 21 = 2

32 = 11, α(3) = 2, 2α(3) = 22 = 4

42 = 100, α(4) = 1, 2α(4) = 21 = 2

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 78: The Wonderful World of Binomial Coefficients and Probability

Odd Binomial Coefficients

02 = 0, α(0) = 0, 2α(0) = 20 = 1

12 = 1, α(1) = 1, 2α(1) = 21 = 2

22 = 10, α(2) = 1, 2α(2) = 21 = 2

32 = 11, α(3) = 2, 2α(3) = 22 = 4

42 = 100, α(4) = 1, 2α(4) = 21 = 2

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 79: The Wonderful World of Binomial Coefficients and Probability

Odd Binomial Coefficients

02 = 0, α(0) = 0, 2α(0) = 20 = 1

12 = 1, α(1) = 1, 2α(1) = 21 = 2

22 = 10, α(2) = 1, 2α(2) = 21 = 2

32 = 11, α(3) = 2, 2α(3) = 22 = 4

42 = 100, α(4) = 1, 2α(4) = 21 = 2

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 80: The Wonderful World of Binomial Coefficients and Probability

Odd Binomial Coefficients

02 = 0, α(0) = 0, 2α(0) = 20 = 1

12 = 1, α(1) = 1, 2α(1) = 21 = 2

22 = 10, α(2) = 1, 2α(2) = 21 = 2

32 = 11, α(3) = 2, 2α(3) = 22 = 4

42 = 100, α(4) = 1, 2α(4) = 21 = 2

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 81: The Wonderful World of Binomial Coefficients and Probability

Odd Binomial Coefficients

02 = 0, α(0) = 0, 2α(0) = 20 = 1

12 = 1, α(1) = 1, 2α(1) = 21 = 2

22 = 10, α(2) = 1, 2α(2) = 21 = 2

32 = 11, α(3) = 2, 2α(3) = 22 = 4

42 = 100, α(4) = 1, 2α(4) = 21 = 2

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 82: The Wonderful World of Binomial Coefficients and Probability

Odd Binomial Coefficients

02 = 0, α(0) = 0, 2α(0) = 20 = 1

12 = 1, α(1) = 1, 2α(1) = 21 = 2

22 = 10, α(2) = 1, 2α(2) = 21 = 2

32 = 11, α(3) = 2, 2α(3) = 22 = 4

42 = 100, α(4) = 1, 2α(4) = 21 = 2

11 1

1 2 11 3 3 1

1 4 6 4 1

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 83: The Wonderful World of Binomial Coefficients and Probability

The Macro Perspective

In the long run, it turns out that almost all binomial coefficientsare even rather than odd.

Perhaps more surprisingly, if one took any finite set of primenumbers and started looking, row by row, at all the binomialcoefficients, one would find that almost all the binomialcoefficients were divisible by every prime in the set . . . although itmight take a few lifetimes to actually check enough rows to see it.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 84: The Wonderful World of Binomial Coefficients and Probability

The Macro Perspective

In the long run, it turns out that almost all binomial coefficientsare even rather than odd.

Perhaps more surprisingly, if one took any finite set of primenumbers and started looking, row by row, at all the binomialcoefficients, one would find that almost all the binomialcoefficients were divisible by every prime in the set . . .

although itmight take a few lifetimes to actually check enough rows to see it.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 85: The Wonderful World of Binomial Coefficients and Probability

The Macro Perspective

In the long run, it turns out that almost all binomial coefficientsare even rather than odd.

Perhaps more surprisingly, if one took any finite set of primenumbers and started looking, row by row, at all the binomialcoefficients, one would find that almost all the binomialcoefficients were divisible by every prime in the set . . . although itmight take a few lifetimes to actually check enough rows to see it.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 86: The Wonderful World of Binomial Coefficients and Probability

Binomial Coefficients Modulo 3

The odd binomial coefficients can be viewed as the binomialcoefficients that are not divisible by 2. One might similarly look atthe binomial coefficients not divisible by 3. We already knowalmost all binomial coefficients are divisible by 3, but among theones which aren’t, one might categorize those which leave aremainder of 1 when divided by 3 and those which leave aremainder of −1 when divided by 3.

Offhand, one might expect about as many to have a remainder of1 as of −1 when divided by 3.

That’s exactly what happens.

But there’s more to the story.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 87: The Wonderful World of Binomial Coefficients and Probability

Binomial Coefficients Modulo 3

The odd binomial coefficients can be viewed as the binomialcoefficients that are not divisible by 2. One might similarly look atthe binomial coefficients not divisible by 3. We already knowalmost all binomial coefficients are divisible by 3, but among theones which aren’t, one might categorize those which leave aremainder of 1 when divided by 3 and those which leave aremainder of −1 when divided by 3.

Offhand, one might expect about as many to have a remainder of1 as of −1 when divided by 3.

That’s exactly what happens.

But there’s more to the story.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 88: The Wonderful World of Binomial Coefficients and Probability

Binomial Coefficients Modulo 3

The odd binomial coefficients can be viewed as the binomialcoefficients that are not divisible by 2. One might similarly look atthe binomial coefficients not divisible by 3. We already knowalmost all binomial coefficients are divisible by 3, but among theones which aren’t, one might categorize those which leave aremainder of 1 when divided by 3 and those which leave aremainder of −1 when divided by 3.

Offhand, one might expect about as many to have a remainder of1 as of −1 when divided by 3.

That’s exactly what happens.

But there’s more to the story.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 89: The Wonderful World of Binomial Coefficients and Probability

Binomial Coefficients Modulo 3

The odd binomial coefficients can be viewed as the binomialcoefficients that are not divisible by 2. One might similarly look atthe binomial coefficients not divisible by 3. We already knowalmost all binomial coefficients are divisible by 3, but among theones which aren’t, one might categorize those which leave aremainder of 1 when divided by 3 and those which leave aremainder of −1 when divided by 3.

Offhand, one might expect about as many to have a remainder of1 as of −1 when divided by 3.

That’s exactly what happens.

But there’s more to the story.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 90: The Wonderful World of Binomial Coefficients and Probability

Binomial Coefficients Modulo 3

If we take 2 and raise it to a power equal to the number of 1’s inthe ternary (base 3) expansion of n, take 3 and raise it to a powerequal to the number of 2’s in the ternary expansion of n, andmultiply those two numbers together, we get the number ofbinomial coefficients in the nth row which are not divisible by 3.

More surprisingly, if we just take the first of those factors, thepower of two, that happens to be just what we get if we count thenumber of binomial coefficients in the nth row which leave aremainder of 1 when divided by 3 and subtract the number whichleave a remainder of −1.

Since any power of 2 must be a positive number, this implies theinteresting result that every single row contains more binomialcoefficients which give a remainder of 1 than which give aremainder of −1!!!

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 91: The Wonderful World of Binomial Coefficients and Probability
Page 92: The Wonderful World of Binomial Coefficients and Probability

Binomial Coefficients Modulo 3

If we take 2 and raise it to a power equal to the number of 1’s inthe ternary (base 3) expansion of n, take 3 and raise it to a powerequal to the number of 2’s in the ternary expansion of n, andmultiply those two numbers together, we get the number ofbinomial coefficients in the nth row which are not divisible by 3.

More surprisingly, if we just take the first of those factors, thepower of two, that happens to be just what we get if we count thenumber of binomial coefficients in the nth row which leave aremainder of 1 when divided by 3 and subtract the number whichleave a remainder of −1.

Since any power of 2 must be a positive number, this implies theinteresting result that every single row contains more binomialcoefficients which give a remainder of 1 than which give aremainder of −1!!!

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 93: The Wonderful World of Binomial Coefficients and Probability

The Inevitability of Events of Probability Zero

This doesn’t really have too much to do with binomial coefficients,but it does show how, in combinatorics and probability, intuitioncan’t always be trusted.

Consider a light bulb sold with an average life of 1000 hours.I will show the probability that it lasts exactly 1000 hours is 0.A similar argument would clearly hold for every other possible time.But the light bulb must burn out at some point, so an event withprobability 0 will inevitably occur.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 94: The Wonderful World of Binomial Coefficients and Probability

The Inevitability of Events of Probability Zero

This doesn’t really have too much to do with binomial coefficients,but it does show how, in combinatorics and probability, intuitioncan’t always be trusted.Consider a light bulb sold with an average life of 1000 hours.

I will show the probability that it lasts exactly 1000 hours is 0.A similar argument would clearly hold for every other possible time.But the light bulb must burn out at some point, so an event withprobability 0 will inevitably occur.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 95: The Wonderful World of Binomial Coefficients and Probability

The Inevitability of Events of Probability Zero

This doesn’t really have too much to do with binomial coefficients,but it does show how, in combinatorics and probability, intuitioncan’t always be trusted.Consider a light bulb sold with an average life of 1000 hours.I will show the probability that it lasts exactly 1000 hours is 0.

A similar argument would clearly hold for every other possible time.But the light bulb must burn out at some point, so an event withprobability 0 will inevitably occur.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 96: The Wonderful World of Binomial Coefficients and Probability

The Inevitability of Events of Probability Zero

This doesn’t really have too much to do with binomial coefficients,but it does show how, in combinatorics and probability, intuitioncan’t always be trusted.Consider a light bulb sold with an average life of 1000 hours.I will show the probability that it lasts exactly 1000 hours is 0.A similar argument would clearly hold for every other possible time.

But the light bulb must burn out at some point, so an event withprobability 0 will inevitably occur.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 97: The Wonderful World of Binomial Coefficients and Probability

The Inevitability of Events of Probability Zero

This doesn’t really have too much to do with binomial coefficients,but it does show how, in combinatorics and probability, intuitioncan’t always be trusted.Consider a light bulb sold with an average life of 1000 hours.I will show the probability that it lasts exactly 1000 hours is 0.A similar argument would clearly hold for every other possible time.But the light bulb must burn out at some point, so an event withprobability 0 will inevitably occur.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 98: The Wonderful World of Binomial Coefficients and Probability

The Death of a Light Bulb

Suppose the probability the light bulb burns out in exactly 1000hours is some positive number p.

I think you’ll agree theprobability of it burning out at any particular time within a minuteor so of 1000 hours won’t be much different. For example, it willcertainly be at least half p.

Let Pr(t) be the probability the light bulb burns out in exactly thours and let n be any positive integer bigger than 2

p .

I think you’ll also agree that the probability the light bulb burnsout within a minute of 1000 hours is at least equal toPr(1000) + Pr(1000 + 1

60n ) + Pr(1000 + 260n ) + Pr(1000 + 3

60n ) +· · ·+ Pr(1000 + n−1

60n ).But that last sum contains n terms, each at least as large as p

2 , soit must total at least n · p

2 . Since n > 2p , this must be more than 1.

But no probability can be bigger than 1. It follows the assumptionPr(1000) > 0 must be wrong!

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 99: The Wonderful World of Binomial Coefficients and Probability

The Death of a Light Bulb

Suppose the probability the light bulb burns out in exactly 1000hours is some positive number p. I think you’ll agree theprobability of it burning out at any particular time within a minuteor so of 1000 hours won’t be much different. For example, it willcertainly be at least half p.

Let Pr(t) be the probability the light bulb burns out in exactly thours and let n be any positive integer bigger than 2

p .

I think you’ll also agree that the probability the light bulb burnsout within a minute of 1000 hours is at least equal toPr(1000) + Pr(1000 + 1

60n ) + Pr(1000 + 260n ) + Pr(1000 + 3

60n ) +· · ·+ Pr(1000 + n−1

60n ).But that last sum contains n terms, each at least as large as p

2 , soit must total at least n · p

2 . Since n > 2p , this must be more than 1.

But no probability can be bigger than 1. It follows the assumptionPr(1000) > 0 must be wrong!

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 100: The Wonderful World of Binomial Coefficients and Probability

The Death of a Light Bulb

Suppose the probability the light bulb burns out in exactly 1000hours is some positive number p. I think you’ll agree theprobability of it burning out at any particular time within a minuteor so of 1000 hours won’t be much different. For example, it willcertainly be at least half p.

Let Pr(t) be the probability the light bulb burns out in exactly thours and let n be any positive integer bigger than 2

p .

I think you’ll also agree that the probability the light bulb burnsout within a minute of 1000 hours is at least equal toPr(1000) + Pr(1000 + 1

60n ) + Pr(1000 + 260n ) + Pr(1000 + 3

60n ) +· · ·+ Pr(1000 + n−1

60n ).But that last sum contains n terms, each at least as large as p

2 , soit must total at least n · p

2 . Since n > 2p , this must be more than 1.

But no probability can be bigger than 1. It follows the assumptionPr(1000) > 0 must be wrong!

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 101: The Wonderful World of Binomial Coefficients and Probability

The Death of a Light Bulb

Suppose the probability the light bulb burns out in exactly 1000hours is some positive number p. I think you’ll agree theprobability of it burning out at any particular time within a minuteor so of 1000 hours won’t be much different. For example, it willcertainly be at least half p.

Let Pr(t) be the probability the light bulb burns out in exactly thours and let n be any positive integer bigger than 2

p .

I think you’ll also agree that the probability the light bulb burnsout within a minute of 1000 hours is at least equal toPr(1000) + Pr(1000 + 1

60n ) + Pr(1000 + 260n ) + Pr(1000 + 3

60n ) +· · ·+ Pr(1000 + n−1

60n ).

But that last sum contains n terms, each at least as large as p2 , so

it must total at least n · p2 . Since n > 2

p , this must be more than 1.But no probability can be bigger than 1. It follows the assumptionPr(1000) > 0 must be wrong!

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 102: The Wonderful World of Binomial Coefficients and Probability

The Death of a Light Bulb

Suppose the probability the light bulb burns out in exactly 1000hours is some positive number p. I think you’ll agree theprobability of it burning out at any particular time within a minuteor so of 1000 hours won’t be much different. For example, it willcertainly be at least half p.

Let Pr(t) be the probability the light bulb burns out in exactly thours and let n be any positive integer bigger than 2

p .

I think you’ll also agree that the probability the light bulb burnsout within a minute of 1000 hours is at least equal toPr(1000) + Pr(1000 + 1

60n ) + Pr(1000 + 260n ) + Pr(1000 + 3

60n ) +· · ·+ Pr(1000 + n−1

60n ).But that last sum contains n terms, each at least as large as p

2 , soit must total at least n · p

2 .

Since n > 2p , this must be more than 1.

But no probability can be bigger than 1. It follows the assumptionPr(1000) > 0 must be wrong!

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 103: The Wonderful World of Binomial Coefficients and Probability

The Death of a Light Bulb

Suppose the probability the light bulb burns out in exactly 1000hours is some positive number p. I think you’ll agree theprobability of it burning out at any particular time within a minuteor so of 1000 hours won’t be much different. For example, it willcertainly be at least half p.

Let Pr(t) be the probability the light bulb burns out in exactly thours and let n be any positive integer bigger than 2

p .

I think you’ll also agree that the probability the light bulb burnsout within a minute of 1000 hours is at least equal toPr(1000) + Pr(1000 + 1

60n ) + Pr(1000 + 260n ) + Pr(1000 + 3

60n ) +· · ·+ Pr(1000 + n−1

60n ).But that last sum contains n terms, each at least as large as p

2 , soit must total at least n · p

2 . Since n > 2p , this must be more than 1.

But no probability can be bigger than 1. It follows the assumptionPr(1000) > 0 must be wrong!

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 104: The Wonderful World of Binomial Coefficients and Probability

The Death of a Light Bulb

Suppose the probability the light bulb burns out in exactly 1000hours is some positive number p. I think you’ll agree theprobability of it burning out at any particular time within a minuteor so of 1000 hours won’t be much different. For example, it willcertainly be at least half p.

Let Pr(t) be the probability the light bulb burns out in exactly thours and let n be any positive integer bigger than 2

p .

I think you’ll also agree that the probability the light bulb burnsout within a minute of 1000 hours is at least equal toPr(1000) + Pr(1000 + 1

60n ) + Pr(1000 + 260n ) + Pr(1000 + 3

60n ) +· · ·+ Pr(1000 + n−1

60n ).But that last sum contains n terms, each at least as large as p

2 , soit must total at least n · p

2 . Since n > 2p , this must be more than 1.

But no probability can be bigger than 1. It follows the assumptionPr(1000) > 0 must be wrong!

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 105: The Wonderful World of Binomial Coefficients and Probability

The Problem of the Three Chests

A solution to this problem is worth extra credit to students in myclasses!

Hint 1: This problem is explained in a book authored by theperson for whom the building I had my office in when I was ingraduate school was named.

Hint 2: At that time, his son was a reporter for the New YorkTimes.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 106: The Wonderful World of Binomial Coefficients and Probability

The Problem of the Three Chests

A solution to this problem is worth extra credit to students in myclasses!

Hint 1: This problem is explained in a book authored by theperson for whom the building I had my office in when I was ingraduate school was named.

Hint 2: At that time, his son was a reporter for the New YorkTimes.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 107: The Wonderful World of Binomial Coefficients and Probability

The Problem of the Three Chests

A solution to this problem is worth extra credit to students in myclasses!

Hint 1: This problem is explained in a book authored by theperson for whom the building I had my office in when I was ingraduate school was named.

Hint 2: At that time, his son was a reporter for the New YorkTimes.

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 108: The Wonderful World of Binomial Coefficients and Probability

The Problem of the Three Chests

Suppose you are standing in front of three chests which lookexactly alike, each of the chests containing two drawers. We willcall the chests A,B, and C. Each drawer of Chest A contains a goldpiece. In Chest B one drawer has a gold piece, one a silver piece.In Chest C each drawer contains a silver piece.

You choose a chest at random, choose one of its drawers atrandom, open the drawer, and find it contains a gold piece.

What is the probability that, if you open the other drawer in thesame chest, it will also contain a gold piece?

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 109: The Wonderful World of Binomial Coefficients and Probability

The Problem of the Three Chests

Suppose you are standing in front of three chests which lookexactly alike, each of the chests containing two drawers. We willcall the chests A,B, and C. Each drawer of Chest A contains a goldpiece. In Chest B one drawer has a gold piece, one a silver piece.In Chest C each drawer contains a silver piece.

You choose a chest at random, choose one of its drawers atrandom, open the drawer, and find it contains a gold piece.

What is the probability that, if you open the other drawer in thesame chest, it will also contain a gold piece?

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability

Page 110: The Wonderful World of Binomial Coefficients and Probability

The Problem of the Three Chests

Suppose you are standing in front of three chests which lookexactly alike, each of the chests containing two drawers. We willcall the chests A,B, and C. Each drawer of Chest A contains a goldpiece. In Chest B one drawer has a gold piece, one a silver piece.In Chest C each drawer contains a silver piece.

You choose a chest at random, choose one of its drawers atrandom, open the drawer, and find it contains a gold piece.

What is the probability that, if you open the other drawer in thesame chest, it will also contain a gold piece?

Alan SteinUniversity of ConnecticutWaterbury Campus The Wonderful World of Binomial Coefficients and Probability