Week 20 - Combinatorics B
10.201 Binomial coefficients and identities
- Binomial Theorem
- An expression consisting of 2 terms, connected by a + or - sign.
- Examples:
- As we increase power of binomials, expanding them becomes more complicated:
- At very high orders, like binomial theorem becomes very useful.
- Theorem:
- Let x and y be variables, and n a non-negative integer.
- The expansion of can be formalised as:
- Example:
- What is the coefficient of in the expansion of ?
- Solution:
- We can view the expression as
- By the binomial theorem:
- Consequently, the coeeficient of in the expansion is obtained when k = 8:
- Application of the binomial theorem
- Prove the identity:
- Using binomial theorem:
- With x = 1 and y = 1, from the binomial theorem we see that the identity is verified.
- Using sets:
- Consider the subsets of a set with n elements.
- There are subsets with zero elements, with one element, with two elements and so on...with n elements.
- Therefore the total number of subsets is
- Also, since we know that a set with n elements has subsets, we can conclude that:
-
Pascal's identity
- If n and k are integers with , then:
- Proof:
- Let T be a set where , , and
- There are subsets of T containing k elements. Each of these subsets either:
- contains a with k - 1 other elements, or
- contains k elements of S and not a
- There are
- subsets of k elements that contain a
- subsets of k elements of T that don't contain a
- Hence,
- It's the basis for geometic arrangements of the binomial coefficients in a triangle. This is called Pascal's Triangle.
- Pascal's triangle is a number triangle with numbers arranged in staggered rows such that is the binomial coefficients of
Using Pascal's identity, we can show the result of adding 2 adjacent coefficients in the triangle is equal to the binomial coefficient in the next row between these 2 coefficients.
- If n and k are integers with , then:
Video: 10.204 Generalised permutations and combinations
- Permutations with repetition
- The number of r-permutations for a set of n objects when repitition allowed is
- Proof:
- Since we always have n choices each time:
- n possibilities for 1st choice.
- n possibilities for 2nd choice.
- ...
- n possibilities when choosing the last number.
- By product rule, multiplying each time:
- (do this r times)
- Since we always have n choices each time:
- Example:
- How many strings of length r can be formed if we are using only uppercase letters in the English alphabet?
- Solution:
- The number of such strings is , which is the number of r-permutations with repetition of a set with 26 elements.
- Permutations without repetition
- When we have permutations without repetition, we reduce the number of choices available each time by 1.
- So, the number of r-permutations of a set with n objects without reps is:
- (do this r times)
- Example
- 10 runners take part in running competition. How many different ways can the 1st and 2nd place be awarded?
- Solution:
- Combination with repetition
- The number of ways in which k objects can be selected from n categories of objects, with repetition permitted, can be calculated as:
- It is also the total numebr of ways to put k identical balls into n distinct boxes.
- It is also the total number of functions from a set of k identical elements to a set of n distinct elements.
- Example
- Find all multisets of size 3 from the set {1, 2, 3, 4}
- Solution:
- Using bars and crossed, think of the values 1, 2, 3, 4 as four categories.
- Denote each multiset of size 3 by placing 3 crosses in the various categories.
- For example, the multiset {1, 1, 3} is represented by x x | | x |
- This countining problem can be modelled as distributing the 3 crosses among the 3+4-1 positions, with the remaining positions occupied by bars
- Therefore, the number of multisets of size 3 is:
- Combination without repetition
- The number of ways in which k objects can be selected from n categories of objects with repetition not permitted can be calculated as:
- Counting problem is the same as the number of ways to put k identitcal balls into n distinct boxes, where each box receives at most one ball.
- It is also the number of one-to-one functions from a set of k identical elements into a set of n distinct elements.
- It is also the number of k-element subsets of an n-element set.
- Choice of formulas
- We have discussed four ways of selecting k objects from a set with n elements:
- the order in which choices are made may or may not matter.
- repetition may or may not be alloed.
- This table summarises the formula in each case:
- We have discussed four ways of selecting k objects from a set with n elements:
Order matters | Order does not matter | |
---|---|---|
Repetition is not permitted | ||
Repetition is permitted |
- Example
- John is a chair of a committee. In how many ways can a committee of 3 be chosen from 10 people, given that John must be one of the people selected?
- Solution:
- Since John is already chosen, we need to choose another 2 out of 9 people
- In choosing a committee, the order doesn't matter, so we need to apply the combination without repetition formula: ways.
Video: 10.206 Distinguishable objects and boxes
- Many counting problems can be reduced into finding the number of ways objects can be placed into boxes.
- Distributing objects into boxes.
- We can phrase counting problems in terms of distributing k objects into n boxes, under various conditions:
- The objects can be distinguishable or indistinguishable.
- The boxes can be either distinguishable or indistinguishable.
- The distribution can be done either with exclusion or without exclusion.
- Distinguishable means they are marked in someway that allows you to distinguish from each other.
- Indistinguishable means objects or boxes are identical so you can't tell them apart.
- When placing indistinguishable objects into distinguishable boxes, it makes no difference which object is placed into which box.
- The term "with exclusion" means no box can contain more than one object.
- "without exclusion" means box can contain more than one object.
- We can phrase counting problems in terms of distributing k objects into n boxes, under various conditions:
- Distinguishable objects into distinguishable boxes with exclusion
- We want to distribute k balls, numbered from 1 to k, into n boxes, numbered from 1 to n, so that no box gets more than one ball.
- Equivalent to making an ordered selection of k boxes from n boxes, where the balls do the selecting for us:
- the ball labelled 1 chooses the first box.
- ball labelled 2 gets 2nd box.
- etc
- Theorem:
- Distributing distinguishable balls into n distinguishable boxes, with exclusion, is equivalent to forming a permutation of size from a set of size .
- Therefore, the number of ways of placing k distinguishable balls into n distinguishable boxes is as follows:
- Distinguishable objects into distinguishable boxes without exclusion
- In this case, we want to distribute k balls, numbered from 1 to k, into n boxes, numbered from 1 through n, without restrictions on the number of balls in each box
- This is equivalent to making an ordered selection of k boxes from n, with repetition, where the balls do the selecting for us:
- the ball labelled 1 chooses the first box.
- the ball labelled 2 chooses the 2nd box.
- so on...
- Theorem:
- Distributing k distinguishable balls into n distinguishable boxes, without exclusion, is equivalent to forming a permutation of size k from a set of size n, with repetition.
- Therefore, there are:
- different ways
- Indistinguishable objects into distinguishable boxes with exclusion.
- In this case, we want to distribute k balls, into n boxes, numbered from 1 through n, in such a way that no box receives more than one ball.
- Theorem:
- Distributing k indistinguishable balls into n distinguishable boxes, with exclusion, is equivalent to forming a combination of size k from a set of size n.
- Therefore, there are:
- different ways.
- Indistinguishable objects into distinguishable boxes without exclusion.
- Want to distribute k balls, into n boxes, numbered from 1 through n, without restrictions on the number of balls in each box.
- Theorem:
- Distributing k indistinguishable balls into n distinguishable boxes, without exclusion, is equivalent to forming a combination of size k from a set of size n, with repetition.
- Therefore, there are:
- different ways.
- Example
- How many ways are there of placing 8 indistinguishable balls into 6 distinguishable boxes?
- How many ways are there of placing 8 indistinguishable balls into 6 distinguishable boxes?
Week 20 - Peer-graded Assignment: 10.208 Combinatorics
Question
Find the number of positive integers not exceeding 2310.
Find the number of positive integers not exceeding 2310 that are either the square or the cube of an integer. Hint: use the subtraction rule, also known as the principle of inclusion-exclusion.
Let be the set of all positive integers not exceeding 2310.
And the set of all positive integers, perfect square and not exceeding 2310.
And , the set of all positive integers, perfect cube and not exceeding 2310
Answer
Let be set of all positive integers not exceeding 2310.
Let be the set of all positive integers that are a perfect square and not exceeding 2310.
Let be the set of all positiev integers that are a perfect cube and not exceeding 2310.
To find the number of positive integers not exceeding 2310 that are either the square or the cube of an integer, we want to find:
Using the inclusion-exclusion rule, we know that:
We know that:
Therefore: