Section 3.2: Sequences and Summations. Def: A sequence is a function from a subset of the set of integers (usually the set of natural numbers) to a set.

Slides:



Advertisements
Similar presentations
22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh.
Advertisements

Section 1.6: Sets Sets are the most basic of discrete structures and also the most general. Several of the discrete structures we will study are built.
Homework 7 –Average: 70Median: 75 – Homework 8 –Average: 74Median:
1 Diagonalization Fact: Many books exist. Fact: Some books contain the titles of other books within them. Fact: Some books contain their own titles within.
EE1J2 – Discrete Maths Lecture 9
Great Theoretical Ideas in Computer Science.
CSE115/ENGR160 Discrete Mathematics 02/22/11 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/21/12
CHAPTER 4 Decidability Contents Decidable Languages
1 Section 3.2 Sequences and Summations. 2 Sequence Function from a subset of Z (usually the set beginning with 1 or 0) to a set S a n denotes the image.
Sequence A list of objects arranged in a particular order.
Lecture ,3.3 Sequences & Summations Proof by Induction.
1 Section 3.3 Mathematical Induction. 2 Technique used extensively to prove results about large variety of discrete objects Can only be used to prove.
Cardinality of a Set “The number of elements in a set.” Let A be a set. a.If A =  (the empty set), then the cardinality of A is 0. b. If A has exactly.
Reminders: –Test3 is scheduled for Friday, April 25 was sent that included a proposed schedule –HW 8 is due Wednesday, April 9 in class Pascal’s.
For a geometric sequence, , for every positive integer k.
Section 1.8: Functions A function is a mapping from one set to another that satisfies certain properties. We will first introduce the notion of a mapping.
Functions A B f( ) =. This Lecture We will define a function formally, and then in the next lecture we will use this concept in counting. We will also.
Section 4.3: Permutations and Combinations Def: A permutation of a set of distinct objects is an ordered arrangement of these objects. Ex: {a, b, c, d}
The Integers and Division
Cardinality of Sets Section 2.5.
Sequences and Series (T) Students will know the form of an Arithmetic sequence.  Arithmetic Sequence: There exists a common difference (d) between each.
1 Sequences and Summations CS/APMA 202 Rosen section 3.2 Aaron Bloomfield.
Sequences & Summations CS 1050 Rosen 3.2. Sequence A sequence is a discrete structure used to represent an ordered list. A sequence is a function from.
Chapter 6.7 Determinants. In this chapter all matrices are square; for example: 1x1 (what is a 1x1 matrix, in fact?), 2x2, 3x3 Our goal is to introduce.
Sequences and Summations
2.4 Sequences and Summations
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
ICS 253: Discrete Structures I
1 Lecture 3 (part 3) Functions – Cardinality Reading: Epp Chp 7.6.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFunctions.
Sequences and Summations
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
Copyright © Cengage Learning. All rights reserved. CHAPTER 7 FUNCTIONS.
Example Prove that: “IF 3n + 2 is odd, then n is odd” Proof by Contradiction: -p = 3n + 2 is odd, q = n is odd. -Assume that ~(p  q) is true OR -(p 
Basic Structures: Sets, Functions, Sequences, and Sums CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Mathematical Induction
Functions Section 2.3. Section Summary Definition of a Function. – Domain, Cdomain – Image, Preimage Injection, Surjection, Bijection Inverse Function.
Relations, Functions, and Countability
COMPSCI 102 Introduction to Discrete Mathematics.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 09: SEQUENCES Section 3.2 Jarek Rossignac CS1050: Understanding.
Section 3.3: Mathematical Induction Mathematical induction is a proof technique that can be used to prove theorems of the form:  n  Z +,P(n) We have.
Introduction to Real Analysis Dr. Weihu Hong Clayton State University 8/27/2009.
Basic Structures: Sets, Functions, Sequences, and Sums.
Cardinality with Applications to Computability Lecture 33 Section 7.5 Wed, Apr 12, 2006.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
Great Theoretical Ideas in Computer Science.
CompSci 102 Discrete Math for Computer Science February 7, 2012 Prof. Rodger Slides modified from Rosen.
Math 51/COEN 19. Sequences and Summations - vocab An arithmetic progression is a sequence of the form a, a+d, a+2d, …, a+nd, … with fixed a, d in R and.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 7 Functions Instructor: Hayk Melikyan Today we will review sections 7.3, 7.4 and 7.5.
CS 285- Discrete Mathematics
To Infinity And Beyond! CS Lecture 11 The Ideal Computer: no bound on amount of memory Whenever you run out of memory, the computer contacts the.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 Basic Structure : Sets, Functions, Sequences, and Sums Sequences and Summations.
Section 2.5. Cardinality Definition: A set that is either finite or has the same cardinality as the set of positive integers (Z + ) is called countable.
Chapter 2 1. Chapter Summary Sets The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions and sequences.
Sequences Lecture 11. L62 Sequences Sequences are a way of ordering lists of objects. Java arrays are a type of sequence of finite size. Usually, mathematical.
22C:19 Discrete Structures Sequence and Sums Fall 2014 Sukumar Ghosh.
Fall 2002CMSC Discrete Structures1 Chapter 3 Sequences Mathematical Induction Recursion Recursion.
One of Cantor's basic concepts was the notion of the size or cardinality of a set M, denoted by |M|  M - finite sets M is an n-set or has size n, if.
1-1 Copyright © 2013, 2005, 2001 Pearson Education, Inc. Section 2.4, Slide 1 Chapter 2 Sets and Functions.
Cardinality with Applications to Computability
Discrete Mathematics CS 2610
2.4 Sequences and Summations
Sequences and Summations
Cardinality of Sets Section 2.5.
Lecture 7 Functions.
ICS 253: Discrete Structures I
Sequences and the Binomial Theorem
Cardinality Definition: The cardinality of a set A is equal to the cardinality of a set B, denoted |A| = |B|, if and only if there is a one-to-one correspondence.
Everything is an Integer Countable and Uncountable Sets
Presentation transcript:

Section 3.2: Sequences and Summations

Def: A sequence is a function from a subset of the set of integers (usually the set of natural numbers) to a set S. We use the notation a k to denote the image of the integer k. Ex: Consider the sequence 1, 2, 3, 4, 5, 6, … We could specify this sequence as {a k } where a k = k + 1 and the sequence is indexed with the set of natural numbers. That is, a 0 = 1, a 1 = 2, a 2 = 3, … Note the overloaded use of {}; they do not indicate a set here but a sequence. We will be careful to indicate that we are dealing with a sequence when specifying them in this manner to avoid confusion with sets. Ex: The digits in a real number comprise a sequence. Consider .  = … We can consider the digits after the decimal point as a sequence indexed by the set of natural numbers {p k }. So p 0 = 1, p 1 = 4, p 2 = 1, p 3 = 5, p 4 = 9, p 5 = 2, and so on. Any real number can be considered in this manner [before the decimal must be an integer, after the decimal though is a sequence of digits].

Ex: … is a real number. To the left of the decimal we have an integer, 376, but to the right we have an infinite sequence of digits. This sequence is specified as {a k } where a k = 1 for all k  N. Ex: 1/2 = 0.5 is a real number. To the left of the decimal we have an integer, 0, and to the right we have a sequence of digits. This sequence only has one digit so we could index the sequence by the subset of the integers {0}. And then a 0 = 5. However we can consider a real number to always have a sequence of digits indexed by the set of natural numbers at its end if we wish. If the decimal terminates, we simply extend it with 0s. That is 1/2 = … and our sequence of digits is now {a k } where a 0 = 5 and a k = 0 for all k > 0. Ex: Consider the sequence {a k } where a k = 1/(k + 1) for all k  N. Then the terms of this sequence are 1, 1/2, 1/3, 1/4, 1/5, … Note that this is a sequence of rational numbers. We have dealt with numbers up to this point in our examples but remember that the set S from which our elements are chosen is arbitrary.

Def: A geometric progression is a sequence of the general form a, ar, ar 2, ar 3, … where the initial term a and the common ratio r are real numbers. Ex: The sequence {b k } with b k = (-1) k indexed by the set of natural numbers is a geometric progression with initial term 1 and common ratio -1. We can see that b 0 = (-1) 0 = 1, b 1 = (-1) 1 = -1, b 2 = (-1) 2 = 1, and so on. So the terms of this sequence are 1, -1, 1, -1,... Ex: The sequence {c k } with c k = 2(5) k indexed by the set of natural numbers is a geometric progression with initial term 2 and common ratio 5. We can see that c 0 = 2(5) 0 = 2, c 1 = 2(5) 1 = 10, c 2 = 2(5) 2 = 50, and so on. So the terms of this sequence are 2, 10, 50, 250,...

Def: An arithmetic progression is a sequence of the general form a, a + d, a + 2d, a + 3d, … where the initial term a and the common difference d are real numbers. Ex: The sequence {b k } with b k = 1 + 4k indexed by the set of natural numbers is an arithmetic progression with initial term 1 and common difference 4. We can see that b 0 = 1 + 4*0 = 1, b 1 = 1 + 4*1 = 5, b 2 = 1 + 4*2 = 9, and so on. So the terms of this sequence are 1, 5, 9, 13,... Ex: The sequence {c k } with c k = -1 + (1/2)k indexed by the set of natural numbers is an arithmetic progression with initial term -1 and common difference 1/2. We can see that c 0 = -1 + (1/2)0 = -1, c 1 = -1 + (1/2)1 = -1/2, c 2 = -1 + (1/2)2 = 0, and so on. So the terms of this sequence are -1, -1/2, 0, 1/2, 1,... Def: A string is a sequence which is indexed by a finite subset of the integers. The length of the string is the cardinality of the indexing set. Ex: is a string of bits (a.k.a. bit string) of length 6.

Summations Sometimes when we have a sequence of numbers {a k } we would like to sum the terms of the sequence. That is, we would like to find the sum a 0 + a 1 + a 2 + … We have a special notation for this sum:  a k = a 0 + a 1 + a 2 + … We also would like to specify the sum of the terms of a sequence in a particular range:  n j = m a j = a m + a m+1 + …+ a n. [We sum all a j where m  j  n] In the above notation j is called the index of summation, m is called the lower limit and n is called the upper limit. Ex:  99 j = 0 1/(j + 1) represents the sum of the first 100 terms of our example sequence {a k } where a k = 1/(k + 1).

Ex:  5 j = 1 j 2 = = = 55 Identity: Let {a j } be a sequence of real numbers. Then  n j = m a j +  n j = m b j =  n j = m (a j + b j ) To take advantage of the above identity, we often need to shift the index in a summation: Ex:  5 j = 1 j 2 +  4 k = 0 2k =  5 j = 1 j 2 +  5 r = 1 2(r – 1) =  5 j = 1 j 2 + 2(j – 1) =  5 j = 1 (j 2 + 2j – 2) = ( *1 – 2) + ( *2 – 2) + ( *3 – 2) + ( *4 – 2) + ( *5 – 2) = = 75 Identity: Let a and r be real numbers with r  0. Then  n j = 0 ar j = (ar n+1 – a)/(r – 1) if r  1. [If r = 1, then (n + 1)a is the sum.] There is a table of useful summation formulas (including the above) in the text on page 232. [See also the discussion of how to evaluate nested sums].

Cardinality Recall that the cardinality of a set S was defined to be the number of elements in the set S. Two finite sets have the same cardinality if they have the same number of elements. The following definition extends the concept of cardinality. Def: The sets A and B have the same cardinality if and only if there is a one-to-one correspondence from A to B. Remark: Recall that we pointed out the “if” part of this definition for finite sets when we studied functions. That is, we remarked that if the sets A and B have finite cardinality, then a function from A to B can be one-to-one only if |A|  |B|. And a function from A to B can only be onto if |A|  |B|. Taken together, we realized that for finite sets A and B, a function from A to B could be a one-to-one correspondence only if |A| = |B|.

So we just verified that the given definition doesn’t contradict our earlier treatment of finite sets. This may not seem like the most natural definition for cardinality at first, but upon further examination it turns out to be very natural. [What do we do when we count?]. When we count the elements of a finite set, we are forming a one-to- one correspondence with the subset {1, 2, …, n} of the set of integers. Once we have formed this one-to-one correspondence, we conclude that the set we counted has cardinality n. Using this notion of cardinality, we can begin to compare the cardinality of infinite sets as well. Some infinite sets seem to be bigger than other infinite sets, but it turns out that they have the same cardinality. Ex: We know that Z +  N. That is N has every positive integer in it, but in addition it has 0 which Z + does not. So it seems that N is ‘bigger’ than Z +. But consider f: N  Z + defined by f(n) = n + 1. This function f is a one-to-one correspondence between N and Z +. So |N| = |Z + |.

Def: A set that has finite cardinality or has the same cardinality as the positive integers is called countable. A set that is not countable is called uncountable. Ex: We just saw that the set of natural numbers is countable. Remark: An infinite set S is countable if and only if it is possible to list all of the elements of S in a sequence (indexed by Z + ). Remember that a sequence of elements from S indexed by Z + is a function f: Z +  S. The requirement that it is possible to list all of the elements of S in a sequence means that there exists such a function f from Z + to S which is onto. And if we can have such an onto function, we can make sure it is also one-to-one by keeping only the first occurrence of each element of S in the sequence. Ex: The set of integers is countable because we can list all of the integers in a sequence: 0, -1, 1, -2, 2, -3, 3, -4, … The bijection is f(x) = (x – 1)/2 for odd x, and f(x) = -x/2 for even x.

Ex: The set Z  Z is countable. We use the technique of exhaustively listing the members of this set in a sequence. Once again, the order of listing is important. [Graph] (0, 0), (1, 0), (1, 1), (0, 1), (-1, 1), (-1, 0), (-1, -1), (0, -1), (1, -1), (2, -1), (2, 0), (2, 1), (2, 2), (1, 2), (0, 2), (-1, 2), (-2, 2), (-2, 1), (-2, 0), … This is not the only possibility. For another example, we could have organized our listing by distance from the origin: 0: (0, 0) 1: (1, 0), (0, 1), (-1, 0), (0, -1) 2: (2, 0), (1, 1), (0, 2), (-1, 1), (-2, 0), (-1, -1), (0, -2), (1, -1) … Theorem: A subset of a countable set is countable. Corollary: The set of rational numbers is countable.

Test 2 In class, Wednesday, April 2 –Send me to arrange to take the test on an earlier date if you can not take it on April 2 Sections 1.8, 2.4, 3.1, 3.2, 3.3, and 3.4 HW5, HW6 (due 3-24), HW7(will be due 3-31)

Theorem: The set of real numbers is uncountable. Remark: Up to this point we have only proven sets to be countable. To prove that an infinite set is countable, we only had to find a bijection between it and the set of positive integers. This sort of thing is an existence proof. However, to prove that a set is uncountable, we must show that there does not exist any bijection between it and the set of positive integers. This is significantly harder. Before we proceed with the proof, recall what a real number is. All real numbers take the form x.d 1 d 2 d 3 … where x is an integer (hence finite) and the thing to the right of the decimal point is a sequence of digits indexed by the set of positive integers. Remember that even real numbers with a decimal that terminates (like 5.725) can still be thought of in this manner. We just tack on 0’s at the end ( …).

Proof: Assume, to the contrary, that the set of real numbers is countable. Then the subset of the real numbers B = {x | 0 < x < 1} is also countable (since a subset of a countable set is countable). So there exists a bijection from the set of positive integers to B (call it f). We don’t know anything about f other than it is a bijection from Z + to B. f(1) = 0.d 11 d 12 d 13 …, f(2) = 0.d 21 d 22 d 33 …, f(3) = 0.d 31 d 32 d 33 …, etc. Since f is a bijection (and hence onto) then every real number in B must appear somewhere on this list (as f(n) for some positive integer n). Consider the member 0.d 1 d 2 d 3 … of B where each digit d i = 4 if d ii  4 and d i = 5 if d ii = 4. This member of B can not appear as f(n) for any positive integer n since the nth digit (d n ) of this number differs from the nth digit (d nn ) of f(n). Hence this is a member of B which is not mapped to by any positive integer n. So f is not onto. So R is uncountable. 

What we just did was to show that B must be uncountable because any function from Z + to B that you propose to me as a bijection can’t be onto. We did this by taking the proposed bijection and constructing a number in B that is not mapped to by any integer. So no such bijection exists because any one that is proposed can be shown to not be onto. The technique used in this proof is called diagonalization (we went down the diagonal to assign our digits for the number we created). This technique can be used to prove that many other sets are uncountable. Once you understand this diagonalization argument from the previous proof, consider the following question: We know that the set of natural numbers is countable because we found a bijection between it and the positive integers. Hence we shouldn’t be able to prove that the set of natural numbers is uncountable (because it isn’t). We could tack on zeros to the front of any natural number leaving its value unchanged, just as we did at the end of real numbers. Why then can we not use this diagonalization technique to show that the set of natural numbers is uncountable?