Lecture 2.5: Sequences

Similar documents
Unit 6: Sequences and Series

= n which will be written with general term a n Represent this sequence by listing its function values in order:

2.4 - Sequences and Series

Infinite Sequences and Series

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018

is also known as the general term of the sequence

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES

11.1 Arithmetic Sequences and Series

Bertrand s Postulate

Once we have a sequence of numbers, the next thing to do is to sum them up. Given a sequence (a n ) n=1

Infinite Series. Definition. An infinite series is an expression of the form. Where the numbers u k are called the terms of the series.

T1.1 Lesson 3 - Arithmetic & Geometric Series & Summation Notation

CALCULATION OF FIBONACCI VECTORS

2.4 Sequences, Sequences of Sets

Math 113 Exam 3 Practice

Section 6.4: Series. Section 6.4 Series 413

Sequences, Sums, and Products

SOME TRIBONACCI IDENTITIES

Section 7 Fundamentals of Sequences and Series

SEQUENCES AND SERIES

On a Smarandache problem concerning the prime gaps

1. n! = n. tion. For example, (n+1)! working with factorials. = (n+1) n (n 1) 2 1

6.3 Testing Series With Positive Terms

Chapter 6 Overview: Sequences and Numerical Series. For the purposes of AP, this topic is broken into four basic subtopics:

Sigma notation. 2.1 Introduction

Chapter 7: Numerical Series

7 Sequences of real numbers

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

The Growth of Functions. Theoretical Supplement

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 22

, 4 is the second term U 2

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

CHAPTER 10 INFINITE SEQUENCES AND SERIES

It is always the case that unions, intersections, complements, and set differences are preserved by the inverse image of a function.

Mathematical Induction

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3

9.3 Power Series: Taylor & Maclaurin Series

EEO 401 Digital Signal Processing Prof. Mark Fowler

Math 2412 Review 3(answers) kt

Topic 1 2: Sequences and Series. A sequence is an ordered list of numbers, e.g. 1, 2, 4, 8, 16, or

Chapter 6: Numerical Series

Entropy and Ergodic Theory Lecture 5: Joint typicality and conditional AEP

SEQUENCES AND SERIES

Summer High School 2009 Aaron Bertram

Discrete Math Class 5 ( )

UNIT #5. Lesson #2 Arithmetic and Geometric Sequences. Lesson #3 Summation Notation. Lesson #4 Arithmetic Series. Lesson #5 Geometric Series

Ma 530 Infinite Series I

Analysis of Algorithms. Introduction. Contents

5 Sequences and Series

Recurrence Relations

Math 155 (Lecture 3)

If we want to add up the area of four rectangles, we could find the area of each rectangle and then write this sum symbolically as:

Series III. Chapter Alternating Series


Discrete Mathematics for CS Spring 2005 Clancy/Wagner Notes 21. Some Important Distributions

MAT1026 Calculus II Basic Convergence Tests for Series

INFINITE SEQUENCES AND SERIES

VERY SHORT ANSWER TYPE QUESTIONS (1 MARK)

1 Counting and Stirling Numbers

subcaptionfont+=small,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0 subcaption ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, 2/16/2016

MATH 31B: MIDTERM 2 REVIEW

4.3 Growth Rates of Solutions to Recurrences

Lecture 2: April 3, 2013

Recitation 4: Lagrange Multipliers and Integration

( a) ( ) 1 ( ) 2 ( ) ( ) 3 3 ( ) =!

Sums, products and sequences

Hoggatt and King [lo] defined a complete sequence of natural numbers

Series: Infinite Sums

MIXED REVIEW of Problem Solving

Sequences I. Chapter Introduction

1 Approximating Integrals using Taylor Polynomials

1 Convergence in Probability and the Weak Law of Large Numbers

CALCULATING FIBONACCI VECTORS

The Phi Power Series

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

Chapter 10: Power Series

Lecture 12: November 13, 2018

Areas and Distances. We can easily find areas of certain geometric figures using well-known formulas:

Lecture 3: Asymptotic Analysis + Recurrences

1 Introduction. 1.1 Notation and Terminology

Combinatorics and Newton s theorem

OPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES

An Introduction to Randomized Algorithms

2.1. The Algebraic and Order Properties of R Definition. A binary operation on a set F is a function B : F F! F.

SEQUENCE AND SERIES NCERT

In number theory we will generally be working with integers, though occasionally fractions and irrationals will come into play.

CHAPTER 2 SEQUENCES AND SERIES OUTLINE Geometric Series Infinite Geometric Series and Sigma Notation 4 Review

Square-Congruence Modulo n

Lecture 10: Mathematical Preliminaries

Ma 530 Introduction to Power Series

Definition An infinite sequence of numbers is an ordered set of real numbers.

MA131 - Analysis 1. Workbook 3 Sequences II

6.046 Recitation 5: Binary Search Trees Bill Thies, Fall 2004 Outline

Sequences and Series of Functions

Progressions. ILLUSTRATION 1 11, 7, 3, -1, i s an A.P. whose first term is 11 and the common difference 7-11=-4.

Convergence of random variables. (telegram style notes) P.J.C. Spreij

Signals & Systems Chapter3

1 Review and Overview

ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations

Transcription:

Lecture.5: Sequeces CS 50, Discrete Structures, Fall 015 Nitesh Saxea Adopted from previous lectures by Zeph Gruschlag Course Admi HW posted Covers Chapter Due Oct 0 (Tue) Mid Term 1: Oct 15 (Thursday) Review Oct 8 (Thu) Covers Chapter 1 ad Chapter Travelig ext week Presetig a paper at ACM CCS No lecture o Oct 13 Use it for exam preparatio 10/5/015 Lecture.4 -- Fuctios 1

