In how many different ways can five elements be selected in order from a set with three elements when repetition is allowed?
Show solution
Ordered with repetition: .
In how many different ways can five elements be selected in order from a set with three elements when repetition is allowed?
Ordered with repetition: .
How many strings of six letters are there?
Six positions, 26 choices each: .
How many ways are there to assign three jobs to five employees if each employee can be given more than one job?
Each job independently chooses an employee (5 ways), and repeats are allowed: .
Watch the direction: it's , not . Equivalently, count functions from jobs to employees: .
How many ways are there to select three unordered elements from a set with five elements when repetition is allowed?
types, items: .
A bagel shop has 8 kinds of bagels: onion, poppy seed, egg, salty, pumpernickel, sesame seed, raisin, and plain. How many ways are there to choose
a) six bagels?
b) a dozen bagels?
c) two dozen bagels?
d) a dozen bagels with at least one of each kind?
e) a dozen bagels with at least three egg bagels and no more than two salty bagels?
a) 1716 b) 50,388 c) 2,629,575 d) 330 e) 9724
types; formula .
a)
b)
c)
d) Give one of each first (8 bagels), leaving 4 free: .
e) Give 3 egg bagels first, leaving 9 to choose with salty .
Answer: .
How many ways are there to choose eight coins from a piggy bank containing 100 identical pennies and 80 identical nickels?
9
Two types, 8 items (supply is plentiful): .
Directly: the number of pennies can be , which determines the selection. That's 9 ways.
A book publisher has 3000 copies of a discrete mathematics book. How many ways are there to store these books in their three warehouses if the copies of the book are indistinguishable?
Solutions of with : .
How many solutions are there to the equation , where are nonnegative integers?
variables, : .
How many solutions are there to , where each is a nonnegative integer such that
a) ?
b) for ?
c) ?
d) , , and ?
a) 10,626 b) 1,365 c) 11,649 d) 106
5 variables, so the count for total is .
a) Give 1 to : total 20. .
b) Give 2 to each (10 total): remaining 11. .
c) All: . Bad (): remaining 10, . Answer .
d) Lower bounds first: give 1 and 15, leaving . Let , so now and , and the sum of the five variables is 5.
Inclusion–exclusion: .
How many solutions are there to , where each is a nonnegative integer such that
a) for ?
b) , , , , , and ?
c) ?
d) and ?
a) 26,334 b) 792 c) 179,976 d) 46,942
6 variables, so the count for total is .
a) means ; give out 12, leaving 17: .
b) means . Minimums sum to , leaving 7: .
c) All: . Bad (): leaving 23, . Answer: .
d) means : give 9, leaving 20. Now :
Answer .
How many strings of 10 ternary digits (0, 1, or 2) are there that contain exactly two 0s, three 1s, and five 2s?
Arrange 10 symbols with repeats: .
(Or: .)
How many solutions are there to the inequality , where are nonnegative integers?
Add a slack variable . Solutions of the inequality correspond one-to-one with solutions of
Count: .
How many different strings can be made from the letters in MISSISSIPPI, using all the letters?
M×1, I×4, S×4, P×2 (total 11):
How many different strings can be made from the letters in ABRACADABRA, using all the letters?
A×5, B×2, R×2, C×1, D×1 (total 11):
How many different strings can be made from the letters in AARDVARK, using all the letters, if all three As must be consecutive?
Letters: A×3, R×2, D, V, K. Glue AAA into one block. Now arrange 6 objects: [AAA], R, R, D, V, K, where the two Rs are identical:
How many different strings can be made from the letters in ORONO, using some or all of the letters?
63
Letters: O×3, R×1, N×1. Split by length.
| Length | Cases | Count |
|---|---|---|
| 1 | O, R, N | 3 |
| 2 | OO (1); two different letters from {O,R,N}: | 7 |
| 3 | OOO (1); OO + R or N: ; O,R,N: | 13 |
| 4 | OOO + R or N: ; OO,R,N: | 20 |
| 5 | OOO,R,N: | 20 |
Total: .
How many strings with five or more characters can be formed from the letters in SEERESS?
370
Letters: S×3, E×3, R×1 (7 total).
Length 7 (all): .
Length 6 (drop one letter):
Total .
Length 5 (drop two letters):
Total .
Answer: .
How many strings with seven or more characters can be formed from the letters in EVERGREEN?
19,635
Letters: E×4, R×2, V, G, N (9 total).
Length 9: .
Length 8 (drop one):
Total .
Length 7 (drop two):
Total .
Answer: .
How many different bit strings can be formed using six 1s and eight 0s?
: choose the positions of the six 1s.
How many different terms are there in the expansion of after all terms with identical sets of exponents are added?
Each term is with and . Count the solutions (stars and bars, variables, total ):
Prove the Multinomial Theorem: if is a positive integer, then
Expand the product of factors . Each term of the expansion picks one from each factor, so every term has the form with .
The term appears once for each way of deciding which factors contribute , which contribute , and so on. That's the number of ways to arrange labels consisting of "1"s, "2"s, …, ""s, which by Theorem 3 is . Collecting like terms gives the formula. ∎
Find the expansion of .
15 terms: coefficients 1 ( type), 4 ( type), 6 ( type), 12 ( type)
Exponent patterns with , coefficient :
Check: 15 terms , and the coefficients sum to . ✓
Find the coefficient of in .
Multinomial coefficient: .
How many terms are there in the expansion of ?
By #64 with , : .
a) How many ways can ABBCCCDDDDEEEEE be permuted?
b) Find the number of 6-combinations of with repetition allowed.
c) How many ways are there to select 5 pieces of fruit from apples, oranges, and pears (at least 5 of each available)?
d) How many solutions does have with all ?
e) How many ways are there to select 8 bills from 1, 2, 5, 10, 20, 50, and 100 dollar bills (at least 8 of each)?
a) b) 84 c) 21 d) 560 e) 3003
a) 15 letters: A×1, B×2, C×3, D×4, E×5: .
b) , : .
c) , : .
d) , : .
e) , : .