Some Review Problems for Exam 3: Solutions

Size: px
Start display at page:

Download "Some Review Problems for Exam 3: Solutions"

Transcription

1 Math 3355 Spring 017 Some Review Problems for Exam 3: Solutions I thought I d start by reviewing some counting formulas. Counting the Complement: Given a set U (the universe for the problem), if you want to now how many things in U have some property, an indirect approach is to count how many things don t have that property instead. The formula: The number of things that do = U the number that don t. Said differently, if A is a subset of U, and Ā is the complement of A in U, then A = U Ā. Inclusion-Exclusion: A B = A + B A B. The binomial coefficient ( n ) counts: -element subsets of a set of size n, bit strings of length n having exactly ones, committees of size from a group of n people. Permutations: P (n, ) = n(n 1) (n + 1) = n! (n )! counts the number of ways to arrange things from n types of things, if repetition is not allowed. If repetition IS allowed, the formula is easier, in this case, there are n possible arrangements. The other important idea is a combinatorial proof of an identity. We establish the identity by counting something in two different ways. Typically, one side of the identity is simpler than the other. The simpler side usually has a direct count. The tricier side often involves breaing up the count into cases. Here are the review question solutions: 1. The English alphabet contains 1 consonants and five vowels. How many strings of four lowercase letters of the English alphabet contain: (a) A vowel in position? Solution: This is a product rule: = = On an exam, or better, are fine. In fact, I would say that is a better answer than because it is easier to grade and shows some of the ideas going into getting the count. (b) Vowels in positions and 3? Solution: Same idea as in (a): = 5 6, or

2 (c) A vowel in position or in position 3? Solution: This is harder. One way is to count the complement: Subtract off the number of strings that don t have a vowel in either position from the total: U Ā = = An alternative is to use inclusion-exclusion: A B = A + B A B. In (a) we said strings have a vowel in position, and the same number have a vowel in position 3. In (b), we said 5 6 have vowels in both positions. The total is = , as before. (d) At least one consonant? Solution: This is a classic complement problem: U Ā = = (e) Exactly one vowel? Solution: I would count this by the following multistep approach: Figure out where you want the vowel to be, decide which vowel to put there, and then fill the remaining 3 positions with consonants. This leads to the answer = = (f) No vowels in consecutive positions? ( have is OK, beat is not) Solution: This is hard. One approach is to use cases: How many vowels are there in the string? The possibilities are no vowels, one, or two vowels. No vowels gives 1 4, one vowel gives (the answer to part (e).) With two vowels, we have to figure out how many ways to place them. The possibilities are vcvc, vccv, cvcv, for a total of three ways. Next, we pic two vowels and two consonants. The count for this case is All totaled, we have = Suppose Minnesota Pic 3 became Minnesota Pic 4 instead (you select four numbers, with order counting, each number between 0 and 9, inclusive). (a) How many combinations are possible? Solution: 10 4 = 10, 000 Page

3 (b) How many combinations don t contain a 5? Solution: 9 4 = 6561 (c) How many combinations contain a 5? Solution: Complement problem: (answer to (a) - answer to (b)) = 10, = (d) How many combinations contain exactly two 5 s? Solution: There are ( 4 ) = 6 ways to place the fives, and 9 9 ways to fill the other position, so the total is 6 81 = 486. (e) How many combinations contain at least two 5 s? Solution: Another complement problem, but care must be used. The complement has two cases: no fives or one five. If no fives, we get 6561, as in (b). If one five, we have = 916 ways. Our answer is 10, = 53 combinations. An alternative is to add up cases with two, three, or four fives. There are 486 ways with two fives, ( 4 3) 9 ways with three fives, and one way with four fives, for a total of = How many bit strings of length 6 are there containing: (a) Exactly two 1 s? Solution: ( ) 6 = 6 5 = 15. (b) At least two 1 s? Solution: Count the complement: 6 ( 6 1) ( 6 0) = = 57. Page 3

4 (c) Exactly two 1 s, with the 1 s in nonconsecutive positions? Solution: Fastest might be to just list all the possibilities: for a total of , , , , , , , , , An alternative is to count the complement: Of the 15 strings with two ones, , , , , have the ones in consecutive positions, giving a total of 15-5 = 10. (d) At least two 1 s with no 1 s in consecutive positions? Solution: Again, it might be fastest to just count the possibilities. We have done the case with exactly two ones. If we have three ones, there are four more cases: , , , , and you can t do it with more than three ones, so we have a total of = 14 cases. 4. (a) Find the coefficient of x 17 in (x 3) ( ) 40 Solution: By the Binomial Theorem, (x 3) 40 = (x) 40 ( 3). We want the stuff that multiplies x 17. This means we want 40 = 17, or = 3. The answer we see is ( ) ( 3) 3, or ( 40 3) ( ) (b) Evaluate 5. Solution: By a direct application of the Binomial Theorem, this will be ( + 5) = 7. ( ) (c) Evaluate. Solution: This is also a Binomial Theorem question, with x = 1, y = 1, giving (1 + 1) =. Page 4

5 ( ) ( ( ) (d) Evaluate = 0 0 ( ) ( ) ( )) Solution: One way, as mentioned in class, is that n(1 + x) n 1 = d dx (1 + x)n = d dx n ( ) n x = n ( ) n x 1. ( ) Setting x = 1 and n = gives = (1 + 1) 49 = 49. This ( ) could( also be ) done without calculus. A binomial ( ) coefficient ( identity ) is n n 1 49 = n. In the given problem, this says =. If we 1 1 do things without summation notation (so the pattern might be more obvious) this goes as follows: ( ) ( ) ( ) ( ) ( ) ( ) ( ) = ( ) ( ) ( ) = (( ) ( ) ( )) = = Consider the word SIZIGIES. (a) How many arrangements are there of the word? Solution: There are 8 letters: an E, a G, three I s, two S s and a Z. The number 8! of arrangements is 1!1!3!!1! = 8!, or !! (b) How many arrangements have the three I s together? Solution: There are 6 ways to place the I s (the first I can be in any of positions 1 through 6). This leaves 5 additional positions. We still have to pay attention 5! to identical letters (the two S s) so the total is 6 1!1!!1! = 6! = 360. Page 5

