MATH 2420 Discrete Mathematics Lecture notes

Similar documents
Section 8.1. Sequences and Series

Discrete Structures Lecture Permutations and Combinations

Unit Nine Precalculus Practice Test Probability & Statistics. Name: Period: Date: NON-CALCULATOR SECTION

Permutations and Combinations. MATH 107: Finite Mathematics University of Louisville. March 3, 2014

Section Summary. Permutations Combinations Combinatorial Proofs

The Product Rule The Product Rule: A procedure can be broken down into a sequence of two tasks. There are n ways to do the first task and n

Math 166: Topics in Contemporary Mathematics II

COLLEGE ALGEBRA. Arithmetic & Geometric Sequences

Week 1: Probability models and counting

Sec$on Summary. Permutations Combinations Combinatorial Proofs

Finite Math - Fall 2016

Honors Precalculus Chapter 9 Summary Basic Combinatorics

Permutations and Combinations

LAMC Junior Circle February 3, Oleg Gleizer. Warm-up

CIS 2033 Lecture 6, Spring 2017

Lecture 1. Permutations and combinations, Pascal s triangle, learning to count

Theory of Probability - Brett Bernstein

Permutations and Combinations

Math 1116 Probability Lecture Monday Wednesday 10:10 11:30

MA10103: Foundation Mathematics I. Lecture Notes Week 3

Precalc Unit 10 Review

Sets, Venn Diagrams & Counting

Discrete Mathematics: Logic. Discrete Mathematics: Lecture 15: Counting

Math236 Discrete Maths with Applications

With Question/Answer Animations. Chapter 6

The next several lectures will be concerned with probability theory. We will aim to make sense of statements such as the following:

Math 3012 Applied Combinatorics Lecture 2

Sec 5.1 The Basics of Counting

Section : Combinations and Permutations

Counting and Probability Math 2320

STAT 430/510 Probability

Radical Expressions and Graph (7.1) EXAMPLE #1: EXAMPLE #2: EXAMPLE #3: Find roots of numbers (Objective #1) Figure #1:

Counting integral solutions

* Order Matters For Permutations * Section 4.6 Permutations MDM4U Jensen. Part 1: Factorial Investigation

November 6, Chapter 8: Probability: The Mathematics of Chance

Bell Work. Get out the two copies of your desmos picture, the one copy of your equations, and the construction paper you brought.

Bell Work. List all the possible ways three different people can be standing in order.

Counting. Chapter 6. With Question/Answer Animations

EECS 203 Spring 2016 Lecture 15 Page 1 of 6

Block 1 - Sets and Basic Combinatorics. Main Topics in Block 1:

ECS 20 (Spring 2013) Phillip Rogaway Lecture 1

November 11, Chapter 8: Probability: The Mathematics of Chance

* Order Matters For Permutations * Section 4.6 Permutations MDM4U Jensen. Part 1: Factorial Investigation

Question 1: How do you count choices using the multiplication principle?

Sequence and Series Lesson 6. March 14, th Year HL Maths. March 2013

Siyavula textbooks: Grade 12 Maths. Collection Editor: Free High School Science Texts Project

Arithmetic Sequences Read 8.2 Examples 1-4

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

CPCS 222 Discrete Structures I Counting

LAMC Junior Circle January 22, Oleg Gleizer. The Hanoi Tower. Part 2

Twenty-fourth Annual UNC Math Contest Final Round Solutions Jan 2016 [(3!)!] 4

The topic for the third and final major portion of the course is Probability. We will aim to make sense of statements such as the following:

Tree Diagrams and the Fundamental Counting Principle

Counting Snakes, Differentiating the Tangent Function, and Investigating the Bernoulli-Euler Triangle by Harold Reiter

MA 524 Midterm Solutions October 16, 2018

Slide 1 Math 1520, Lecture 15

Elementary Combinatorics

2. Combinatorics: the systematic study of counting. The Basic Principle of Counting (BPC)

Name: Exam 1. September 14, 2017

With Question/Answer Animations. Chapter 6

