Number Sequences Lecture 7: Sep 28 (chapter 4.1 of the book and chapter 9 of the notes) ? overhang.

Slides:



Advertisements
Similar presentations
Cauchy-Schwarz (Cauchy-Schwarz inequality) For any a1,…,an, and any b1,…bn Proof by induction (on n): When n=1, LHS
Advertisements

Annuities and Sinking Funds
The Time Value of Money (Part Two)
The Time Value of Money: Annuities and Other Topics
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
SEQUENCES and INFINITE SERIES
Number Sequences Lecture 5 (chapter 4.1 of the book and chapter 9 of the notes) ? overhang.
Chapter 5 Calculators Calculators Introduction to Valuation: The Time Value of Money McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc.
McGraw-Hill/Irwin ©2001 The McGraw-Hill Companies All Rights Reserved Chapter 4 Introduction to Valuation: The Time Value of Money.
Induction Lecture 5: Sep 21 (chapter of the book and chapter of the notes)
McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. 5 5 Calculators Introduction to Valuation: The Time Value of.
Consider the graphs of f(x) = x – 1 and f(x) = lnx. x y y = x – 1 y = lnx (1.0) Sections 2.6, 2.7, 2.8 We find that for any x > 0, x – 1 > lnx Now, suppose.
Infinite Sequences and Series
Chapter 4 The Time Value of Money!.
Chapter McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. 5 Introduction to Valuation: The Time Value of Money.
5-0 Chapter 5: Outline Future Value and Compounding Present Value and Discounting More on Present and Future Values.
CSC2110 Discrete Mathematics Tutorial 4 Number Sequence Hackson Leung.
Exponential Growth.
4.0 Chapter 4 Introduction to Valuation: The Time Value of Money.
Sections 2.1, 2.2, 2.3, 2.4, 2.5 Interest problems generally involve four quantities: principal(s), investment period length(s), interest rate(s), accumulated.
Introduction to Valuation: The Time Value of Money.
TIME VALUE OF MONEY CHAPTER 5.
McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. 5 5 Calculators Introduction to Valuation: The Time Value of.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved. CHAPTER 11 ANALYSIS OF ALGORITHM EFFICIENCY ANALYSIS OF ALGORITHM EFFICIENCY.
Chapter 4 The Time Value of Money
Chapter Sequences and Series.
Number Sequences Lecture 7: Sep 29 ? overhang. This Lecture We will study some simple number sequences and their properties. The topics include: Representation.
RMIT University; Taylor's College1 Lecture 6  To apply the Principle of Mathematical Induction  To solve the Towers of Hanoi puzzle  To define a recurrence.
1 Chapter 4 Introduction to Valuation: The Time Value of Money.
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
1 Introduction to Abstract Mathematics Chapter 4: Sequences and Mathematical Induction Instructor: Hayk Melikya 4.1- Sequences. 4.2,
Chapter 6 Sequences And Series Look at these number sequences carefully can you guess the next 2 numbers? What about guess the rule?
Ch 4: Introduction to Time Value of Money Dr. Yi.
NPV and the Time Value of Money
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
McGraw-Hill/Irwin ©2001 The McGraw-Hill Companies All Rights Reserved 5.0 Chapter 5 Discounte d Cash Flow Valuation.
Block 3 Discrete Systems Lesson 10 –Sequences and Series Both finite and countable infinite series and much more one two three four five six seven eight.
Sequences and Summations
Number Sequences ? overhang. This Lecture We will study some simple number sequences and their properties. The topics include: Representation of a sequence.
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
Mathematical Induction I Lecture 4: Sep 16. This Lecture Last time we have discussed different proof techniques. This time we will focus on probably the.
CHAPTER 5 INTRODUCTION TO VALUATION: THE TIME VALUE OF MONEY.
Algebra II Unit 1 Lesson 2, 3 & 5
Math 104 Calculus I Part 6 INFINITE SERIES. Series of Constants We’ve looked at limits and sequences. Now, we look at a specific kind of sequential limit,
Solving Linear Inequalities Included in this presentation:  Solving Linear Inequalities  Solving Compound Inequalities  Linear Inequalities Applications.
12 INFINITE SEQUENCES AND SERIES. In general, it is difficult to find the exact sum of a series.  We were able to accomplish this for geometric series.
(CSC 102) Lecture 23 Discrete Structures. Previous Lecture Summery  Sequences  Alternating Sequence  Summation Notation  Product Notation  Properties.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
Lecture Outline Basic time value of money (TVM) relationship
INTRODUCTION TO VALUATION: THE TIME VALUE OF MONEY Chapter 5.
Chapter 5 Formulas Introduction to Valuation: The Time Value of Money McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights.
Copyright © Cengage Learning. All rights reserved.
CHAPTER 5 TIME VALUE OF MONEY. Chapter Outline Introduction Future value Present value Multiple cash flow Annuities Perpetuities Amortization.
CHAPTER 5 INTRODUCTION TO VALUATION: TIME VALUE OF MONEY (CALCULATOR) Copyright © 2016 by McGraw-Hill Global Education LLC. All rights reserved.
Chapter 5 Time Value of Money. Basic Definitions Present Value – earlier money on a time line Future Value – later money on a time line Interest rate.
Chapter 6 The Time Value of Money— Annuities and Other Topics.
Number Sequences Lecture 7: Sep 27 (chapter 4.1 of the book and chapter of the notes) ? overhang.
Sequence and Series What is the significance of sequence and series?
1 Simple interest, Compound Interests & Time Value of Money Lesson 1 – Simple Interest.
INFINITE SEQUENCES AND SERIES In general, it is difficult to find the exact sum of a series.  We were able to accomplish this for geometric series and.
CS 2210 (22C:19) Discrete Structures Sequence and Sums
CS 2210:0001 Discrete Structures Sequence and Sums
Copyright © Cengage Learning. All rights reserved.
Sequences, Induction, & Probability
Copyright © Cengage Learning. All rights reserved.
CS 2210:0001 Discrete Structures Sequence and Sums
Mathematics for Computer Science MIT 6.042J/18.062J
Copyright © Cengage Learning. All rights reserved.
Presentation transcript:

Number Sequences Lecture 7: Sep 28 (chapter 4.1 of the book and chapter 9 of the notes) ? overhang

Interesting Sequences We have seen how to prove these equalities by induction, but how do we come up with the right hand side?

Finding General Pattern a 1, a 2, a 3, …, a n, … 1,2,3,4,5,6,7,… 1/2, 2/3, 3/4, 4/5,… 1,-1,1,-1,1,-1,… 1,-1/4,1/9,-1/16,1/25,… General formula The first step is to find the pattern in the sequence. a i = i a i = i/(i+1) a i = (-1) i+1 a i = (-1) i+1 / i 2

Summation

A Telescoping Sum When do we have such closed form formulas?

Sum for Children ··· ··· · · · ··· ··· Nine-year old Gauss saw 30 numbers, each 13 greater than the previous one. 1 st + 30 th = = nd + 29 th = (1 st +13) + (30 th  13) = rd + 28 th = (2 nd +13) + (29 th  13) = 555 So the sum is equal to 15x555 = 8325.

Arithmetic Series Given n numbers, a 1, a 2, …, a n with common difference d, i.e. a i+1 - a i =d. What is a simple closed form expression of the sum? Adding the equations together gives: Rearranging and remembering that a n = a 1 + (n − 1)d, we get:

Geometric Series What is the closed form expression of G n ? G n  xG n =1  x n+1

Infinite Geometric Series Consider infinite sum (series) for |x| < 1

Some Examples

The Value of an Annuity Would you prefer a million dollars today or $50,000 a year for the rest of your life? An annuity is a financial instrument that pays out a fixed amount of money at the beginning of every year for some specified number of years. Examples: lottery payouts, student loans, home mortgages. A key question is what an annuity is worth. In order to answer such questions, we need to know what a dollar paid out in the future is worth today.