6 (c) How many don t have the three I s together? Solution: We count the complement, the answer being the difference of the previous two answers: = (d) How many don t have any I s together? Solution: Another hard problem. One could enumerate the possible positions of the I s: In positions 1, 3, 5 or 1, 3, 6 or.... I get 0 possible ways to place the I s. One way to be systematic: First place an i in position 1. If the second i is in position 3, there are 4 places for the next i. If the second i is in position 4, there are 3 ways and so on, leading to = 10 ways to have an i in position 1. You might now be able to guess there are = 6 ways for the first i to be in position, + 1 = 3 ways for the first i to be in position 3, and 1 way if it is in position 4 for a total of = 0 ways. We still 5! have to arrange the other letters. As in part b, this happens in 1!1!!1! = 60 ways. The total is 0 60 = This problem deals with solutions to x + y + z = in integers. Since I did not get this far in class, this material will NOT be on the exam. 7. The US Senate has 100 members, two from each of the states. (a) How many committees can be formed from the 100 senators? Solution: This question ass how many subsets a 100-element set can have. The answer: 100. (b) How many committees are there with exactly one senator from each state? Solution: For each state, pic a senator. The answer:. (c) How many committees of size 5 are there? ( ) 100 Solution: We need five people from the 100 senators, so. 5 Page 6

7 (d) How many committees of size 5 are there if you are not allowed two senators from the same state? Solution: Select ( ) which of the five states to use, and then pic a senator from each state: 5. 5 (e) How many committees of size 5 are there if you are not allowed two senators from the same state, but one of the senators must be from Minnesota? Solution: Pic a Minnesota senator, then pic four of the ( remaining ) ( states, ) and last, a senator from each of those states. The count is 4 = Give a combinatorial proof for each of the following. (a) n 3 = (n 1) 3 +3(n 1) +3(n 1)+1 Hint: Count strings xyz where each of x, y, z is an integer between 1 and n. For the right hand side, brea into cases based on how many 1 s there are in the string. (b) Solution: We count in two ways, as suggested by the hint. The direct approach is that each of x, y, z has n choices for a total of n 3 possibilities. For the more complicated count, we consider how many 1 s there are in the string, with four cases: no ones, one 1, two 1 s, three 1 s or four 1 s. With no ones, there are n 1 choices for each of x, y, x leading to a count of (n 1) 3. If there is one 1, pic one of x, y, z to be 1, and the others have n 1 choices for a total of 3(n 1). If we have two 1 s, select which two (three ways), and the third variable has n 1 choices, giving 3(n 1), and there is only one string, 1 1 1, with three 1 s. The total from this method is (n 1) 3 +3(n 1) +3(n 1)+1. Since both methods are legitimate approaches, they must give the same answer, so n 3 = (n 1) 3 + 3(n 1) + 3(n 1) + 1. ( ) ( ) ( ) 3n n n = + n + Hint: Pic two numbers between 1 and 3n. For the right hand side, use cases based on how many of the numbers are divisible by 3. If you lie committee models, you could count how many committees of size could be formed from n men and n women. Solution: ( ) If we follow the first hint (numbers between 1 and 3n) then there 3n are ways to pic two numbers (this was the easy count.) The more Page 7

8 complicated approach is based on how many of the numbers are divisible by 3, there being three cases: Both are divisible by three, one of them is, or none of them is divisible by 3. Now exactly n integers between 1 and 3n are divisible by 3, meaning that n ( of ) them are not. For the first case, we select two of n the n multiples of 3 in ways. If only one of the numbers is divisible by 3, pic that number (n ways) and then pic a second that is not divisible by 3 (n ways). All totaled, this gives (n)(n) = n combinations. Finally, ( ) if n we want two of the n numbers not divisible by 3, we can pic them in ( ) ( ) n n ways. All totaled, this method gives a count of + n +. Since both ( ) these ( methods ) count ( the ) same thing, they must give the same answer, so 3n n n = + n Which nonnegative integers can be written as sums of 5 s and 6 s? Prove your answer is correct, both with regular induction and by strong induction. Solution: We start with a list of possible numbers: 5, 6, 10, 11, 1, 15, 16, 17, 18, 0, 1,, 3, 4, 5, 6,.... The first 9 numbers on the list are incidental or accidents of mathematics. What is to be proved is that all integers from 0 on can be written as sums of 5 s and 6 s. First, the strong induction proof. To be careful, we again verify the base cases. In this problem, there are five of them (getting 5 in a row). They are: 0 = , 1 = , = 5 + 6, 3 = , and 4 = Let P (n) be the statement that n is the sum of 5 s and 6 s. Having verified the base case, the inductive hypothesis is that P () is true for all with 0 n, where n is some integer with n 4. The goal is to prove that P (n + 1) is also true. That is, we have to show that n + 1 is the sum of 5 s and 6 s. Intuitively, the reason things wor is that once we have five things in a row, we should be able to just at 5 s to previous things. Since this is a class related to proving things, we should be more rigorous. What should we add 5 to in order to get n + 1? The answer is n 4. So here is the proof that n + 1 is the sum of 5 s and 6 s: Since n 4, n 4 0. By our inductive hypothesis, anything between 0 and n can be written as the sum of 5 s and 6 s, so there are integers j and for which n 4 = 5j + 6. Adding 5 to this, n + 1 = 5(j + 1) + 6, so n + 1 is also the sum of 5 s and 6 s. I thin the standard induction argument is tricier. We need to be able to get from n to n + 1 rather than from n 4 to n + 1. To increase by 1, we loo for ways to Page 8