Chapter 2. Permutations and Combinations

ACHS Math Team Lecture: Introduction to Set Theory Peter S. Simon

In how many ways can a team of three snow sculptors be chosen to represent Amir s school from the nine students who have volunteered?

Principle of Inclusion-Exclusion Notes

The factorial of a number (n!) is the product of all of the integers from that number down to 1.

Discrete Structures for Computer Science

MAT104: Fundamentals of Mathematics II Summary of Counting Techniques and Probability. Preliminary Concepts, Formulas, and Terminology

Math Fundamentals for Statistics (Math 52) Unit 2:Number Line and Ordering. By Scott Fallstrom and Brent Pickett The How and Whys Guys.

Wheels Diameter / Conversion of Units

Third Grade: Mathematics. Unit 1: Math Strategies

Intermediate Math Circles November 1, 2017 Probability I

Ÿ 8.1 The Multiplication Principle; Permutations

Permutations and Combinations. Quantitative Aptitude & Business Statistics

MITOCW ocw f08-lec36_300k

29. Army Housing (a) (b) (c) (d) (e) (f ) Totals Totals (a) (b) (c) (d) (e) (f) Basketball Positions 32. Guard Forward Center

Avoiding consecutive patterns in permutations

Pre-Algebra Unit 1: Number Sense Unit 1 Review Packet

STAT 430/510 Probability Lecture 1: Counting-1

PERMUTATIONS AND COMBINATIONS

Solving Equations and Graphing

Halting Problem. Implement HALT? Today. Halt does not exist. Halt and Turing. Another view of proof: diagonalization. P - program I - input.

Strings. A string is a list of symbols in a particular order.

Course Learning Outcomes for Unit V

6.4 Permutations and Combinations

Week 1. 1 What Is Combinatorics?

First Group Second Group Third Group How to determine the next How to determine the next How to determine the next number in the sequence:

Week 3-4: Permutations and Combinations

Dyck paths, standard Young tableaux, and pattern avoiding permutations

Restricted Permutations Related to Fibonacci Numbers and k-generalized Fibonacci Numbers

Probability and Counting Techniques

Finite Math Section 6_4 Solutions and Hints

Concepts. Materials. Objective

PROBABILITY. Example 1 The probability of choosing a heart from a deck of cards is given by

Intermediate Mathematics League of Eastern Massachusetts

3 The multiplication rule/miscellaneous counting problems

The Problem. Tom Davis December 19, 2016

CRACKING THE 15 PUZZLE - PART 1: PERMUTATIONS

W = {Carrie (U)nderwood, Kelly (C)larkson, Chris (D)aughtry, Fantasia (B)arrino, and Clay (A)iken}

Chapter 2 Math

By Scott Fallstrom and Brent Pickett The How and Whys Guys

Transcription:

MATH 2420 Discrete Mathematics Lecture notes Series and Sequences Objectives: Introduction. Find the explicit formula for a sequence. 2. Be able to do calculations involving factorial, summation and product notations. Patterns exist everywhere. In mathematics, patterns exist in numbers as well as in letters. Examples of patterns might be Counting the number of ancestors one has, generation by generation. The cost of a taxi ride which increases as the distance traveled increases. The time to complete a task where time increases based upon the number of stages to be done. Some of the patterns are finite and can be grasped easily. Others are infinite, repeating upon themselves endlessly. Identifying those patterns and making them comprehensible, even when infinite, is an important part of discrete mathematics. Basic Concepts sequence a list in which order is taken into account term an individual element in the list, usually denoted a k subscript also known as an index, this is the k in a k and denotes which term in the sequence is being examined; this is an integer value but does not have to be explicitly defined, it can be a variable ellipsis a series of dots (...) which denotes and so on ; in the middle of a sequence it indicates in a similar manner to the end while at the end of a sequence it indicates in a similar manner forever explicit formula a rule that shows how the values of a k depend on k Explicit Formula Given an explicit formula for a sequence one can use a given value for the subscript and obtain the value for the term at that point in the series.

