
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Fall 2009 CMSC 250: Homework 7 Perlis
Due at the start of discussion section Wednesday, October 28, 2009.
Please staple your homeworks together if you use more than one page.
Problem 1. (1 point) Print your name , section number , and your TAโs name.
Problem 2. (1 point) When is the SECOND exam? (NOT Oct. 20!) |
Problem 3. (24 points) Consider the sequence ๐๐ = 2 โ ๐๐โ 1 + 8 โ ๐๐โ 2 , where ๐ 0 = 1 and ๐ 1 = 4. Prove that ๐๐ = 2^2 ๐^ using strong induction.
Problem 4. (24 points) Find a formula for ๐๐ such that ๐๐=1 ๐^2 = ๐๐. Using constructive induction, prove and find a formula at the same time.
Problem 5. (25 points) Start with a pile of n pieces of candy. Split it into two (non-empty piles), of sizes say ๐ and ๐. You get paid ๐๐ dollars. Keep splitting piles and getting paid based on the sizes of the new piles until all piles are of size 1.
For example start with four candies. Split into two piles of size two each and get paid 2 โ 2 = 4 dollars. Each of those piles is split into two piles of size one and you get paid 1 โ 1 = 1 dollar for each pile. The total is 6 dollars. Alternatively split the original pile into one and three and get paid 1 โ 3 = 3 dollars. Split the three piles into a one and two and get paid 1 โ 2 = 2 dollars. Split the two piles into a one and one and get paid 1 โ 1 = 1 dollar. The total is 6 dollars. Use strong induction to show that for ๐ candies, no matter how you split the piles, at the end you are paid exactly ๐ ๐โ 1 2 dollars.
Problem 6. (25 points) Consider a stone path that is ๐ feet long and 1 foot wide. There are three type of stones that may be used: Block type A, which is 1 ร 1 square, Block type B, which is 2 ร 1 rectangle, and Block type C, which is 2 ร 1 right triangle. For a path of a given length, there are many ways to pave it. For example there are 11 ways to fill a 4 foot path with type A, B and C stones:
A A A A
Prove that there are 1 3 2
๐+1 (^) ways to pave a path of length ๐, for ๐ โฅ 1 , using strong induction.