Chapter 5: Q38E (page 359)
Give a recursive definition of the set of bit strings thatx are palindromes.
Short Answer
The recursive definition of reversal of strings is derived.
Chapter 5: Q38E (page 359)
Give a recursive definition of the set of bit strings thatx are palindromes.
The recursive definition of reversal of strings is derived.
All the tools & learning materials you need for study success - in one app.
Get started for freeConsider this variation of the game of Nim. The game begins with n matches. Two players take turns removing matches, one, two, or three at a time. The player removing the last match loses. Using strong induction to show that if each player plays the best strategy possible, the first player wins if or for some nonnegative integer jand the second player wins in the remaining case when for some nonnegative integer j.
Suppose you begin with a pile of n stones and split this pile into n piles of one stone each by successively splitting a pile of stones into two smaller piles. Each time you split a pile of stones into two smaller piles. Each time you split a pile you multiply the number of stones in each of the two smaller piles you form, so that if piles haver and s stones in them, respectively, you compute rs. Show that no matter how you split the piles, the sum of the products computed at each step equals .
(a) Determine which amounts of postage can be formed using just 4-cent and 11-cent stamps.
(b) Prove your answer to (a) using the principle of mathematical induction. Be sure to state explicitly your inductive hypothesis in the inductive step.
(c) Prove your answer to (a) using strong induction. How does the inductive hypothesis in this proof differ from that in the inductive hypothesis for a proof using mathematical induction?
Prove that the first player has a winning strategy for the game of Chomp, introduced in Example 12 in Section 1.8, if the initial board is two squares wide, that is, a board. [Hint: Use strong induction. The first move of the first player should be to Chomp the cookie in the bottom row at the far right.]
Prove that where n is a nonnegative integer.
What do you think about this solution?
We value your feedback to improve our textbook solutions.