Examples Give the first five terms for t n n 2, n : Give the first five terms for a k k k + 0, 3, 8, 5, 24 for all integers k 2, 2 3, 3 4, 4 5, 5 6 What about the first five terms for this one? b i i i for all integers i 2 Interestingly enough 2, 2 3, 3 4, 4 5, 5 6 These two examples demonstrate that an explicit, or general, formula for a sequence may not be unique. Examine the following sequence and its values: c j ( ) j for all integers j 0. c 0 ( ) 0 c ( ) c 2 ( ) 2 c 3 ( ) 3 c 4 ( ) 4 c 5 ( ) 5 This is called an alternating or oscillating sequence. Even though it is an infinite sequence, it only ever generates the values and. Deriving Explicit Formulas There is, however, no set of rules for figuring out the explicit formula for a series. To find the formula, you must examine the terms in the series and see if you can identify a repeated pattern. This may require that you rewrite some of the terms (often the first and last) to make them have the same form as the other terms. Then you must manipulate the values, replacing them with variables, to see if the pattern emerges. Here are some examples : a) For the series 2, 2 3, 3 4, 4 5,... From Calculus with analytical geometry by Howard Anton 2

Compact Forms Begin by comparing terms and term numbers: term number 2 3 4... 2 3 4 term 2 3 4 5... In each term, the numerator is the same as the term number, and the denominator is one greater than the term number. Thus the nth term is n/(n + ) and the sequence may be written Summation Notation a n n n + for n When we have a sequence that involves adding things together, we write it out term by term, like so: a + a 2 + a 3 + a 4 + a 5 +... This is fine for a few terms, but what if the sequence is rather long? Or infinite? That presents a problem. Luckily there is a short-hand method for doing this - summation notation. Using the capital Greek letter sigma (Σ) we can write the entire sequence in a handy compact form. Say we wanted to write the previous sequence in a more compact form. Using the summation notation and the values and 5 for the lower limit and upper limit we would write 5 a k k This works even if we don t know the limits, upper or lower. We can use variables in place of known values and the summation notation works the same. For example, if we wanted to make the previous example more general we could write a k If given an expanded form, you can reduce it to a summation notation form by recognizing the pattern and reducing. For example: n + 2 n + + 3 n + 2 + + n + 2n Making all the terms look similar makes the process easier. The pattern becomes easier to see that way. First, rewrite the last term to expand the 2n in the denominator, like so n + n + 2 since 2n n + n 3