My bank will pay me 3% interest. define bankrate b ::= bank increases my $ by this factor in 1 year. The Future Value of Money So if I have $X today, One year later I will have $bX Therefore, to have $1 after one year, It is enough to have b  X  1. X  $1/1.03 ≈ $0.9709

$1 in 1 year is worth $ now. $1/b last year is worth $1 today, So $n paid in 2 years is worth $n/b paid in 1 year, and is worth $n/b 2 today. The Future Value of Money $n paid k years from now is only worth $n/b k today

Someone pays you $100/year for 10 years. Let r ::= 1/bankrate = 1/1.03 In terms of current value, this is worth: 100r + 100r r 3 +  + 100r 10 = 100r(1+ r +  + r 9 ) = 100r(1  r 10 )/(1  r) = $ $n paid k years from now is only worth $n/b k today Annuities

I pay you $100/year for 10 years, if you will pay me $ QUICKIE: If bankrates unexpectedly increase in the next few years, A.You come out ahead B.The deal stays fair C.I come out ahead

Annuities In terms of current value, this is worth: r r 2 +  = 50000(1+ r +  ) = 50000/(1  r) Let r = 1/bankrate If bankrate = 3%, then the sum is $ If bankrate = 8%, then the sum is $ Would you prefer a million dollars today or $50,000 a year for the rest of your life?

Suppose there is an annuity that pays im dollars at the end of each year i forever. For example, if m = $50, 000, then the payouts are $50, 000 and then $100, 000 and then $150, 000 and so on… Annuities What is a simple closed form expression of the following sum?

Manipulating Sums What is a simple closed form expression of ? (see an inductive proof in tutorial 2)

Manipulating Sums for x < 1 For example, if m = $50, 000, then the payouts are $50, 000 and then $100, 000 and then $150, 000 and so on… For example, if p=0.08, then V= Still not infinite! Exponential decrease beats additive increase.

Loan Suppose you were about to enter college today and a college loan officer offered you the following deal: $25,000 at the start of each year for four years to pay for your college tuition and an option of choosing one of the following repayment plans: Plan A: Wait four years, then repay $20,000 at the start of each year for the next ten years. Plan B: Wait five years, then repay $30,000 at the start of each year for the next five years. Assume interest rate 7% Let r = 1/1.07.

Plan A: Wait four years, then repay $20,000 at the start of each year for the next ten years. Plan A Current value for plan A

Plan B Current value for plan B Plan B: Wait five years, then repay $30,000 at the start of each year for the next five years.

Profit $25,000 at the start of each year for four years to pay for your college tuition. Loan office profit = $3233.

How far out? ? overhang Book Stacking

book center of mass One Book

book center of mass One Book

1212 book center of mass One Book

1 2 n More Books How far can we reach? To infinity??

center of mass 1 2 n More Books

need center of mass over table 1 2 n More Books

center of mass of the whole stack 1 2 n More Books

center of mass of all n+1 books at table edge center of mass of top n books at edge of book n+1 ∆overhang 1 2 n n+1 Overhang center of mass of the new book

1 n 1/2  Overhang center of n-stack at x = 0. center of n+1 st book is at x = 1/2, so center of n+1-stack is at

center of mass of all n+1 books center of mass of top n books 1 2 n n+1 1/2(n+1) Overhang

B n ::= overhang of n books B 1 = 1/2 B n+1 = B n + B n = n th Harmonic number Overhang B n = H n /2

Harmonic Number How large is? … 1 number 2 numbers, each 1/4 4 numbers, each 1/8 2 k numbers, each 1/2 k+1 Row sum is = 1/2 The sum of each row is = 1/2. …

Harmonic Number How large is? … The sum of each row is = 1/2. … k rows have 2 k -1 numbers. If n is between 2 k -1 and 2 k+1 -1, there are >= k rows and <= k+1 rows, and so the sum is at least k/2 and is at most (k+1).

1 x Harmonic Number Estimate H n :

Now H n   as n  , so Harmonic series can go to infinity! Integral Method (OPTIONAL) Amazing equality Proofs from the book, M. Aigner, G.M. Ziegler, Springer

Spine Shield Towers Optimal Overhang? (slides by Uri Zwick)