9 convert 5 s to 6 s so as to increase the total by 1, and ways to convert 6 s to 5 s to do the same. It is easy to convert 5 s to 6 s, of course: If we have even a single 5, replacing it by a 6 increases the sum by 1. The other direction is slightly harder: we can trade four 6 s for five 5 s to increase the sum by 1. Said differently, suppose that n = 5m + 6 for some integers m and. Then n + 1 = 5(m 1) + 6( + 1), and n + 1 = 5(m + 5) + 6( 4). This means we can go from n to n + 1 if we have at least one 5 or four 6 s. The cases where we can t get from n to n + 1 must be when we have fewer than one 5 and fewer than four 6 s. But = 18, so if n > 18 and n is the sum of 5 s and 6 s, then we must have at least one 5 or at least four 6 s. What this means is that as soon as we find an n > 18 which is a sum of 5 s and 6 s, all larger numbers should be sums of 5 s and 6 s as well. The smallest number n > 18 which is the sum of 5 s and 6 s is n = 0. (If 19 were the sum of 5 s and 6 s we could have started there, but it isn t.) With all this preparation, here is the actual proof by regular induction. We prove that each n 0 is the sum of 5 s and 6 s. The base case is n = 0, and since 0 = , the base case is true. So let n 0, and suppose that n is the sum of 5 s and 6 s, say n = 5m + 6. Since n > 0, either m 1 or 4. If m 1, then n + 1 = 5(m 1) + 6( + 1). If 4, then n + 1 = 5(m + 5) + 6( 4). Either way, n + 1 is the sum of 5 s and 6 s. By the principle of (regular) induction, all numbers n 0 are sums of 5 s and 6 s. 10. Here are two more strong induction problems. (a) If x + 1 is an integer, prove that for all n 1, x xn + 1 is also an integer. Hint: one x n approach is to multiply: (x n + 1 )(x + 1) and solve for x n x xn x n+1 Solution: Following the hint, (x n + 1 )(x + 1) = x n x xn x n 1 + 1, so x n+1 x n 1 x n = (x n + 1 )(x + 1) x n+1 x n x (xn ). Since there are terms involving x n 1 n and n 1, we need two base cases. We can let one of the base cases be n = 0, for which x n + 1 = 1+1 = is always an integer. The other base case is n = 1, x n which is our assumption. So let x + 1 be an integer, and suppose that x x + 1 x is an integer for all with 0 n. Then by hypothesis, x n + 1, x n 1 + 1, x n x n 1 and x + 1 are all integers, so x xn = (x n + 1 )(x + 1) x n+1 x n x (xn ) is x n 1 also an integer. By the principle of (strong) induction, it follows that x n + 1 x n is an integer for all positive integers n. Page 9

10 (b) If a 0 = 1, a 1 =, a = 4, and if a n = a n 1 + a n + a n 3 for all n 3, prove that a n n for all n 0. Solution: Since a n depends on three previous things, we need three base cases, which we already have (a 0 = 1 = 0, a 1 = = 1, a = 4 =.) Suppose that a for all with 0 n. Then a n+1 = a n + a n 1 + a n n + n 1 + n = n+1 ( ) = 7 8 n+1 n+1. That is, a n+1 n+1. By the principle of (strong) mathematical induction, a n n for all n Find the recurrence relations, with initial conditions, for each of the following problems. (a) Ternary strings of length n without 3 consecutive 0 s. (b) Ternary strings of length n WITH 3 consecutive 0 s. (c) Ternary strings of length n without 3 consecutive even numbers. (d) ternary strings of length n WITH 3 consecutive even numbers. There will be nothing lie question 11 on the exam. Page 10

Some Review Problems for Exam 3: Solutions

Some Review Problems for Exam 3: Solutions Math 3355 Fall 018 Some Review Problems for Exam 3: Solutions I thought I d start by reviewing some counting formulas. Counting the Complement: Given a set U (the universe for the problem), if you want

More information

Some Review Problems for Exam 2: Solutions

Some Review Problems for Exam 2: Solutions Math 5366 Fall 017 Some Review Problems for Exam : Solutions 1 Find the coefficient of x 15 in each of the following: 1 (a) (1 x) 6 Solution: 1 (1 x) = ( ) k + 5 x k 6 k ( ) ( ) 0 0 so the coefficient

More information

Combinatorics. But there are some standard techniques. That s what we ll be studying.

Combinatorics. But there are some standard techniques. That s what we ll be studying. Combinatorics Problem: How to count without counting. How do you figure out how many things there are with a certain property without actually enumerating all of them. Sometimes this requires a lot of

More information

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction Math 4 Summer 01 Elementary Number Theory Notes on Mathematical Induction Principle of Mathematical Induction Recall the following axiom for the set of integers. Well-Ordering Axiom for the Integers If

More information

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers.

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers. MATH 4 Summer 011 Elementary Number Theory Notes on Mathematical Induction Principle of Mathematical Induction Recall the following axiom for the set of integers. Well-Ordering Axiom for the Integers If

More information

Math 378 Spring 2011 Assignment 4 Solutions

Math 378 Spring 2011 Assignment 4 Solutions Math 3 Spring 2011 Assignment 4 Solutions Brualdi 6.2. The properties are P 1 : is divisible by 4. P 2 : is divisible by 6. P 3 : is divisible by. P 4 : is divisible by 10. Preparing to use inclusion-exclusion,

More information

CMSC Discrete Mathematics SOLUTIONS TO FIRST MIDTERM EXAM October 18, 2005 posted Nov 2, 2005

CMSC Discrete Mathematics SOLUTIONS TO FIRST MIDTERM EXAM October 18, 2005 posted Nov 2, 2005 CMSC-37110 Discrete Mathematics SOLUTIONS TO FIRST MIDTERM EXAM October 18, 2005 posted Nov 2, 2005 Instructor: László Babai Ryerson 164 e-mail: laci@cs This exam contributes 20% to your course grade.

More information

Binomial Coefficient Identities/Complements

Binomial Coefficient Identities/Complements Binomial Coefficient Identities/Complements CSE21 Fall 2017, Day 4 Oct 6, 2017 https://sites.google.com/a/eng.ucsd.edu/cse21-fall-2017-miles-jones/ permutation P(n,r) = n(n-1) (n-2) (n-r+1) = Terminology

