Exam 5: Sequences, Mathematical Induction, and Recursion
Exam 1: Speaking Mathematically13 Questions
Exam 2: The Logic of Compound Statements27 Questions
Exam 3: The Logic of Quantified Statements16 Questions
Exam 4: Elementary Number Theory and Methods of Proof28 Questions
Exam 5: Sequences, Mathematical Induction, and Recursion37 Questions
Exam 6: Set Theory19 Questions
Exam 7: Functions21 Questions
Exam 8: Relations19 Questions
Exam 9: Counting and Probability25 Questions
Exam 10: Graphs and Trees14 Questions
Exam 11: Analyzing Algorithm Efficiency22 Questions
Exam 12: Regular Expressions and Finite State Automata14 Questions
Select questions type
The following while loop is annotated with a pre- and post-condition and also a loop invariant.
Use the loop invariant theorem to prove the correctness of the loop with respect to the pre- and post-conditions.
Pre-condition: product and while
1.
2. product := product.
end while
Post-condition: product
loop invariant: is and product
(Essay)
4.9/5
(35)
A sequence satisfies the recurrence relation with initial conditions and . Find an explicit formula for the sequence.
(Essay)
4.9/5
(38)
A single pair of rabbits (male and female) is born at the beginning of a year. Assume the following conditions: (a) Rabbit pairs are not fertile during their first two months of life, but thereafter they give birth to four new male/female pairs at the end of every month; (b) No deaths occur. Let the number of pairs of rabbits alive at the end of month , for each integer , and let . Find a recurrence relation for Justify your answer carefully.
(Essay)
4.9/5
(37)
A sequence is defined recursively as follows:
It is proposed that an explicit formula for this sequence is
Use mathematical induction to check whether this proposed formula is correct.
(Essay)
4.8/5
(26)
Use repeated division by 2 to find the binary representation of the number 1032. Show your work.
(Essay)
4.8/5
(31)
Transform the following summation by making the change of variable i = k + 1:
(Essay)
4.8/5
(34)
Use the recursive definition of summation together with mathematical induction to prove that for all positive integers , if and are real numbers, then
(Essay)
4.9/5
(31)
Define a set recursively as follows:
I. BASIS:
II. RECURSION:
a. If , then and
b. If is any string (including the null string) such that , then and III. RESTRICTION: No strings other than those derived from I and II are in .
a. Is ? Justify your answer.
b. Is ? Justify your answer.
(Essay)
4.9/5
(41)
Suppose a certain amount of money is deposited into an account paying annual interest, compounded quarterly (i.e., four times a year). For each positive integer , let the amount on deposit at the end of the th quarter, and let be the initial amount deposited.
(a) Find a recurrence relation for , assuming no additional deposits or withdrawals for a 3-year period.
(b) If , find the amount of money on deposit at the end of three years.
(c) Find the APR for the account.
(Essay)
4.9/5
(32)
Use iteration to find an explicit formula for the sequence defined recursively as follows:
=2+3 for all integers k\geq1 =1.
If appropriate, simplify your answer using one of the following reference formulas:
(a) for all integers .
(b) for all integers and all real numbers .
(Essay)
4.8/5
(42)
In a Double Tower of Hanoi with Adjacency Requirement there are three poles in a row and
2n disks, two of each of n different sizes, where n is any positive integer. Initially pole A (at
one end of the row) contains all the disks, placed on top of each other in pairs of decreasing
size. Disks may only be transferred one-by-one from one pole to an adjacent pole and at no
time may a larger disk be placed on top of a smaller one. However a disk may be placed on
top of another one of the same size. Let C be the pole at the other end of the row and let
(a) Find and .
(b) Find a recurrence relation expressing in terms of for all integers . Justify your answer carefully.
(Essay)
4.9/5
(28)
Use the formula
(for all real numbers and for all integers ) to find
where m is an integer that is at least 1.
(Essay)
4.8/5
(40)
In a Triple Tower of Hanoi, there are three poles in a row and 3n disks, three of each of n
different sizes, where n is any positive integer. Initially, one of the poles contains all the disks
placed on top of each other in triples of decreasing size. Disks are transferred one by one from one pole to another, but at no time may a larger disk be placed on top of a smaller disk.
However, a disk may be placed on top of one of the same size. Let
be the minimum number of moves needed to transfer a tower of 3n disks from one pole to another. Find a recurrence relation for Justify your answer carefully.
(Essay)
4.8/5
(36)
Use strong mathematical induction to prove that for all integers
either n is prime or n is a product of prime numbers.
(Essay)
4.8/5
(35)
Showing 21 - 37 of 37
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)