Chapter 5: Q32E (page 359)
(a) Give a recursive definition of the function ones (s) , which counts the number of ones in a bit string s.
(b) Use structural induction to prove that ones (st) = ones (s) + ones (t) .
Chapter 5: Q32E (page 359)
(a) Give a recursive definition of the function ones (s) , which counts the number of ones in a bit string s.
(b) Use structural induction to prove that ones (st) = ones (s) + ones (t) .
All the tools & learning materials you need for study success - in one app.
Get started for freea) Find a formula for
by examining the values of this expression for small
values of n.
b) Prove the formula you conjectured in part (a).
Prove that if n is an integer greater than 4.
Prove that 21 divides whenever n is a positive integer.
Let be the statement that in a triangulation of a simple polygon with sides, at least one of the triangles in the triangulation has two sides bordering the exterior of the polygon.
a) Explain where a proof using strong induction that is true for all integers runs into difficulties.
b) Show that we can prove that is true for all integers by proving by strong induction the stronger statement for all integers , which states that in every triangulation of a simple polygon, at least two of the triangles in the triangulation have two sides bordering the exterior of the polygon.
Prove that whenever n is a positive integer.
What do you think about this solution?
We value your feedback to improve our textbook solutions.