More information

Discrete Probability

Discrete Probability Discrete Probability Counting Permutations Combinations r- Combinations r- Combinations with repetition Allowed Pascal s Formula Binomial Theorem Conditional Probability Baye s Formula Independent Events

More information

1 Basic Combinatorics

1 Basic Combinatorics 1 Basic Combinatorics 1.1 Sets and sequences Sets. A set is an unordered collection of distinct objects. The objects are called elements of the set. We use braces to denote a set, for example, the set

More information

Math Fall Final Exam. Friday, 14 December Show all work for full credit. The problems are worth 6 points each.

Math Fall Final Exam. Friday, 14 December Show all work for full credit. The problems are worth 6 points each. Name: Math 50 - Fall 2007 Final Exam Friday, 4 December 2007 Show all work for full credit. The problems are worth 6 points each.. Find the number of subsets of S = {, 2,... 0} that contain exactly 5 elements,

More information

MATH 243E Test #3 Solutions

MATH 243E Test #3 Solutions MATH 4E Test # Solutions () Find a recurrence relation for the number of bit strings of length n that contain a pair of consecutive 0s. You do not need to solve this recurrence relation. (Hint: Consider

More information

1 Sequences and Summation

1 Sequences and Summation 1 Sequences and Summation A sequence is a function whose domain is either all the integers between two given integers or all the integers greater than or equal to a given integer. For example, a m, a m+1,...,

More information

0.1. Linear transformations

0.1. Linear transformations Suggestions for midterm review #3 The repetitoria are usually not complete; I am merely bringing up the points that many people didn t now on the recitations Linear transformations The following mostly

More information

Probabilistic models

Probabilistic models Kolmogorov (Andrei Nikolaevich, 1903 1987) put forward an axiomatic system for probability theory. Foundations of the Calculus of Probabilities, published in 1933, immediately became the definitive formulation

More information

Basic counting techniques. Periklis A. Papakonstantinou Rutgers Business School

Basic counting techniques. Periklis A. Papakonstantinou Rutgers Business School Basic counting techniques Periklis A. Papakonstantinou Rutgers Business School i LECTURE NOTES IN Elementary counting methods Periklis A. Papakonstantinou MSIS, Rutgers Business School ALL RIGHTS RESERVED

More information

CS1800: Sequences & Sums. Professor Kevin Gold

CS1800: Sequences & Sums. Professor Kevin Gold CS1800: Sequences & Sums Professor Kevin Gold Moving Toward Analysis of Algorithms Today s tools help in the analysis of algorithms. We ll cover tools for deciding what equation best fits a sequence of

More information

Discrete Mathematics & Mathematical Reasoning Chapter 6: Counting

Discrete Mathematics & Mathematical Reasoning Chapter 6: Counting Discrete Mathematics & Mathematical Reasoning Chapter 6: Counting Kousha Etessami U. of Edinburgh, UK Kousha Etessami (U. of Edinburgh, UK) Discrete Mathematics (Chapter 6) 1 / 39 Chapter Summary The Basics

More information

Lecture 4: Counting, Pigeonhole Principle, Permutations, Combinations Lecturer: Lale Özkahya

Lecture 4: Counting, Pigeonhole Principle, Permutations, Combinations Lecturer: Lale Özkahya BBM 205 Discrete Mathematics Hacettepe University http://web.cs.hacettepe.edu.tr/ bbm205 Lecture 4: Counting, Pigeonhole Principle, Permutations, Combinations Lecturer: Lale Özkahya Resources: Kenneth

More information

Fall 2017 Test II review problems

Fall 2017 Test II review problems Fall 2017 Test II review problems Dr. Holmes October 18, 2017 This is a quite miscellaneous grab bag of relevant problems from old tests. Some are certainly repeated. 1. Give the complete addition and

More information

Solutions to February 2008 Problems

Solutions to February 2008 Problems Solutions to February 008 Problems Problem. An Egyptian-style pyramid has a square b b base and height h. What is the volume of the smallest sphere that contains the pyramid? (This may be a little trickier

More information

Q 1 Find the square root of 729. 6. Squares and Square Roots Q 2 Fill in the blank using the given pattern. 7 2 = 49 67 2 = 4489 667 2 = 444889 6667 2 = Q 3 Without adding find the sum of 1 + 3 + 5 + 7

More information

2 Generating Functions

2 Generating Functions 2 Generating Functions In this part of the course, we re going to introduce algebraic methods for counting and proving combinatorial identities. This is often greatly advantageous over the method of finding

More information

2 - Strings and Binomial Coefficients

2 - Strings and Binomial Coefficients November 14, 2017 2 - Strings and Binomial Coefficients William T. Trotter trotter@math.gatech.edu Basic Definition Let n be a positive integer and let [n] = {1, 2,, n}. A sequence of length n such as

More information

Probability. Part 1 - Basic Counting Principles. 1. References. (1) R. Durrett, The Essentials of Probability, Duxbury.

Probability. Part 1 - Basic Counting Principles. 1. References. (1) R. Durrett, The Essentials of Probability, Duxbury. Probability Part 1 - Basic Counting Principles 1. References (1) R. Durrett, The Essentials of Probability, Duxbury. (2) L.L. Helms, Probability Theory with Contemporary Applications, Freeman. (3) J.J.

More information

Exam 2 Solutions. x 1 x. x 4 The generating function for the problem is the fourth power of this, (1 x). 4

Exam 2 Solutions. x 1 x. x 4 The generating function for the problem is the fourth power of this, (1 x). 4 Math 5366 Fall 015 Exam Solutions 1. (0 points) Find the appropriate generating function (in closed form) for each of the following problems. Do not find the coefficient of x n. (a) In how many ways can

More information

Review problems solutions

Review problems solutions Review problems solutions Math 3152 December 15, 2017 1. Use the binomial theorem to prove that, for all n 1 and k satisfying 0 k n, ( )( ) { n i ( 1) i k 1 if k n; i k 0 otherwise. ik Solution: Using

More information

Sums and Products. a i = a 1. i=1. a i = a i a n. n 1

Sums and Products. a i = a 1. i=1. a i = a i a n. n 1 Sums and Products -27-209 In this section, I ll review the notation for sums and products Addition and multiplication are binary operations: They operate on two numbers at a time If you want to add or

More information

Some Review Problems for Exam 1: Solutions

Some Review Problems for Exam 1: Solutions Math 3355 Fall 2018 Some Review Problems for Exam 1: Solutions Here is my quick review of proof techniques. I will focus exclusively on propositions of the form p q, or more properly, x P (x) Q(x) or x

More information

First Midterm Examination

First Midterm Examination 2015-2016 Spring Semester First Midterm Examination 1) How many numbers in the set {1000, 1001, 1002,..., 9999} have sum of digits equal to 17? 2) Let n Z +. Find the negation, converse and contrapositive