Overhang = Blocks = 49 Weight = 100 Optimal Overhang? (slides by Uri Zwick)

Product

Factorial defines a product: Factorial How to estimate n!? Too rough…

Factorial defines a product: Factorial How to estimate n!? Still very rough, but at least show that it is much larger than C n

Factorial defines a product: Turn product into a sum taking logs: ln(n!) = ln(1·2·3 ··· (n – 1)·n) = ln 1 + ln 2 + ··· + ln(n – 1) + ln(n) Factorial How to estimate n!?

… ln 2 ln 3 ln 4 ln 5 ln n-1 ln n ln 2 ln 3 ln 4 ln 5 ln n 23145n–2n–1n ln (x+1) ln (x) Integral Method (OPTIONAL)

 ln(x) dx   ln(i)   ln (x+1)dx i=1 n n n 1 0 Reminder: so guess: n ln(n/e)   ln(i)  (n+1) ln((n+1)/e) Analysis (OPTIONAL)

exponentiating: Stirling’s formula: Stirling’s Formula

More Integral Method What is a simple closed form expressions of ? Idea: use integral method. So we guess that Make a hypothesis

Sum of Squares Make a hypothesis Plug in a few value of n to determine a,b,c,d. Solve this linear equations gives a=1/3, b=1/2, c=1/6, d=0. Go back and check by induction if

Cauchy-Schwarz (Cauchy-Schwarz inequality) For any a1,…,an, and any b1,…bn Proof by induction (on n): When n=1, LHS <= RHS. When n=2, want to show Consider

Cauchy-Schwarz (Cauchy-Schwarz inequality) For any a1,…,an, and any b1,…bn Induction step: assume true for <=n, prove n+1. induction by P(2)

Cauchy-Schwarz (Cauchy-Schwarz inequality) For any a1,…,an, and any b1,…bn Exercise: prove Answer: Let b i = 1 for all i, and plug into Cauchy-Schwarz This has a very nice application in graph theory that hopefully we’ll see.

Geometric Interpretation (Cauchy-Schwarz inequality) For any a1,…,an, and any b1,…bn The left hand side computes the inner product of the two vectors If we rescale the two vectors to be of length 1, then the left hand side is <= 1 The right hand side is always 1. a b

Arithmetic Mean – Geometric Mean Inequality (AM-GM inequality) For any a1,…,an, Interesting induction (on n): Prove P(2) Prove P(n) -> P(2n) Prove P(n) -> P(n-1)

Arithmetic Mean – Geometric Mean Inequality (AM-GM inequality) For any sequence of non-negative numbers a1,…,an, Interesting induction (on n): Prove P(2) Want to show Consider

Arithmetic Mean – Geometric Mean Inequality (AM-GM inequality) For any sequence of non-negative numbers a1,…,an, Interesting induction (on n): Prove P(n) -> P(2n) induction by P(2)

Arithmetic Mean – Geometric Mean Inequality (AM-GM inequality) For any sequence of non-negative numbers a1,…,an, Interesting induction (on n): Prove P(n) -> P(n-1) Let the average of the first n-1 numbers.

Arithmetic Mean – Geometric Mean Inequality (AM-GM inequality) For any sequence of non-negative numbers a1,…,an, Interesting induction (on n): Prove P(n) -> P(n-1) Let

Geometric Interpretation (AM-GM inequality) For any sequence of non-negative numbers a1,…,an, Think of a1, a2, …, an are the side lengths of a high-dimensional rectangle. Then the right hand side is the volume of this rectangle. The left hand side is the volume of the square with the same total side length. The inequality says that the volume of the square is always not smaller. e.g.

Arithmetic Mean – Geometric Mean Inequality (AM-GM inequality) For any sequence of non-negative numbers a1,…,an, Exercise: What is an upper bound on? Set a 1 =n and a 2 =…=a n =1, then the upper bound is 2 – 1/n. Set a 1 =a 2 =√n and a 3 =…=a n =1, then the upper bound is 1 + 2/√n – 2/n. … Set a 1 =…=a logn =2 and a i =1 otherwise, then the upper bound is 1 + log(n)/n