Rewrite the denominator of the first term to match the other terms n n + 0 Write the numerators in a form that matches the last term. See if a pattern emerges there. The pattern which emerges is 0 + n + 0 + + n + + 2 + n + 2 + + n + n + n k + n + k where k varies from 0 to n. So our summation form would look like this k + n + k Product Notation k0 We have a similar form for sequences involving the product of terms. Product, remember, is the result of a multiplication operation. We use the capital Greek letter pi (Π) to represent this operation. 5 a k a a 2 a 3 a 4 a 5 k Factorial - the Special Case The product of all integers from up to a given value, n, is rather common in mathematics. It has been given a special name (factorial) and symbol (n!). The factorial only operates on positive integers and a special exception is made for zero factorial (0!). We assign that special case a value of, for reasons that will become obvious later. The factorial can be defined upon itself in a manner known as recursion. We use the factorial to define itself, in violation of the usual norms. We do so thusly n! n (n )! We can use this feature repeatedly, as so n! n (n )!(n )! (n ) (n 2)!(n 2)! (n 2) (n 3)!(n 3)! (n 3) (n 4)!. But how does this work? Why do we keep subtracting larger numbers? n! n (n )!(n )! (n ) ((n ) )!(n 2)! (n 2) ((n 2) )!(n 3)! (n 3) ((n 4

To use a numerical example, 5!, we can express this value as or we could write 5! 5 4 3 2 20 5! 5 4! 20 since we know that 5! can be written as 5 4! by the recursive definition of n!. This also gives us a chance to look at the values from a factorial and realize that the resulting values get large, exceedingly large, quickly. 4! is 24, but 5! is 20. Quite quickly this number becomes too large for us to handle. The recursive definition also explains why we need to assign the value to the zero factorial. If n! can be written as n (n )! and n then we have to have a value for 0!. The value solves many problems. The recursive nature of the factorial also makes it possible to easily simplify terms involving factorials. n! n (n ) (n 2) (n 3)! (n 3)! (n 3)! Cancelling common terms in the numerator and denominator leaves us with n (n ) (n 2) (n 2 n) (n 2) n 3 3n 2 + 2n Properties of Summations and Products If a m, a m+, a m+2,..., and b m, b m+, b m+2,... are sequences of real numbers and c is any real number, then the following equations hold for any integer n m: a k + c b k a k (a k + b k ) ( n ) ( n ) a k b k Combinations and Permutations (c a k ) n (a k b k ) We can use the factorial to determine the number of ways items can be grouped or counted. This is useful when deciding how many license plates can be minted or how many committees can be chosen. The factorial allows us to collect a large chunk of multiplications and remove them all at once. So rather than have to write out the full multiplicative series we can stop at a point that allows us to cancel out common terms. 5

Determine how many different words of length 5 can be formed from the letters a, f, g, e, t, k, l if no letter can be repeated. Answer: Start with any of the letters, that gives you 7 choices. After using one, the choices are reduced to 6, which then leaves 5 choices, and so on. The answer is 7 6 5 4 3 2520. Determine in how many ways first and second place prizes can be awarded in a contest with 0 competitors. Answer: 0 9. The answer to these kinds of problems involves counting options, and then counting options again after an item has been removed. Let s look at two definitions which we can use in solving these problems: permutation Suppose the 0 r n. The number of permutations of r elements chosen from n elements is denoted by P (n, r). The number P (n, r) n (n ) (n 2) (n r +) n!/(n r)!. combination For any pair of integers n and r such that 0 r n we define the number C(n, r) to be P (n, r)/r! n!/[(n r)!r!]. We call C(n, r) the number of combinations of r objects chosen from n, or more simply, n choose r. The difference between permuations and combinations is whether order matters or not. In a permutation, order matters. Any change in the arrangement of the items is a new permutation. In a combination, order does not matter. Any group of items is the same combination no matter what the arrangment of the items within the group. I don t understand why order matters. OK, let s look at it using people on committees. We have a group of people, say n, and we want to make committees of size m, where m < n. We have more than enough people to make up committees. If we choose four people and make a committee, that s a combination. If we order them by height, does that change the committee? No. If we order them by age, does that change the committee? No. If we order them by last name, does that change the committee? No. Any way we order the people on the committee, provided it s the same people, the committee is the same. A change in the order only makes the list of names change, not the names themselves. Any given order is a permutation, a different way of listing the members. The group itself is a combination. Here s another example of why order matters, or doesn t. Use the letters e, v, i, l, and s. Now, if I order these letters as l-i-v-e-s then that s one particular word. Another arrangement is e-l-v-i-s which is an entirely different word. The original order, e-v-i-l-s is yet a third word. Each word is different (radically so, you might say), but the letters themselves didn t change. It s still the same five letters just arranged differently. This is a word game called an anagram. Numeric Examples 6

Here are a few examples of permutations and combinations with actual numbers.. How many different ways can a salesman visit 8 cities? n 8, r 8 so P (8, 8) 8! (8 8)! 8! 8! 40320 0! 2. How many different ways can 0 horses in a race win, place and show? n 0, r 3 so 0! P (0, 3) (0 7)! 0 9 8 7! 7! 0 9 8 720 3. In a game of poker, you are dealt a hand of 5 cards from a pack of 52. How many possible hands are there? n 52, r 5 so 52! C(52, 5) (52 5)!5! 52! 47!5! 52 5 50 49 48 47! 47! 5! 52 5 50 49 48 5! 52 5 50 49 48 5 4 3 2 2, 598, 960 7