Let be defined by: ; if then . Is ?
- (A) Yes
- (B) No
Answer
(A)
: three applications of the rule take .
Questions 1–8 are worth 3 points each; 9–22 are worth 5 points each.
Let be defined by: ; if then . Is ?
(A)
: three applications of the rule take .
Can a postage of 7 cents be formed using only 3-cent and 5-cent stamps?
(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 .
True or false: every nonempty subset of has a least element.
(B)
itself (or the negative integers) has no least element. The well-ordering property is about nonnegative integers.
True or false: .
(A)
Symmetry: and .
True or false: the number of functions from a 3-element set to a 4-element set is 81.
(B)
Functions : . ( has the exponent backwards.)
True or false: in any group of 13 people, at least two were born in the same month.
(A)
13 people (pigeons), 12 months (holes). .
True or false: the coefficient of in is 10.
(A)
.
True or false: the number of ways to choose 3 donuts from 5 kinds (repetition allowed, order irrelevant) is .
(B)
Repetition allowed: .
Let and for . What is ?
(B)
, , .
Which is a recursive definition of ?
(C)
The set is : start at 1, add the period 4. (A) gives all of ; (B) gives ; (D) gives
Let be defined by: ; if then and . Which statement is true for every element of ?
(B)
Structural induction: 2 is even, and the sum and product of even numbers are even. (C) fails: . (D) fails: .
A full binary tree has 9 vertices. Which of these is impossible for its height ?
(A)
From the two structural-induction facts: and .
A full binary tree has 10 internal vertices. How many leaves does it have?
(C)
(5.3 #46).
Using the textbook's Ackermann function (; and for ; for ), find .
(B)
, , so .
How many bit strings of length 8 begin with 1 or end with 00?
(C)
.
How many positive integers not exceeding 120 are divisible by 4 or 6?
(C)
. Use .
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?
(C)
suits, : . (12 cards could be 3 of each suit.)
How many permutations of the letters ABCDEF contain both of the strings AB and CD?
(B)
Units: [AB], [CD], E, F, which is 4 units, so .
What is the coefficient of in ?
(D)
General term . With : .
How many solutions does have in nonnegative integers with ?
(B)
Give 2 to first, leaving 8 for 3 variables: .
How many different strings can be formed by rearranging the letters of BANANA?
(C)
B×1, A×3, N×2: .
What is ?
(D)
Binomial theorem with , : .
Show all work. Partial credit is possible, so use ½ when self-grading.
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.
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 .
(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.
(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 .
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 .
(a) First application: , .
Second application: from : , ; from : , . New: .
(b)
By structural induction, for all . ∎
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 .
(a) Basis: . Recursive: for and , .
(b) Let : .
By structural induction, for all strings . ∎
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?
(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 .
(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?
(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)
(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 ?
(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: .
(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?
(b)
(a) By the binomial theorem, . Set , :
∎
(b) T×1, E×4, N×2, S×2 (9 letters): .