Practice Exam 3

Time
75 minutes, closed book, no calculator
Part 1
22 multiple choice · 94 pts
Part 2
8 free response · 100 pts
Self-graded
0 / 30
75:00
Take it like the real thing: paper, pencil, a 75-minute timer. Leave answers as unsimplified expressions like C(12, 4) · 25 where you'd have to multiply big numbers by hand. Afterwards, grade each question and redo every miss. This exam is a bit longer than the real one, so finishing early is a good sign.

Part 1 · Multiple Choice

Questions 1–8 are worth 3 points each; 9–22 are worth 5 points each.

1. 3 pts 5.3 Recursive sets

Let be defined by: ; if then . Is ?

  • (A) Yes
  • (B) No
Answer
Answer

(A)

: three applications of the rule take .

2. 3 pts 5.2 Strong induction

Can a postage of 7 cents be formed using only 3-cent and 5-cent stamps?

  • (A) Yes
  • (B) No
Answer
Answer

(B)

isn't a multiple of 3, isn't either, and there's no room for two 5s. That's why the 3/5 stamp proof starts at .

3. 3 pts 5.2 Well-ordering

True or false: every nonempty subset of has a least element.

  • (A) True
  • (B) False
Answer
Answer

(B)

itself (or the negative integers) has no least element. The well-ordering property is about nonnegative integers.

4. 3 pts 6.3 Combinations

True or false: .

  • (A) True
  • (B) False
Answer
Answer

(A)

Symmetry: and .

5. 3 pts 6.1 Product rule

True or false: the number of functions from a 3-element set to a 4-element set is 81.

  • (A) True
  • (B) False
Answer
Answer

(B)

Functions : . ( has the exponent backwards.)

6. 3 pts 6.2 Pigeonhole

True or false: in any group of 13 people, at least two were born in the same month.

  • (A) True
  • (B) False
Answer
Answer

(A)

13 people (pigeons), 12 months (holes). .

7. 3 pts 6.4 Binomial theorem

True or false: the coefficient of in is 10.

  • (A) True
  • (B) False
Answer
Answer

(A)

.

8. 3 pts 6.5 Combinations w/ repetition

True or false: the number of ways to choose 3 donuts from 5 kinds (repetition allowed, order irrelevant) is .

  • (A) True
  • (B) False
Answer
Answer

(B)

Repetition allowed: .

9. 5 pts 5.3 Computing values

Let and for . What is ?

  • (A) 14
  • (B) 41
  • (C) 40
  • (D) 122
  • (E) 123
Answer
Answer

(B)

, , .

10. 5 pts 5.3 Recursive sets

Which is a recursive definition of ?

  • (A) ; if then
  • (B) ; if then
  • (C) ; if then
  • (D) ; if then
Answer
Answer

(C)

The set is : start at 1, add the period 4. (A) gives all of ; (B) gives ; (D) gives

11. 5 pts 5.3 Structural induction

Let be defined by: ; if then and . Which statement is true for every element of ?

  • (A) is odd
  • (B) is even
  • (C) is a power of 2
  • (D)
Answer
Answer

(B)

Structural induction: 2 is even, and the sum and product of even numbers are even. (C) fails: . (D) fails: .

12. 5 pts 5.3 Full binary trees

A full binary tree has 9 vertices. Which of these is impossible for its height ?

  • (A) 2
  • (B) 3
  • (C) 4
  • (D) All of these are possible
Answer
Answer

(A)

From the two structural-induction facts: and .

  • : at most vertices. Impossible.
  • : need ✓ (a "caterpillar" tree).
  • : e.g. a root with a complete height-2 subtree (7 vertices) and a single leaf: ✓.
13. 5 pts 5.3 Full binary trees

A full binary tree has 10 internal vertices. How many leaves does it have?

  • (A) 9
  • (B) 10
  • (C) 11
  • (D) 20
  • (E) 21
Answer
Answer

(C)

