CSCI 2824 Lecture 25 Notes: Binomial TheoremIn this lecture, we will continue with the binomial theorem and look at some applications. We will also look at recursive counting and counting unordered lists with repetitions. Biniomial TheoremFor all natural numbers We can write it succinctly as Proof What is the coefficient of To form a term Our reasoning above shows that the coefficient of Applications of Binomial TheoremWe can use the Binomial theorem to show some properties of the 1. Proof: Take the expansion of 2. Let Proof: Take 3. Evaluate: Proof: Take Take the derivative of both sides w.r.t Substituting 4. Likewise, can you evaluate this summation: Counting Unordered Lists With RepetitionHere is a problem: There are ten candy stores, each selling the same type of candy. How many ways are there for me to purchase
In other words, we are asking, how many ways are there of satisfying the following equation: Note that Naturally each of the Candy Purchasing and Binary SequenceWe will now “code up” the patterns of candy purchasing using binary strings made up of 0s and 1s. Take a sequence of Our goal is to insert We interpret the sequence above to mean,
Let us take another example: Take another sequence of 0's and 1's with What pattern of candy buying does it represent:
What pattern of 0s and 1s represent the following pattern of candy purchasing?
Answer: Claim1. There is a one-to-one correspondence between the patterns of purchasing 30 candies from 10 stores and the number of binary sequences consisting of 30 0's and 9 1's. 2. There is a one-to-one corr. between the patterns of purchasing 30 candies from 10 stores and the number of solutions to the equation: AnswerThere are ten candy stores, each selling the same type of candy. How many ways are there for me to purchase Answer We have a corr. between each pattern of candy purchasing and a binary sequence with exactly 30 0's and 9 1's.
Therefore, the required answer is simply Unordered Lists With Repetitions1. Let us say we have Or equivalently, 2. What are the number of solutions to the equation: or equivalently, 3. How many binary sequences of Answer to all of these problems is Example-1How many natural number solutions are there for the equation: Answer Each solution can be viewed as inserting 3 Example-2How many natural number solutions are there for the equation: Answer We can write the problem equivalently as Example-3How many positive integer solutions are there for the equation: We require This gives us Example-4There are three shops that sell widgets. Our goal is to obtain Recursive CountingIn recursive counting, we express the count as a recurrence relation. Example-1How many round-robin matches need to be played between We know that the answer is Answer Let Let us write a recurrence for where |