Docsity

CSCE 235: Discrete Structures Homework Assignment 6, Assignments of Computer Science

Toggle sidebar
bg1
CSCE 235: Introduction to Discrete Structures
Homework assignment 6 (92 points)
Assigned Monday, April 2, 2007
Due Monday, April 9, 2007
Problem 1. (12 points) Let an= 2n+ 5 ·3nfor n= 0,1,2, . . ..
(a) Find a0,a1,a2,a3, and a4.
(b) Show that a2= 5a1−6a0,a3= 5a2−6a1, and a4= 5a3−6a2.
(c) Show that an= 5an−1−6an−2for all integers nwith n≥2.
Problem 2. (16 points) Is the sequence {an}a solution of the recurrence relation an=
8an−1−16an−2if
(a) an= 0?
(b) an= 1?
(c) an= 2n?
(d) an= 4n?
(e) an=n4n?
(f) an= 2 ·4n+ 3n4n?
(g) an= (−4)n?
(h) an=n24n?
Problem 3. (12 points) Assume that the population of the world in 2007 is 6.6 billion and
that the population will grow at the constant rate of 1.14% each year.
(a) Set up a recurrence relation for the population of the world nyears after 2007.
(b) Find an explicit formula for the population of the world nyears after 2007.
(c) What will the population of the world be in 2027?
(d) When will the world population reach 10 billion?
Problem 4. (12 p oints) A vending machine dispensing books of stamps accepts only dollar
coins, $1 bills, and $5 bills.
(a) Find a recurrence relation for the number of ways to deposit ndollars into the machine,
where the order in which the coins and bills are deposited matters.
(b) What are the initial conditions?
(c) How many ways are there to deposit $10 for a book of stamps?
Problem 5. (10 points) Find the solution to the recurrence relation
an= 7an−1−10an−2for n≥2,
with initial conditions a0= 2 and a1= 1.
Problem 6. (10 points) Find the solution to the recurrence relation
an=−6an−1−9an−2for n≥2,
with initial conditions a0= 3 and a1=−3.
Problem 7. (10 points) Find the solution to the recurrence relation
an= 2an−1+ 5an−2−6an−3for n≥3,
with initial conditions a0= 7, a1=−4, and a2= 8.
Hint: You will need to use Theorem 3 on page 465 of the textbook.
Problem 8. (10 points) The Lucas numbers satisfy the recurrence relation
Ln=Ln−1+Ln−2for n≥2,
with the initial conditions L0= 2 and L1= 1. Find an explicit formula for the Lucas
numbers.
Page 1

Partial preview of the text

Download CSCE 235: Discrete Structures Homework Assignment 6 and more Assignments Computer Science in PDF only on Docsity!

CSCE 235: Introduction to Discrete Structures Homework assignment 6 (92 points) Assigned Monday, April 2, 2007 Due Monday, April 9, 2007

Problem 1. (12 points) Let an = 2n^ + 5 · 3 n^ for n = 0, 1 , 2 ,.. ..

(a) Find a 0 , a 1 , a 2 , a 3 , and a 4. (b) Show that a 2 = 5a 1 − 6 a 0 , a 3 = 5a 2 − 6 a 1 , and a 4 = 5a 3 − 6 a 2. (c) Show that an = 5an− 1 − 6 an− 2 for all integers n with n ≥ 2.

Problem 2. (16 points) Is the sequence {an} a solution of the recurrence relation an = 8 an− 1 − 16 an− 2 if

(a) an = 0? (b) an = 1? (c) an = 2n? (d) an = 4n?

(e) an = n 4 n? (f) an = 2 · 4 n^ + 3n 4 n? (g) an = (−4)n? (h) an = n^24 n?

Problem 3. (12 points) Assume that the population of the world in 2007 is 6.6 billion and that the population will grow at the constant rate of 1.14% each year.

(a) Set up a recurrence relation for the population of the world n years after 2007. (b) Find an explicit formula for the population of the world n years after 2007. (c) What will the population of the world be in 2027? (d) When will the world population reach 10 billion?

Problem 4. (12 points) A vending machine dispensing books of stamps accepts only dollar coins, $1 bills, and $5 bills.

(a) Find a recurrence relation for the number of ways to deposit n dollars into the machine, where the order in which the coins and bills are deposited matters. (b) What are the initial conditions? (c) How many ways are there to deposit $10 for a book of stamps?

Problem 5. (10 points) Find the solution to the recurrence relation

an = 7an− 1 − 10 an− 2 for n ≥ 2,

with initial conditions a 0 = 2 and a 1 = 1.

Problem 6. (10 points) Find the solution to the recurrence relation

an = − 6 an− 1 − 9 an− 2 for n ≥ 2,

with initial conditions a 0 = 3 and a 1 = −3.

Problem 7. (10 points) Find the solution to the recurrence relation

an = 2an− 1 + 5an− 2 − 6 an− 3 for n ≥ 3,

with initial conditions a 0 = 7, a 1 = −4, and a 2 = 8.

Hint: You will need to use Theorem 3 on page 465 of the textbook.

Problem 8. (10 points) The Lucas numbers satisfy the recurrence relation

Ln = Ln− 1 + Ln− 2 for n ≥ 2,

with the initial conditions L 0 = 2 and L 1 = 1. Find an explicit formula for the Lucas numbers.

Page 1