Generalized Permutations & Combinations

Textbook
Rosen 8e, Section 6.5
Study day
Tuesday, Nov 10
Homework
Written HW 9: 1–13 odd, 14–17, 20, 32–38, 64–68
Progress
Notes not read 0 / 25 problems graded
Work each problem on paper before opening its solution, then mark it Got it or Review. Do the Core problems first if you're short on time.
6.5 #1 Core Permutations w/ repetition

In how many different ways can five elements be selected in order from a set with three elements when repetition is allowed?

Show solution
Answer

Ordered with repetition: .

6.5 #3 Core Permutations w/ repetition

How many strings of six letters are there?

Show solution
Answer

Six positions, 26 choices each: .

6.5 #5 Core Permutations w/ repetition

How many ways are there to assign three jobs to five employees if each employee can be given more than one job?

Show solution
Answer

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: .

6.5 #7 Core Combinations w/ repetition

How many ways are there to select three unordered elements from a set with five elements when repetition is allowed?

Show solution
Answer

types, items: .

6.5 #9 Core Stars and bars

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?

Show solution
Answer

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 .

  • All ways to choose 9:
  • Bad (salty ): give 3 salty, leaving 6:

Answer: .

6.5 #11 Core Combinations w/ repetition

How many ways are there to choose eight coins from a piggy bank containing 100 identical pennies and 80 identical nickels?

Show solution
Answer

9

Two types, 8 items (supply is plentiful): .

Directly: the number of pennies can be , which determines the selection. That's 9 ways.

6.5 #13 Core Stars and bars

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?

Show solution
Answer

Solutions of with : .

6.5 #14 Core Equations

How many solutions are there to the equation , where are nonnegative integers?

Show solution
Answer

variables, : .

6.5 #15 Core Equations with bounds

How many solutions are there to , where each is a nonnegative integer such that

a) ?
b) for ?
c) ?
d) , , and ?

Show solution
Answer

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.

  • All:
  • : remaining 1:
  • : remaining 2:
  • Both: would need : 0

Inclusion–exclusion: .

6.5 #16 Core Equations with bounds

How many solutions are there to , where each is a nonnegative integer such that

a) for ?
b) , , , , , and ?
c) ?
d) and ?

Show solution
Answer

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 :

  • All:
  • : leaving 12,

Answer .

6.5 #17 Core Indistinguishable objects

How many strings of 10 ternary digits (0, 1, or 2) are there that contain exactly two 0s, three 1s, and five 2s?

Show solution
Answer

Arrange 10 symbols with repeats: .

(Or: .)

6.5 #20 Core Slack variable

How many solutions are there to the inequality , where are nonnegative integers?

Show solution
Answer

Add a slack variable . Solutions of the inequality correspond one-to-one with solutions of

Count: .

6.5 #32 Core Indistinguishable objects

How many different strings can be made from the letters in MISSISSIPPI, using all the letters?

Show solution
Answer

M×1, I×4, S×4, P×2 (total 11):

6.5 #33 Core Indistinguishable objects

How many different strings can be made from the letters in ABRACADABRA, using all the letters?

Show solution
Answer

A×5, B×2, R×2, C×1, D×1 (total 11):

6.5 #34 Core Indistinguishable + block

How many different strings can be made from the letters in AARDVARK, using all the letters, if all three As must be consecutive?

Show solution
Answer

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:

6.5 #35 Core Some or all letters

How many different strings can be made from the letters in ORONO, using some or all of the letters?

Show solution
Answer

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: .

6.5 #36 Core Some letters

How many strings with five or more characters can be formed from the letters in SEERESS?

Show solution
Answer

370

Letters: S×3, E×3, R×1 (7 total).

Length 7 (all): .

Length 6 (drop one letter):

  • drop S: S2 E3 R1 →
  • drop E: S3 E2 R1 →
  • drop R: S3 E3 →

Total .

Length 5 (drop two letters):

  • drop SS: S1 E3 R1 →
  • drop EE: S3 E1 R1 →
  • drop SE: S2 E2 R1 →
  • drop SR: S2 E3 →
  • drop ER: S3 E2 →

Total .

Answer: .

6.5 #37 Extra Some letters

How many strings with seven or more characters can be formed from the letters in EVERGREEN?

Show solution
Answer

19,635

Letters: E×4, R×2, V, G, N (9 total).

Length 9: .

Length 8 (drop one):

  • E → E3 R2 V G N:
  • R → E4 R1 V G N:
  • V, G, or N → E4 R2 + two singles: each, so

Total .

Length 7 (drop two):

  • EE → E2 R2 V G N:
  • E + R → E3 R1 V G N:
  • E + (V, G, or N) → E3 R2 + two singles: each, so
  • RR → E4 V G N:
  • R + (V, G, or N) → E4 R1 + two singles: each, so
  • two of {V, G, N} (3 ways) → E4 R2 + one single: each, so

Total .

Answer: .

6.5 #38 Core Indistinguishable objects

How many different bit strings can be formed using six 1s and eight 0s?

Show solution
Answer

: choose the positions of the six 1s.

6.5 #64 Core Multinomial

How many different terms are there in the expansion of after all terms with identical sets of exponents are added?

Show solution
Answer

Each term is with and . Count the solutions (stars and bars, variables, total ):

6.5 #65 Challenge Multinomial

Prove the Multinomial Theorem: if is a positive integer, then

Show solution

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. ∎

6.5 #66 Core Multinomial

Find the expansion of .

Show solution
Answer

15 terms: coefficients 1 ( type), 4 ( type), 6 ( type), 12 ( type)

Exponent patterns with , coefficient :

  • : →
  • : →
  • : →
  • : →


Check: 15 terms , and the coefficients sum to . ✓

6.5 #67 Core Multinomial

Find the coefficient of in .

Show solution
Answer

Multinomial coefficient: .

6.5 #68 Core Multinomial

How many terms are there in the expansion of ?

Show solution
Answer

By #64 with , : .

Custom (from lecture) Core Mixed Not from HW

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)?

Show solution
Answer

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) , : .