| CS 242, Section 002 | Sonoma State University | Spring, 2026 |
|
Discrete Structures for Computer Science
|
||
|
Instructor: Henry M. Walker
Lecturer, Sonoma State University | ||
Notes:
A Proof by Induction:
Let P(n) be the statement that
\( 1 + \frac{1}{4} + \frac{1}{9} + . . . + + \frac{1}{n^2} < 2 - \frac{1}{n} \)
where n is an integer greater than 1.
Flavors of Ice Cream: The following claims to prove that all ice cream flavors are equally tasty. Since the result is clearly false, identify the specific error in this argument. (For example, at what step does this argument fail and why.)
Induction Hypothesis: Let P(n) be the predicate
if {IC1, IC2, IC3, ...,
ICn} is any set of ice cream flavors. Then each of
the flavors in the set are equally tasty.
For convenience in notation, we will use an equal sign (=) to
indicate flavors are equally tasty.
IC1 = IC2 = IC3 = ... = ICn
Proof by Induction on n.
Base case: When n = 1,
Let {IC1} be any set with 1 flavor of ice cream. Then, only 1 flavor is represented, so all flavors in the set is equally tasty.Inductive case: Assume P(n) and prove P(n+1).
Set S = {IC1, IC2, IC3, ... ICn, ICn+1}
be any set of n+1 flavors of ice cream. Now consider
subsets
IC1 = IC2 = IC3 = ... = ICn = ICn+1 This proves P(n+1). |
Postage from 3-cent and 5-cent stamps:
Prove that any amount of postage worth 8 cents or more can be
made from 3-cent or 5-cent stamps.
Note: This exercise is taken from Exercise 8.6.1a in the
zyBook text.
|
created October 25, 2025 revised October-November, 2025 |
|
| For more information, please contact Henry M. Walker at walker@cs.grinnell.edu. |