Presentation is loading. Please wait.

Presentation is loading. Please wait.

Week 5 - Wednesday.  What did we talk about last time?  Exam 1!

Similar presentations


Presentation on theme: "Week 5 - Wednesday.  What did we talk about last time?  Exam 1!"— Presentation transcript:

1 Week 5 - Wednesday

2  What did we talk about last time?  Exam 1!

3

4  People with assorted eye colors live on an island. They are all perfect logicians: If a conclusion can be logically deduced, they will do it instantly. No one knows their eye color. Every night at midnight, a ferry stops at the island. Any islanders who have figured out the color of their own eyes must leave the island, and the rest stay. Everyone can see everyone else at all times and keeps a count of the number of people they see with each eye color (excluding themselves), but they cannot otherwise communicate. Everyone on the island knows these rules.  On this island there are 100 blue-eyed people, 100 brown-eyed people, and the Guru (she happens to have green eyes). So any given blue-eyed person can see 100 people with brown eyes and 99 people with blue eyes (and one with green), but that does not tell him his own eye color; as far as he knows the totals could be 101 brown and 99 blue. Or 100 brown, 99 blue, and he could have red eyes.  The Guru is allowed to speak once, at noon, on one day in all their endless years on the island. Standing before the islanders, she says the following: "I can see someone who has blue eyes."  Who leaves the island, and on what night?

5

6  Mathematicians love patterns  Perhaps the best example of that is sequences  A sequence is a set of elements, usually numbers, written in order  Each element is called a term  We can number each term, calling that number the subscript or index  Sequences can be finite or infinite

7  What's the next term in each sequence?  1, 2, 3, 4, …  1, 4, 9, 16, …  1, 1, 2, 3, 5, …  1, 2, …  Wrong! The next term is 720!. Yes, that's actually factorial. What's the term after that?

8  It is often possible to use a formula to describe the relationship between the value of a subscript and the value of the corresponding term  Let term a k = k/(k + 1), for integers k  1  Let term b i = (i – 1)/i, for integers i  2  What are the first few terms of each?

9  It's important to note that not all sequences are monotonic  Give an explicit formula for 1, -3, 5, -7, 9, …

10  Summation notation is used to describe a summation of some part of a series  Expanded form is the summation written without the sigma  Compute the following:

11  1/n + 2/(n+1) + 3/(n+2) + … + (n+1)/(2n)  1/2 + 1/(2∙3) + 1/(3∙4) + … + 1/(n∙(n+1))

12  Product notation is used to describe a product of some part of a series  Expanded form is the product written without the pi  Compute the following:

13  n factorial is written n!  n! = n∙(n-1) ∙… ∙3 ∙2 ∙1  We define 0! to be 1, for reasons that will become clear later  Factorial grows fast, even faster than 2 n  The growth rate of factorial is roughly 2 nlog n  Write factorial using product notation

14  Be careful about moving things in and out of products and sums  The following are allowed: 1. 2. 3.

15  Changing from one dummy variable to another is always allowed, provided that all occurrences are changed  Changing the bounds of a variable is allowed, provided that the summation is suitably adjusted  Example:

16

17  General induction is moving from a specific set of facts to a general conclusion  Example:  There are no tigers here.  I have a rock in my pocket.  Conclusion: My rock keeps tigers away.  Induction can lead you to invalid conclusions  So far in this class, we have only used deduction, which reasons from general truths to a specific conclusion

18  Mathematical induction is special  First, we need a property P(n) that's defined for integers n  Then, we need to know that it's true for some specific P(a)  Then, we try to show that for all integers k  a, if P(k) is true, it must be the case that P(k+1) is true  If we do that, P(n) is true for all integers n  a  Why?

19  To prove a statement of the following form:   n  Z, where n  a, property P(n) is true  Use the following steps: 1. Basis Step: Show that the property is true for P(a) 2. Induction Step: ▪ Suppose that the property is true for some n = k, where k  Z, k  a ▪ Now, show that, with that assumption, the property is also true for k + 1

20  Prove that, for all integers n  8, n = 3a + 5b, where a,b are integers greater than or equal to zero  Hint: Use induction and cases  This is the example given in the book  Another way to write it is that any amount of change above 8 cents can be made using only 3 cent and 5 cent coins

21  Prove that, for all integers n  1  Hint: Use induction

22  Prove that, for all integers n  0  Hint: Use induction

23

24  Geometric series  Strong induction  Examples

25  Homework 3 is due next Monday  Keep reading Chapter 5


Download ppt "Week 5 - Wednesday.  What did we talk about last time?  Exam 1!"

Similar presentations


Ads by Google