More information

Math 3361-Modern Algebra Lecture 08 9/26/ Cardinality

Math 3361-Modern Algebra Lecture 08 9/26/ Cardinality Math 336-Modern Algebra Lecture 08 9/26/4. Cardinality I started talking about cardinality last time, and you did some stuff with it in the Homework, so let s continue. I said that two sets have the same

More information

MATH 3012 N Solutions to Review for Midterm 2

MATH 3012 N Solutions to Review for Midterm 2 MATH 301 N Solutions to Review for Midterm March 7, 017 1. In how many ways can a n rectangular checkerboard be tiled using 1 and pieces? Find a closed formula. If t n is the number of ways to tile the

More information

Chapter 11 - Sequences and Series

Chapter 11 - Sequences and Series Calculus and Analytic Geometry II Chapter - Sequences and Series. Sequences Definition. A sequence is a list of numbers written in a definite order, We call a n the general term of the sequence. {a, a

More information

Probabilistic models

Probabilistic models Probabilistic models Kolmogorov (Andrei Nikolaevich, 1903 1987) put forward an axiomatic system for probability theory. Foundations of the Calculus of Probabilities, published in 1933, immediately became

More information

MATH 114 Fall 2004 Solutions to practice problems for Final Exam

MATH 114 Fall 2004 Solutions to practice problems for Final Exam MATH 11 Fall 00 Solutions to practice problems for Final Exam Reminder: the final exam is on Monday, December 13 from 11am - 1am. Office hours: Thursday, December 9 from 1-5pm; Friday, December 10 from

More information

1 The Basic Counting Principles

1 The Basic Counting Principles 1 The Basic Counting Principles The Multiplication Rule If an operation consists of k steps and the first step can be performed in n 1 ways, the second step can be performed in n ways [regardless of how

More information

C if U can. Algebra. Name

C if U can. Algebra. Name C if U can Algebra Name.. How will this booklet help you to move from a D to a C grade? The topic of algebra is split into six units substitution, expressions, factorising, equations, trial and improvement

More information

CSCE 222 Discrete Structures for Computing. Dr. Hyunyoung Lee

CSCE 222 Discrete Structures for Computing. Dr. Hyunyoung Lee CSCE 222 Discrete Structures for Computing Sequences and Summations Dr. Hyunyoung Lee Based on slides by Andreas Klappenecker 1 Sequences 2 Sequences A sequence is a function from a subset of the set of

More information

. As the binomial coefficients are integers we have that. 2 n(n 1).

. As the binomial coefficients are integers we have that. 2 n(n 1). Math 580 Homework. 1. Divisibility. Definition 1. Let a, b be integers with a 0. Then b divides b iff there is an integer k such that b = ka. In the case we write a b. In this case we also say a is a factor

More information

Discrete Mathematics. Kishore Kothapalli

Discrete Mathematics. Kishore Kothapalli Discrete Mathematics Kishore Kothapalli 2 Chapter 4 Advanced Counting Techniques In the previous chapter we studied various techniques for counting and enumeration. However, there are several interesting

More information

Name: Exam 2 Solutions. March 13, 2017

Name: Exam 2 Solutions. March 13, 2017 Department of Mathematics University of Notre Dame Math 00 Finite Math Spring 07 Name: Instructors: Conant/Galvin Exam Solutions March, 07 This exam is in two parts on pages and contains problems worth

More information

Recurrence Relations and Recursion: MATH 180

Recurrence Relations and Recursion: MATH 180 Recurrence Relations and Recursion: MATH 180 1: Recursively Defined Sequences Example 1: The sequence a 1,a 2,a 3,... can be defined recursively as follows: (1) For all integers k 2, a k = a k 1 + 1 (2)

More information

Climbing an Infinite Ladder

Climbing an Infinite Ladder Section 5.1 Section Summary Mathematical Induction Examples of Proof by Mathematical Induction Mistaken Proofs by Mathematical Induction Guidelines for Proofs by Mathematical Induction Climbing an Infinite

More information

An Introduction to Combinatorics

An Introduction to Combinatorics Chapter 1 An Introduction to Combinatorics What Is Combinatorics? Combinatorics is the study of how to count things Have you ever counted the number of games teams would play if each team played every

More information

Introduction to Induction (LAMC, 10/14/07)

Introduction to Induction (LAMC, 10/14/07) Introduction to Induction (LAMC, 10/14/07) Olga Radko October 1, 007 1 Definitions The Method of Mathematical Induction (MMI) is usually stated as one of the axioms of the natural numbers (so-called Peano

More information

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence Section 2.4 Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations Introduction Sequences are ordered lists of elements.

More information

CS 360, Winter Morphology of Proof: An introduction to rigorous proof techniques

CS 360, Winter Morphology of Proof: An introduction to rigorous proof techniques CS 30, Winter 2011 Morphology of Proof: An introduction to rigorous proof techniques 1 Methodology of Proof An example Deep down, all theorems are of the form If A then B, though they may be expressed

More information

Divisibility = 16, = 9, = 2, = 5. (Negative!)

Divisibility = 16, = 9, = 2, = 5. (Negative!) Divisibility 1-17-2018 You probably know that division can be defined in terms of multiplication. If m and n are integers, m divides n if n = mk for some integer k. In this section, I ll look at properties

More information

Systematic Uncertainty Max Bean John Jay College of Criminal Justice, Physics Program

Systematic Uncertainty Max Bean John Jay College of Criminal Justice, Physics Program Systematic Uncertainty Max Bean John Jay College of Criminal Justice, Physics Program When we perform an experiment, there are several reasons why the data we collect will tend to differ from the actual

More information

Induction 1 = 1(1+1) = 2(2+1) = 3(3+1) 2

Induction 1 = 1(1+1) = 2(2+1) = 3(3+1) 2 Induction 0-8-08 Induction is used to prove a sequence of statements P(), P(), P(3),... There may be finitely many statements, but often there are infinitely many. For example, consider the statement ++3+

More information

{ 0! = 1 n! = n(n 1)!, n 1. n! =

{ 0! = 1 n! = n(n 1)!, n 1. n! = Summations Question? What is the sum of the first 100 positive integers? Counting Question? In how many ways may the first three horses in a 10 horse race finish? Multiplication Principle: If an event

More information

One-to-one functions and onto functions

One-to-one functions and onto functions MA 3362 Lecture 7 - One-to-one and Onto Wednesday, October 22, 2008. Objectives: Formalize definitions of one-to-one and onto One-to-one functions and onto functions At the level of set theory, there are

More information

Notes. Combinatorics. Combinatorics II. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

Notes. Combinatorics. Combinatorics II. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006 Combinatorics Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Spring 2006 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 4.1-4.6 & 6.5-6.6 of Rosen cse235@cse.unl.edu

More information

Math 101: Course Summary

Math 101: Course Summary Math 101: Course Summary Rich Schwartz August 22, 2009 General Information: Math 101 is a first course in real analysis. The main purpose of this class is to introduce real analysis, and a secondary purpose

More information

Contest Number Theory

Contest Number Theory Contest Number Theory Andre Kessler December 7, 2008 Introduction Number theory is one of the core subject areas of mathematics. It can be somewhat loosely defined as the study of the integers. Unfortunately,

More information

Counting in the Twilight Zone

Counting in the Twilight Zone Chapter 17 Counting in the Twilight Zone In Volume 1 we examined a great many counting methods, but all were based on the rock of common sense. In this chapter we will look at counting methods which go

More information

Chapter 1 Review of Equations and Inequalities

Chapter 1 Review of Equations and Inequalities Chapter 1 Review of Equations and Inequalities Part I Review of Basic Equations Recall that an equation is an expression with an equal sign in the middle. Also recall that, if a question asks you to solve

More information

6 CARDINALITY OF SETS

6 CARDINALITY OF SETS 6 CARDINALITY OF SETS MATH10111 - Foundations of Pure Mathematics We all have an idea of what it means to count a finite collection of objects, but we must be careful to define rigorously what it means

More information

Module 03 Lecture 14 Inferential Statistics ANOVA and TOI

Module 03 Lecture 14 Inferential Statistics ANOVA and TOI Introduction of Data Analytics Prof. Nandan Sudarsanam and Prof. B Ravindran Department of Management Studies and Department of Computer Science and Engineering Indian Institute of Technology, Madras Module

More information

CS 2336 Discrete Mathematics

CS 2336 Discrete Mathematics CS 2336 Discrete Mathematics Lecture 8 Counting: Permutations and Combinations 1 Outline Definitions Permutation Combination Interesting Identities 2 Definitions Selection and arrangement of objects appear

More information

Counting Methods. CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo

Counting Methods. CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo Counting Methods CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo c Xin He (University at Buffalo) CSE 191 Discrete Structures 1 / 48 Need for Counting The problem of counting

More information

Math 283 Spring 2013 Presentation Problems 4 Solutions

Math 283 Spring 2013 Presentation Problems 4 Solutions Math 83 Spring 013 Presentation Problems 4 Solutions 1. Prove that for all n, n (1 1k ) k n + 1 n. Note that n means (1 1 ) 3 4 + 1 (). n 1 Now, assume that (1 1k ) n n. Consider k n (1 1k ) (1 1n ) n

More information

MATH 10B METHODS OF MATHEMATICS: CALCULUS, STATISTICS AND COMBINATORICS

MATH 10B METHODS OF MATHEMATICS: CALCULUS, STATISTICS AND COMBINATORICS MATH 10B METHODS OF MATHEMATICS: CALCULUS, STATISTICS AND COMBINATORICS Lior Pachter and Lawrence C. Evans Department of Mathematics University of California Berkeley, CA 94720 January 21, 2013 Lior Pachter

More information

Discrete Mathematics. Spring 2017

Discrete Mathematics. Spring 2017 Discrete Mathematics Spring 2017 Previous Lecture Principle of Mathematical Induction Mathematical Induction: rule of inference Mathematical Induction: Conjecturing and Proving Climbing an Infinite Ladder

More information

CS280, Spring 2004: Final

CS280, Spring 2004: Final CS280, Spring 2004: Final 1. [4 points] Which of the following relations on {0, 1, 2, 3} is an equivalence relation. (If it is, explain why. If it isn t, explain why not.) Just saying Yes or No with no

More information

Math 3 Proportion & Probability Part 2 Sequences, Patterns, Frequency Tables & Venn Diagrams

Math 3 Proportion & Probability Part 2 Sequences, Patterns, Frequency Tables & Venn Diagrams Math 3 Proportion & Probability Part 2 Sequences, Patterns, Frequency Tables & Venn Diagrams 1 MATH 2 REVIEW ARITHMETIC SEQUENCES In an Arithmetic Sequence the difference between one term and the next

More information

Counting. Mukulika Ghosh. Fall Based on slides by Dr. Hyunyoung Lee

Counting. Mukulika Ghosh. Fall Based on slides by Dr. Hyunyoung Lee Counting Mukulika Ghosh Fall 2018 Based on slides by Dr. Hyunyoung Lee Counting Counting The art of counting is known as enumerative combinatorics. One tries to count the number of elements in a set (or,

More information

Unit Combinatorics State pigeonhole principle. If k pigeons are assigned to n pigeonholes and n < k then there is at least one pigeonhole containing more than one pigeons. Find the recurrence relation

More information

21-301, Spring 2019 Homework 5 Solutions

21-301, Spring 2019 Homework 5 Solutions 21-301, Spring 2019 Homewor 5 Solutions Michael Anastos Not to be published without written consent of the author or the instructors of the course. (Please contact me if you find any errors!) Problem 1

More information

Confidence Intervals. - simply, an interval for which we have a certain confidence.

Confidence Intervals. - simply, an interval for which we have a certain confidence. Confidence Intervals I. What are confidence intervals? - simply, an interval for which we have a certain confidence. - for example, we are 90% certain that an interval contains the true value of something

More information

Introducing Proof 1. hsn.uk.net. Contents

Introducing Proof 1. hsn.uk.net. Contents Contents 1 1 Introduction 1 What is proof? 1 Statements, Definitions and Euler Diagrams 1 Statements 1 Definitions Our first proof Euler diagrams 4 3 Logical Connectives 5 Negation 6 Conjunction 7 Disjunction

More information

Generating Function Notes , Fall 2005, Prof. Peter Shor

Generating Function Notes , Fall 2005, Prof. Peter Shor Counting Change Generating Function Notes 80, Fall 00, Prof Peter Shor In this lecture, I m going to talk about generating functions We ve already seen an example of generating functions Recall when we

More information

CSCE 222 Discrete Structures for Computing. Review for Exam 2. Dr. Hyunyoung Lee !!!

CSCE 222 Discrete Structures for Computing. Review for Exam 2. Dr. Hyunyoung Lee !!! CSCE 222 Discrete Structures for Computing Review for Exam 2 Dr. Hyunyoung Lee 1 Strategy for Exam Preparation - Start studying now (unless have already started) - Study class notes (lecture slides and

More information

4 Linear Recurrence Relations & the Fibonacci Sequence

4 Linear Recurrence Relations & the Fibonacci Sequence 4 Linear Recurrence Relations & the Fibonacci Sequence Recall the classic example of the Fibonacci sequence (F n ) n=1 the relations: F n+ = F n+1 + F n F 1 = F = 1 = (1, 1,, 3, 5, 8, 13, 1,...), defined

More information

IVA S STUDY GUIDE FOR THE DISCRETE FINAL EXAM - SELECTED SOLUTIONS. 1. Combinatorics

IVA S STUDY GUIDE FOR THE DISCRETE FINAL EXAM - SELECTED SOLUTIONS. 1. Combinatorics IVA S STUDY GUIDE FOR THE DISCRETE FINAL EXAM - SELECTED SOLUTIONS Combinatorics Go over combinatorics examples in the text Review all the combinatorics problems from homewor Do at least a couple of extra

More information

MATH STUDENT BOOK. 12th Grade Unit 9

MATH STUDENT BOOK. 12th Grade Unit 9 MATH STUDENT BOOK 12th Grade Unit 9 Unit 9 COUNTING PRINCIPLES MATH 1209 COUNTING PRINCIPLES INTRODUCTION 1. PROBABILITY DEFINITIONS, SAMPLE SPACES, AND PROBABILITY ADDITION OF PROBABILITIES 11 MULTIPLICATION

More information

Solutions to Second Midterm

Solutions to Second Midterm Operations Management 33:623:386:04/05 Professor Eckstein, Spring 2002 Solutions to Second Midterm Q1 Q2 Q3 Total Max 35 33 30 94 Mean 25.9 26.4 27.6 79.8 Median 27.0 27.0 28.0 81.0 Min 8 15 20 50 Standard

More information

Notes on counting. James Aspnes. December 13, 2010

Notes on counting. James Aspnes. December 13, 2010 Notes on counting James Aspnes December 13, 2010 1 What counting is Recall that in set theory we formally defined each natural number as the set of all smaller natural numbers, so that n = {0, 1, 2,...,

More information

1.1.1 Algebraic Operations

1.1.1 Algebraic Operations 1.1.1 Algebraic Operations We need to learn how our basic algebraic operations interact. When confronted with many operations, we follow the order of operations: Parentheses Exponentials Multiplication

More information

Algebra Year 10. Language

Algebra Year 10. Language Algebra Year 10 Introduction In Algebra we do Maths with numbers, but some of those numbers are not known. They are represented with letters, and called unknowns, variables or, most formally, literals.

More information

Massachusetts Institute of Technology Handout J/18.062J: Mathematics for Computer Science May 3, 2000 Professors David Karger and Nancy Lynch

Massachusetts Institute of Technology Handout J/18.062J: Mathematics for Computer Science May 3, 2000 Professors David Karger and Nancy Lynch Massachusetts Institute of Technology Handout 48 6.042J/18.062J: Mathematics for Computer Science May 3, 2000 Professors David Karger and Nancy Lynch Quiz 2 Solutions Problem 1 [10 points] Consider n >

More information

Introduction to Combinatorial Mathematics

Introduction to Combinatorial Mathematics Introduction to Combinatorial Mathematics George Voutsadakis 1 1 Mathematics and Computer Science Lake Superior State University LSSU Math 300 George Voutsadakis (LSSU) Combinatorics April 2016 1 / 57

More information

Seunghee Ye Ma 8: Week 2 Oct 6

Seunghee Ye Ma 8: Week 2 Oct 6 Week 2 Summary This week, we will learn about sequences and real numbers. We first define what we mean by a sequence and discuss several properties of sequences. Then, we will talk about what it means

More information

Discrete Math Midterm 2014

Discrete Math Midterm 2014 Discrete Math Midterm 01 Name Student # Note: The numbers used in the question varied from exam to exam, so your exam might have a different numerical answer than the one given below. 1. (3 pts Sixteen

More information

Math 564 Homework 1. Solutions.

Math 564 Homework 1. Solutions. Math 564 Homework 1. Solutions. Problem 1. Prove Proposition 0.2.2. A guide to this problem: start with the open set S = (a, b), for example. First assume that a >, and show that the number a has the properties

More information

The following are generally referred to as the laws or rules of exponents. x a x b = x a+b (5.1) 1 x b a (5.2) (x a ) b = x ab (5.

The following are generally referred to as the laws or rules of exponents. x a x b = x a+b (5.1) 1 x b a (5.2) (x a ) b = x ab (5. Chapter 5 Exponents 5. Exponent Concepts An exponent means repeated multiplication. For instance, 0 6 means 0 0 0 0 0 0, or,000,000. You ve probably noticed that there is a logical progression of operations.

More information

Note that we are looking at the true mean, μ, not y. The problem for us is that we need to find the endpoints of our interval (a, b).

Note that we are looking at the true mean, μ, not y. The problem for us is that we need to find the endpoints of our interval (a, b). Confidence Intervals 1) What are confidence intervals? Simply, an interval for which we have a certain confidence. For example, we are 90% certain that an interval contains the true value of something

More information

Problem 1: Suppose A, B, C and D are finite sets such that A B = C D and C = D. Prove or disprove: A = B.

Problem 1: Suppose A, B, C and D are finite sets such that A B = C D and C = D. Prove or disprove: A = B. Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination III (Spring 2007) Problem 1: Suppose A, B, C and D are finite sets

More information

CHAPTER 8 Advanced Counting Techniques

CHAPTER 8 Advanced Counting Techniques 96 Chapter 8 Advanced Counting Techniques CHAPTER 8 Advanced Counting Techniques SECTION 8. Applications of Recurrence Relations 2. a) A permutation of a set with n elements consists of a choice of a first

More information

EXAMPLES OF PROOFS BY INDUCTION

EXAMPLES OF PROOFS BY INDUCTION EXAMPLES OF PROOFS BY INDUCTION KEITH CONRAD 1. Introduction In this handout we illustrate proofs by induction from several areas of mathematics: linear algebra, polynomial algebra, and calculus. Becoming

More information

P (E) = P (A 1 )P (A 2 )... P (A n ).

P (E) = P (A 1 )P (A 2 )... P (A n ). Lecture 9: Conditional probability II: breaking complex events into smaller events, methods to solve probability problems, Bayes rule, law of total probability, Bayes theorem Discrete Structures II (Summer

More information

Recursion: Introduction and Correctness

Recursion: Introduction and Correctness Recursion: Introduction and Correctness CSE21 Winter 2017, Day 7 (B00), Day 4-5 (A00) January 25, 2017 http://vlsicad.ucsd.edu/courses/cse21-w17 Today s Plan From last time: intersecting sorted lists and

More information

Introduction to Algebra: The First Week

Introduction to Algebra: The First Week Introduction to Algebra: The First Week Background: According to the thermostat on the wall, the temperature in the classroom right now is 72 degrees Fahrenheit. I want to write to my friend in Europe,

More information

CDM Combinatorial Principles

CDM Combinatorial Principles CDM Combinatorial Principles 1 Counting Klaus Sutner Carnegie Mellon University Pigeon Hole 22-in-exclusion 2017/12/15 23:16 Inclusion/Exclusion Counting 3 Aside: Ranking and Unranking 4 Counting is arguably

More information

2 Elementary number theory

2 Elementary number theory 2 Elementary number theory 2.1 Introduction Elementary number theory is concerned with properties of the integers. Hence we shall be interested in the following sets: The set if integers {... 2, 1,0,1,2,3,...},

More information

Chapter Summary. Sets (2.1) Set Operations (2.2) Functions (2.3) Sequences and Summations (2.4) Cardinality of Sets (2.5) Matrices (2.

Chapter Summary. Sets (2.1) Set Operations (2.2) Functions (2.3) Sequences and Summations (2.4) Cardinality of Sets (2.5) Matrices (2. Chapter 2 Chapter Summary Sets (2.1) Set Operations (2.2) Functions (2.3) Sequences and Summations (2.4) Cardinality of Sets (2.5) Matrices (2.6) Section 2.1 Section Summary Definition of sets Describing

More information

Summer HSSP Lecture Notes Week 1. Lane Gunderman, Victor Lopez, James Rowan

Summer HSSP Lecture Notes Week 1. Lane Gunderman, Victor Lopez, James Rowan Summer HSSP Lecture Notes Week 1 Lane Gunderman, Victor Lopez, James Rowan July 6, 014 First Class: proofs and friends 1 Contents 1 Glossary of symbols 4 Types of numbers 5.1 Breaking it down...........................

More information

CIS 2033 Lecture 5, Fall

CIS 2033 Lecture 5, Fall CIS 2033 Lecture 5, Fall 2016 1 Instructor: David Dobor September 13, 2016 1 Supplemental reading from Dekking s textbook: Chapter2, 3. We mentioned at the beginning of this class that calculus was a prerequisite

More information

Math Lecture 3 Notes

Math Lecture 3 Notes Math 1010 - Lecture 3 Notes Dylan Zwick Fall 2009 1 Operations with Real Numbers In our last lecture we covered some basic operations with real numbers like addition, subtraction and multiplication. This

More information

MATH c UNIVERSITY OF LEEDS Examination for the Module MATH2210 (May/June 2004) INTRODUCTION TO DISCRETE MATHEMATICS. Time allowed : 2 hours

MATH c UNIVERSITY OF LEEDS Examination for the Module MATH2210 (May/June 2004) INTRODUCTION TO DISCRETE MATHEMATICS. Time allowed : 2 hours This question paper consists of 5 printed pages, each of which is identified by the reference MATH221001 MATH221001 No calculators allowed c UNIVERSITY OF LEEDS Examination for the Module MATH2210 (May/June

More information