(5.3 #46).

14. 5 pts 5.3 Ackermann

Using the textbook's Ackermann function (; and for ; for ), find .

  • (A) 6
  • (B) 8
  • (C) 9
  • (D) 16
Answer
Answer

(B)

, , so .

15. 5 pts 6.1 Inclusion–exclusion

How many bit strings of length 8 begin with 1 or end with 00?

  • (A) 192
  • (B) 176
  • (C) 160
  • (D) 128
  • (E) 96
Answer
Answer

(C)

.

16. 5 pts 6.1 Inclusion–exclusion

How many positive integers not exceeding 120 are divisible by 4 or 6?

  • (A) 50
  • (B) 44
  • (C) 40
  • (D) 36
  • (E) 30
Answer
Answer

(C)

. Use .

17. 5 pts 6.2 Pigeonhole

What is the minimum number of cards that must be drawn from a standard 52-card deck to guarantee at least 4 cards of the same suit?

  • (A) 4
  • (B) 12
  • (C) 13
  • (D) 16
  • (E) 40
Answer
Answer

(C)

suits, : . (12 cards could be 3 of each suit.)

18. 5 pts 6.3 Permutations

How many permutations of the letters ABCDEF contain both of the strings AB and CD?

  • (A) 12
  • (B) 24
  • (C) 48
  • (D) 120
  • (E) 720
Answer
Answer

(B)

Units: [AB], [CD], E, F, which is 4 units, so .

19. 5 pts 6.4 Binomial theorem

What is the coefficient of in ?

  • (A) −80
  • (B) −40
  • (C) 40
  • (D) 80
  • (E) 10
Answer
Answer

(D)

General term . With : .

20. 5 pts 6.5 Stars and bars

How many solutions does have in nonnegative integers with ?

  • (A) 36
  • (B) 45
  • (C) 55
  • (D) 66
  • (E) 120
Answer
Answer

(B)

Give 2 to first, leaving 8 for 3 variables: .

21. 5 pts 6.5 Indistinguishable objects

How many different strings can be formed by rearranging the letters of BANANA?

  • (A) 720
  • (B) 120
  • (C) 60
  • (D) 36
  • (E) 20
Answer
Answer

(C)

B×1, A×3, N×2: .

22. 5 pts 6.4 Binomial theorem

What is ?

  • (A) 64
  • (B) 128
  • (C) 384
  • (D) 729
  • (E) 4096
Answer
Answer

(D)

Binomial theorem with , : .

Part 2 · Free Response

Show all work. Partial credit is possible, so use ½ when self-grading.

1. 12 pts 5.2 Strong induction

Use strong induction to prove that every amount of postage of 20 cents or more can be formed using just 5-cent and 6-cent stamps.

(a) [4 pts] Complete the basis step.
(b) [2 pts] State the inductive hypothesis precisely.
(c) [6 pts] Complete the inductive step and the conclusion.

Answer

Let : " cents of postage can be formed using only 5¢ and 6¢ stamps."

(a) Basis step. The inductive step will add a 5¢ stamp, so we need 5 consecutive base cases:

(b) Inductive hypothesis. Let be arbitrary. Assume is true for every integer with .

(c) Inductive step. We show . Since , we have , so by the IH cents can be formed. Adding one 5¢ stamp gives cents, so is true.

By strong induction, is true for every integer . ∎

Grading notes: −2 for fewer than 5 base cases; −2 if the IH is only ; −1 for not justifying .

2. 12 pts 5.3 Recursive definitions

(a) [4 pts] Let , , and for . Find .
(b) [4 pts] Give a recursive definition of the sequence , . Don't forget the basis step.
(c) [4 pts] Give a recursive definition of the set of positive integers that are not divisible by 4.

Answer
Answer

(a) 7, 17, 41, 99 (b) , (c) ;

(a) ; ; ; .

(b) Basis: . Recursive step: .
So and for . (Check: ✓)

(c) The set is (period 4). Basis: . Recursive: if then .

3. 12 pts 5.3 Structural induction

Let be the set of ordered pairs of integers defined by: Basis: . Recursive step: if , then and .

(a) [3 pts] List the elements of produced by the first two applications of the recursive step.
(b) [9 pts] Use structural induction to prove that for every .

Answer

(a) First application: , .
Second application: from : , ; from : , . New: .

(b)

  • Basis step: : and . ✓
  • Recursive step: Assume and (IH). Check both rules:
    • . Since and , divides the sum. ✓
    • , divisible by 4 for the same reason. ✓

By structural induction, for all . ∎

4. 12 pts 5.3 Strings

Let be an alphabet. Length is defined by and for , . You may use .

(a) [4 pts] Give a recursive definition of the reversal of a string .
(b) [8 pts] Use structural induction to prove that for every .

Answer

(a) Basis: . Recursive: for and , .

(b) Let : .

  • Basis: , since . ✓
  • Recursive step: assume (IH) and let . Then

By structural induction, for all strings . ∎

5. 16 pts 6.1 / 6.3 Counting

A club has 12 members: 7 seniors and 5 juniors.

(a) [4 pts] In how many ways can a president, vice president, and treasurer be chosen (different people)?
(b) [4 pts] How many 5-person committees have exactly 3 seniors?
(c) [4 pts] How many 5-person committees have at least one junior?
(d) [4 pts] In how many ways can all 12 members stand in a line so that no two juniors are next to each other?

Answer
Answer

(a) 1320 (b) 350 (c) 771 (d)

(a) Titled positions, so order matters: .

(b) .

(c) Complement (all-senior committees): .

(d) Gap method: line up the 7 seniors (), creating 8 gaps; place the 5 juniors in 5 distinct gaps in order (). Total .

6. 12 pts 6.2 Pigeonhole

(a) [6 pts] Prove that among any 6 integers, there are two whose difference is divisible by 5.
(b) [6 pts] A drawer contains 10 red, 8 blue, and 6 green socks. Socks are drawn in the dark. How many must be drawn to guarantee:
(i) two socks of the same color?
(ii) three socks of the same color?
(iii) two blue socks?

Answer
Answer

(b) (i) 4 (ii) 7 (iii) 18

(a) Pigeons: the 6 integers. Holes: the remainders mod 5, , which is 5 holes. Since , two integers have the same remainder : , . Then is divisible by 5. ∎

(b)

  • (i) 3 colors: .
  • (ii) . (Six socks could be 2 of each color.)
  • (iii) Specific color, so think worst case: all 10 red and 6 green first (16), then 2 blue: .
7. 15 pts 6.4 / 6.5

(a) [5 pts] Find the coefficient of in .
(b) [5 pts] How many ways are there to choose 15 donuts from 6 kinds if you must take at least 2 of each kind?
(c) [5 pts] How many solutions does have in nonnegative integers with ?

Answer
Answer

(a) 20,412 (b) 56 (c) 955

(a) General term . With :

(b) Give 2 of each kind first ( donuts), leaving to choose freely from 6 kinds: .

(c) All solutions: . Bad ones (): give 5 to , leaving 15: . Answer: .

8. 9 pts 6.4 / 6.5

(a) [4 pts] Use the binomial theorem to prove that .
(b) [5 pts] How many different strings can be made by rearranging all the letters of TENNESSEE?

Answer
Answer

(b)

(a) By the binomial theorem, . Set , :
∎

(b) T×1, E×4, N×2, S×2 (9 letters): .

Score
Part 10 / 94
Part 20 / 100
Total 0 / 194 (0%)
0 of 30 questions graded