Outlie Sequeces Summatio 10/5/015 Lecture.5 -- Sequeces 3 Sequeces Sequeces are a way of orderig lists of objects. Java arrays are a type of sequece of fiite size. Usually, mathematical sequeces are ifiite. To give a orderig to arbitrary elemets, oe has to start with a basic model of order. The basic model to start with is the set N = {0, 1,, 3, } of atural umbers (iclusive 0). For fiite sets, the basic model of size is: = {1,, 3, 4,, -1, } 10/5/015 Lecture.5 -- Sequeces 4

Sequeces Defiitio: Give a set S, a (ifiite) sequece i S is a fuctio N S. A fiite sequece i S is a fuctio S. Symbolically, a sequece is represeted usig the subscript otatio a i. This gives a way of specifyig formulaically Note: Other sets ca be take as orderig models. The book ofte uses the positive umbers Z + so coutig starts at 1 istead of 0. I ll usually assume the orderig model N. Q: Give the first 5 terms of the sequece defied by the formula π a i cos( i) 10/5/015 Lecture.5 -- Sequeces 5 Sequece Examples A: Plug i for i i sequece 0, 1,, 3, 4: a 0 1, a1 0, a 1, a 3 0, a 4 1 Formulas for sequeces ofte represet patters i the sequece. Q: Provide a simple formula for each sequece: a) 3,6,11,18,7,38,51, b) 0,,8,6,80,4,78, c) 1,1,,3,5,8,13,1,34, 10/5/015 Lecture.5 -- Sequeces 6 3

Sequece Examples A: Try to fid the patters betwee umbers. a) 3,6,11,18,7,38,51, a =6=3+3, a =11=6+5, a 3 =18=11+7, ad i geeral a i = a i-1 +(i +1). This is actually a good eough formula. Later we ll lear techiques that show how to get the more explicit formula: a i = i + (i =1, ) b) 0,,8,6,80,4,78, If you add 1 you ll see the patter more clearly. a i = 3 i 1 c) 1,1,,3,5,8,13,1,34, This is the famous Fiboacci sequece give by a i +1 = a i + a i-1 10/5/015 Lecture.5 -- Sequeces 7 Bit Strigs Bit strigs are fiite sequeces of 0 s ad 1 s. Ofte there is eough patter i the bit-strig to describe its bits by a formula. EG: The bit-strig 1111111 is described by the formula a i =1, where we thik of the strig of beig represeted by the fiite sequece a 1 a a 3 a 4 a 5 a 6 a 7 Q: What sequece is defied by a 1 =1, a =1 a i+ = a i a i+1 10/5/015 Lecture.5 -- Sequeces 8 4

Bit Strigs A: a 0 =1, a 1 =1 a i+ = a i a i+1 : 1,1,0,1,1,0,1,1,0,1, 10/5/015 Lecture.5 -- Sequeces 9 Summatios The symbol S takes a sequece of umbers ad turs it ito a sum. Symbolically: a a a i 0 1 i0 This is read as the sum from i =0 to i = of a i Note how S coverts commas ito plus sigs. Oe ca also take sums over a set of umbers: a x xs... a 10/5/015 Lecture.5 -- Sequeces 10 5

Summatios EG: Cosider the idetity sequece a i = i Or listig elemets: 1,, 3, 4, 5, The sum of the first umbers is give by: i1 a i 1 3... 10/5/015 Lecture.5 -- Sequeces 11 Summatio Formulas Arithmetic There is a explicit formula for the previous: i1 ( 1) i Ituitive reaso: The smallest term is 1, the biggest term is so the avg. term is (+1)/. There are terms. To obtai the formula simply multiply the average by the umber of terms. 10/5/015 Lecture.5 -- Sequeces 1 6

Summatio Formulas Geometric Geometric sequeces are umber sequeces with a fixed costat of proportioality r betwee cosecutive terms. For example:, 6, 18, 54, 16, Q: What is r i this case? 10/5/015 Lecture.5 -- Sequeces 13 Summatio Formulas, 6, 18, 54, 16, A: r = 3. I geeral, the terms of a geometric sequece have the form a i = a r i where a is the 1 st term whe i starts at 0. A geometric sum is a sum of a portio of a geometric sequece ad has the followig explicit formula: ar i a ar ar... ar a( r r 1 i0 1) 1 10/5/015 Lecture.5 -- Sequeces 14 7

Summatio Examples If you are curious about how oe could prove such formulas, your curiosity will soo be satisfied as you will become adept at provig such formulas a few lectures from ow! Q: Use the previous formulas to evaluate each of the followig 1. 103 i0 5( i 3). 13 i0 i 10/5/015 Lecture.5 -- Sequeces 15 A: Summatio Examples 1. Use the arithmetic sum formula ad additivity of summatio: 103 i0 5( i 3) 5 103 i0 ( i 3) 5 103 i0 i 5 103 i0 (103 0) 584 5384 4570 3 10/5/015 Lecture.5 -- Sequeces 16 8

A: Summatio Examples. Apply the geometric sum formula directly by settig a = 1 ad r = : 13 i0 i 14 1 1 14 1 16383 10/5/015 Lecture.5 -- Sequeces 17 Composite Summatio For example: i1 j1 a b i j What s 3 i1 j1 ij 10/5/015 Lecture.5 -- Sequeces 18 9

Today s Readig Rose.4 10/5/015 Lecture.5 -- Sequeces 19 10