The function F: Z+Z+ is defined recursively as follows: F(1) =1, F(2)=2, and F(n) = F...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The function F: Z+Z+ is defined recursively as follows: F(1) =1, F(2)=2, and F(n) = F ([]) + F ([]) -1 for n 3. (i) Calculate the value of F(9). (ii) Use strong induction to prove that F(n) n for every positive integer n. (Suggestion: Recall the inequalities for floor and ceiling functions in Table 1 in Section 2.3.) C.2. A set S of bit strings is defined recursively as follows. Basis step: A S. Recursive step: If w S, then wl S, w01 S, and w10 S. (i) Show that 0111001 S. (ii) For a string w, let P(w) be the statement "The number of 0's in wis less than or equal to the number of 1's in w." Use structural induction to prove that P(w) is true for every string w in S. (iii) Find an example of a string v such that P(v) is true and v S. Explain how you know that your example is not in S. C.3. You have an unlimited supply of blocks of heights 1, 2, and 4 centime tres. You can construct a tower by piling blocks on top of one another. For each positive integer n, let T be the number of different ways to build a tower of height n cm. (E.g. a tower of height of height 3 cm could be made with three 1-cm blocks, or a 1 cm block on top of a 2-cm block, or a 2-cm block on top of a 1-cm block; thus T3 = 3.) Note that the order of blocks matters when we count all the different ways. (i) Find a recurrence relation for the sequence T. Also state the initial conditions. (ii) Use the results of part (i) to calculate the number of different ways to build a tower of height 8 cm. The function F: Z+Z+ is defined recursively as follows: F(1) =1, F(2)=2, and F(n) = F ([]) + F ([]) -1 for n 3. (i) Calculate the value of F(9). (ii) Use strong induction to prove that F(n) n for every positive integer n. (Suggestion: Recall the inequalities for floor and ceiling functions in Table 1 in Section 2.3.) C.2. A set S of bit strings is defined recursively as follows. Basis step: A S. Recursive step: If w S, then wl S, w01 S, and w10 S. (i) Show that 0111001 S. (ii) For a string w, let P(w) be the statement "The number of 0's in wis less than or equal to the number of 1's in w." Use structural induction to prove that P(w) is true for every string w in S. (iii) Find an example of a string v such that P(v) is true and v S. Explain how you know that your example is not in S. C.3. You have an unlimited supply of blocks of heights 1, 2, and 4 centime tres. You can construct a tower by piling blocks on top of one another. For each positive integer n, let T be the number of different ways to build a tower of height n cm. (E.g. a tower of height of height 3 cm could be made with three 1-cm blocks, or a 1 cm block on top of a 2-cm block, or a 2-cm block on top of a 1-cm block; thus T3 = 3.) Note that the order of blocks matters when we count all the different ways. (i) Find a recurrence relation for the sequence T. Also state the initial conditions. (ii) Use the results of part (i) to calculate the number of different ways to build a tower of height 8 cm.
Expert Answer:
Related Book For
Discrete Mathematics and Its Applications
ISBN: 978-0073383095
7th edition
Authors: Kenneth H. Rosen
Posted Date:
Students also viewed these mathematics questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Python and most Python libraries are free to download or use, though many users use Python through a paid service. Paid services help IT organizations manage the risks associated with the use of...
-
The production of paper involves a pulping step to break down wood chips into cellulose and lignin. In the Kraft process, an aqueous, pulping-feed solution, known as white liquor, is used that...
-
Suppose that a group of physicians establishes a joint practice in a remote area. This group provides the only health care available to people in the local community, and its objective is to maximize...
-
Write a method stdev that computes the standard deviation of an array of real numbers. The formula for computing a standard deviation of N values is the following, where x i represents each i th...
-
Write a code to test a Gaussian pseudorandom number generator. If you do not have a canned generator available, write a generator based on the Box-Muller algorithm in Appendix I. Apply the following...
-
Brainiac Company purchased a delivery truck for $30,000 on January 1, 2010.The truck has an expected salvage value of $2,000, and is expected to be driven 100,000 miles over its estimated useful life...
-
choose the closest answer find the annual total cost of inventory. if the company using their present lot size do not use the EOQ be sure to use the present lot size . unit cost$5, ordering cost...
-
If you have a subnet mask of 255.255.255.248, how many network bits and how many host bits are there? Group of answer choices 20 network bits, 12 host bits 26 network bits, 8 host bits 28 network...
-
What does sales volume variance mean?
-
What is the fixed overhead volume variance?
-
A company pays a cost of $7.00 per unit at a volume of 10,000 units and $2.00 per unit above 10,000 units. Calculate the total cost when the company uses 9,000 units, 12,000 units, and 15,000 units.
-
How is the profit margin ratio calculated?
-
What are the cost centers in responsibility reports?
-
Two corporations A and B have exactly the same risk, and both have a current stock price of $100. Corporation A pays no dividend and will have a price of $120 one year from now. Corporation B pays...
-
What types of questions can be answered by analyzing financial statements?
-
A group of six people play the game of "odd person out" to determine who will buy refreshments. Each person flips a fair coin. If there is a person whose outcome is not the same as that of any other...
-
Suppose that a department contains 10 men and 15 women. How many ways are there to form a committee with six members if it must have the same number of men and women?
-
Give six examples of well-formed formulae with three or more operators in postfix notation over the set of symbols {x, y, z} and the set of operators {+,, }.
-
Crane l uses 10 kJ of energy to lift a 50 kg box to the roof of a building. Crane 2 uses 20 kl to lift a 100 kg box the same distance. Which crane is more efficient? A. Crane 1 B. Crane 2 C. Both...
-
Christina throws a javelin into the air. As she propels it forward from rest, she does 270 J of work on it. At its highest point, its gravitational potential energy has increased by 70 J. What is the...
-
Two samples of ideal gas, sample 1 and sample 2, have the same thermal energy. Sample l has twice as many atoms as sample 2. What can we say about the temperatures of the two samples? A. T>T B. T = T...
Study smarter with the SolutionInn App