Exercise 0.1: Counting with the four formulas: ten direct calculations
For each line, compute the number asked for, as an exact value. The lines without a sentence are expressions to evaluate; the others name the selection model or the object to count.
One method only: SIMPLIFY before multiplying. A quotient of factorials reduces by cancelling the smaller one, ; a binomial coefficient is computed by with the smaller of the two possible values of , since ; a sum of binomial coefficients is read off Pascal's triangle; and an “at least” is counted through the complement.
- a) .
- b) The number of permutations , that is, of ordered lists of distinct elements chosen from .
- c) , by the formula.
- d) .
- e) The number of strings of symbols taken from an alphabet of , repetitions allowed.
- f) The number of ways to choose items from types, unordered and with repetition.
- g) The number of anagrams of the word COCORICO.
- h) .
- i) The coefficient of in the expansion of .
- j) The number of subsets with at least elements of a set with elements.
Show the solution
Answers
- a) ;
- b) ;
- c) ;
- d) ;
- e) ;
- f) ;
- g) ;
- h) ;
- i) ;
- j) ;
The move that decides everything: never compute a whole factorial when it simplifies. has nineteen digits, whereas comes down to three factors divided by . The second move is to choose the model with two questions: does the order matter, and can we repeat?
. Pitfall: simplifying the numbers themselves, as if were equal to , which makes no sense.
: four decreasing factors starting from .
. Simplify before multiplying: and , hence .
By symmetry, . Pitfall: applying the formula with , seventeen factors in the numerator and in the denominator, for the same result at the price of many possible errors.
Ordered with replacement: each of the positions has choices, so . Pitfall: taking , by swapping the number of positions and the number of choices.
Unordered with replacement: . Pitfall: , which forbids repetition.
COCORICO has letters: C three times, O three times, R and I once each. . Pitfall: , which counts as different the words obtained by swapping two C's or two O's.
The complete row is worth ; the term is missing here, so the sum is . Pitfall: answering without noticing that the sum starts at .
Binomial theorem: the term in is . The coefficient is . Pitfall: forgetting the power of , which gives , or the sign of , which gives .
Through the complement: a set with elements has subsets; remove the empty set, , and the eight singletons, . That leaves . Pitfall: removing only the singletons, which gives .
Check: a binomial coefficient is always an integer, so a division that does not come out even signals a mistake; symmetry is checked on one case, ; and in i), the sum of the coefficients of is , which checks a full expansion.
Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.