Review problems solutions

Size: px
Start display at page:

Download "Review problems solutions"

Transcription

1 Review problems solutions Math 3152 December 15, 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 the binomial theorem twice, we can expand ( ) n (1 + (t 1)) n (t 1) i i i0 i ( )( ) n i t k ( 1) i k i k i0 k0 Look at the coefficient of t k in this expansion: from above, that is ( )( ) n i ( )( ) n i ( 1) i k ( 1) i k, i k i k i0 since the terms with i < k are zero. On the other hand, (1 + (t 1)) n t n, so this coefficient is zero, unless k n. This proves what we wanted. 2. Consider the sequence given by h 0 1 and the rule that, for n 1, { 8 if n is even; h n 3h n otherwise. (a) Find a generating function for the sequence 8, 0, 8, 0, 8,.... Solution: ik 8 + 8t 2 + 8t 4 + 8(1 + t 2 + t 4 + ) 8/(1 t 2 ). (b) Let H(x) h n x n. Use the recurrence relation to find a formula for n0 H(x). Solution: Since h n 1t n th(t), the recurrence relation says H(t) h 0 + 3tH(t) + 8t 2 /(1 t 2 ),

2 by the previous part. Since h 0 1, solving for H(t) gives H(t) (1 3t) 1 (1 + 8t 2 /(1 t 2 )) 1 + 7t 2 (1 3t)(1 t 2 ). (c) Use the previous part to write h n in terms of n. Solution: Use partial fractions to find H(t) 2 1 3t 2 1 t + 1 (1 + t). Then h n 2 3 n 2 + ( 1) n. 3. (a) In how many ways can seven shifts be assigned to ten nurses, if each nurse can take at most three shifts, and the shifts are all different? Solution: We assume that a shift is taken by exactly one nurse. So, without the condition that a nurse can take at most three shifts, we could choose the nurse for each shift independently, in 10 7 ways total. The actual answer is smaller. Let E be the set of assignments of a nurse to a shift with no condition, and A i the set of assignments for which nurse i works 4 or more shifts, for 1 i 10. We want to know the value of 10 E A i, i1 for which we use inclusion-exclusion. First, think of A i as the set of permutations of length 7 using the multiset of ten nurses (repetition allowed) where the ith nurse appears at least 4 times. To compute A i, let s assign the ith nurse 4 or more shifts first, then place the other 9 nurses on the remaining shifts. This gives A i Since A i A j if i j (there are only seven shifts), the principle of inclusionexclusion says that the value we want also equals 10 E A i i

3 (b) Same problem, but where the shifts are all regarded as the same (i.e., only the number of them matters.)? Solution: Let s do inclusion-exclusion again, but now we want to count the number of solutions to a a 10 7, where 0 a i 3 for each i, by letting a i be the number of shifts that nurse i works. This is easy, because (again) no two nurses can work more than three shifts each. 4. Write an exponential generating function for the number of words of length n in the letters {a, b, c, d} in which the number of a s and b s combined is odd. Can you find an explicit expression for the number of such words in terms of n? 5. Solution: Let s first write down a generating function f(t) for a string of an odd number of a s and b s: there are 2 n such strings of n is odd, and zero if n is even. Then f(t) 2 1 t 1 / t 3 /3! t 5 /5! + 1 ( e 2t e 2t). 2 Let h(t) n 0 h nt n /n! be the generating function we are looking for. By the multiplicative principle for e.g.f.s, the number of words of length n in {a, b, c, d} with an odd number of a and b s is obtained by multiplying f(t) with generating functions for the number of ways to choose n c s, then n d s. In each case, associated exponential generating function is e t, so h(t) f(t)e 2 t 1/2(e 4 t 1), and we can see h n 1/2 4 n for n 1, and h (a) Find the permutation of {1, 2,..., 6} with inversion sequence (4, 3, 2, 1, 0, 0). Solution: (b) Write the ordinary generating function for the number of permutations of [6] with length n. Solution: Same as the number of solutions to a 1 + a 2 + a 3 + a 4 + a 5 + a 6 n, where 0 a i 6 i. So that s (1+x+x 2 + +x 5 )(1+x+x 2 + +x 4 )(1+x+x 2 +x 3 )(1+x+x 2 )(1+x) 6 i1 1 x i 1 x. 7. Find the ordinary generating function for the number of ways to make n cents using at most four pennies and an unlimited supply of nickels and dimes. Use this to decide the number of ways to make 1 dollar.

4 Solution: Since a product of ordinary generating functions counts combinations, we just need to multiply generating functions for the pennies, nickels, and dimes. The generating function for at most four pennies is 1 + t + t 2 + t 3 + t 4 1 t5 1 t, while the generating function for the nickels (counted by value) is 1/(1 t 5 ), and similarly 1/(1 t 10 ) for the dimes. Multiplying, we get 1 t 5 1 t t 5 1 t 10 1 (1 t)(1 t 10 ). The number of ways to make one dollar is the coefficient of t 100. One way to find this is just to multiply: (1 t) 1 (1 t 10 ) 1 ( n 0 t n )( n 0 t 10n ). Look at the contribution from the right-hand factor. For each choice of n, 0 n 10, there is exactly one way to choose a term from the left factor to get a t 100. Otherwise there are none. So the number of ways to make 100 cents is Show that the number of partitions of size n with no repeated parts is equal to the number of partitions with all parts of odd size. [Hint: compare o.g.f. s] Solution: The generating function for the number of partitions with no repeated parts is F (t) (1 + t n ), by the product principle for ordinary generating functions. The generating function for partitions with only odd parts is G(t) (1 t 2n 1 ) 1, by the same argument as we had to count all the partitions. We want to show that F (t) G(t). So multiply: F (t)g(t) 1 (1 + t n ) t (1 2n 1 ) 1 t 2n 1 t n (1 t 2n 1 ) 1 t 2n 1 1 t 2n 1 1 t 2n 1 (1 t 2n 1 ) 1, since all terms cancel.

5 (The third line is obtained by splitting up the denominator into terms with even and odd powers of t.) So F (t) G(t), as required. 9. Let f n be the number of ways to make a n-letter word from the letters X, Y, Z, with the condition that every Y is followed immediately by a Z. Find an expression for f n in terms of n. For practice, do this two ways: find an ordinary generating function and compute. Check your work by finding a recurrence relation satisfied by the f n s and solving it. Solution: Since the expansion of 1/(1 S) is the formal sum of permutations of the multiset S, we can compute the ordinary generating function F (t) n 0 f n t n as follows. The goal is to count permutations of the multiset { X, Y Z, Z}. Since X and Z have length 1 and Y Z has length 2, the ordinary generating function is F (t) 1/(1 2t t 2 ). Alternatively, note that f 0 1 and f 1 2. To count the n-letter words, where n 2, split them into two groups. Words that end in Y Z are in one-to-one correspondence with with words of length n 2 (just by adding a Y Z onto the end, which we can always do.) So there are f n 2 words of this sort. Words that don t end in Y Z end in either X, or ZZ. In either case, we can remove the last letter to get a word of length n 1; conversely, any word of length n 1 can have a X or Z stuck on the end. So there are 2f n 1 words of this type. It follows that, for n 2, f n 2f n 1 + f n 2, and f 0 1, f 1 2. To solve the recurrence, let F (t) n 0 f nt n. Then so F (t) 1/(1 2t t 2 ), as before. F (t) f 0 + t(f 1 2f 0 ) + 2tF (t) + t 2 F (t) 1 + 2tF (t) + t 2 F (t) Factor: 1 2t t 2 (1 (1 + 2)t)(1 (1 2)t). Then, expanding by partial fractions, F (t) (1/4)(2 2) 1 (1 + 2t) + (1/4)(2 + 2) 1 (1 2t), so f n 1 4 (2 2)(1 + 2) n (2 + 2)(1 2) n, for n Let g n be the number of ways to select a breakfast consisting of an odd number of eggs, at most four pieces of toast, and at least one slice of bacon. Find an

6 ordinary generating function for the sequence {g n } and use it to compute g n in terms of n. Solution: A breakfast is completely determined by integers a 1, a 2, and a 3, where 0 < a 1 is odd, 0 a 2 4, and a 3 1. By the product principle for ordinary generating functions, g n t n (t + t 3 + t 5 + )(1 + t + t 2 + t 3 + t 4 )(t + t 2 + t 3 + ) n 0 t 1 t 5 t 1 t 2 1 t 1 t t2 (t + t 2 + t 3 + t 4 + t 5 ) (1 t) 2 (1 + t) 6 + 4t + 2t 2 + t 3 + 9t2 + 2t 6 (1 t) 2 by long division (1 + t) 6 + 4t + 2t 2 + t (1 t) t t 6 + 4t + 2t 2 + t 3 ( + 5/2(n + 1) 35/4 + 1/4( 1) n )t n, n0 from which we see g n (10n 45 + ( 1) n )/4 for n 4, and g 0 g 1 0, g 2 1, g Show that the Stirling numbers satisfy, for each k 1, the generating function identity S(n, k)t n t k (1 t)(1 2t) (1 kt). n How many different ways are there to label each face of a cube with an arrow, taking rotational symmetry into account? [Use Burnside s Lemma.] Solution: Let X be the set of labellings, without regard to symmetry, and let G be the symmetries of the cube, permuting the elements of X. We need to compute the number of labellings fixed by each symmetry in G. g 1: every labelling is fixed by the identity permutation, of course. Each face can be labelled in four ways, and there are six faces, so F 1 X and X 4 6. g a 90 rotation around a face axis: the arrow on a face that contains the axis of symmetry can t be sent to itself. So F g. The same argument applies to the 180 rotations around a face axis. If g is a vertex-rotation, recall g has two 3-cycles of faces that share a vertex. If we choose an arrow for one of those faces, there is only one way to chose the other two so that the arrows are sent to each other by the 120 rotation. There are 2 three-cycles, so for each such g, we have F g 4 4.

7 if g is an edge-rotation, the faces fall into three two-cycles. For each, choosing an arrow on one face determines the arrow for the other face. [Picture?] So F g 4 3. Adding it all up, we find there are distinct labellings. 1 G g G F g 1 ( ) Show that the exponential generating function for the number of derangements, D n t n /n!, equals n0 e t 1 t, if we agree D 0 1. [For maximum nutritional value, try using the product principle, or the recurrence relation D n (n 1)(D n 1 + D n 2 ).] Solution: The fastest way is remember that 1/(1 t) n 0 n!tn /n! is the exponential generating function for the number of permutations of length n. Let d(t) n 0 D nt n /n!. Let s count the permutations by noticing that every permutation has some subset S of fixed points, and the restriction of the permutation to the remaining elements [n] S is a derangement. The number of ways to let a set S be the fixed points of a permutation is just 1, for all k S 0. The e.g.f. for the sequence (1, 1, 1,...) is e t. By the product principle for exponential generating functions, every permutation is obtained by putting a derangement on a subset and making the complementary elements fixed points, so e t d(t) 1 1 t. That is, d(t) e t /(1 t), as required.

Indistinguishable objects in indistinguishable boxes

Indistinguishable objects in indistinguishable boxes Counting integer partitions 2.4 61 Indistinguishable objects in indistinguishable boxes When placing k indistinguishable objects into n indistinguishable boxes, what matters? We are partitioning the integer

More information

Generating Functions

Generating Functions Semester 1, 2004 Generating functions Another means of organising enumeration. Two examples we have seen already. Example 1. Binomial coefficients. Let X = {1, 2,..., n} c k = # k-element subsets of X

More information

Chapter Generating Functions

Chapter Generating Functions Chapter 8.1.1-8.1.2. Generating Functions Prof. Tesler Math 184A Fall 2017 Prof. Tesler Ch. 8. Generating Functions Math 184A / Fall 2017 1 / 63 Ordinary Generating Functions (OGF) Let a n (n = 0, 1,...)

More information

are the q-versions of n, n! and . The falling factorial is (x) k = x(x 1)(x 2)... (x k + 1).

are the q-versions of n, n! and . The falling factorial is (x) k = x(x 1)(x 2)... (x k + 1). Lecture A jacques@ucsd.edu Notation: N, R, Z, F, C naturals, reals, integers, a field, complex numbers. p(n), S n,, b(n), s n, partition numbers, Stirling of the second ind, Bell numbers, Stirling of the

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

Solutions to Exercises Chapter 5: The Principle of Inclusion and Exclusion

Solutions to Exercises Chapter 5: The Principle of Inclusion and Exclusion Solutions to Exercises Chapter 5: The Principle of Inclusion and Exclusion An opinion poll reports that the percentage of voters who would be satisfied with each of three candidates A, B, C for President

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

MATH 802: ENUMERATIVE COMBINATORICS ASSIGNMENT 2

MATH 802: ENUMERATIVE COMBINATORICS ASSIGNMENT 2 MATH 80: ENUMERATIVE COMBINATORICS ASSIGNMENT KANNAPPAN SAMPATH Facts Recall that, the Stirling number S(, n of the second ind is defined as the number of partitions of a [] into n non-empty blocs. We

More information

2030 LECTURES. R. Craigen. Inclusion/Exclusion and Relations

2030 LECTURES. R. Craigen. Inclusion/Exclusion and Relations 2030 LECTURES R. Craigen Inclusion/Exclusion and Relations The Principle of Inclusion-Exclusion 7 ROS enumerates the union of disjoint sets. What if sets overlap? Some 17 out of 30 students in a class

More information

9.6 r-combinations with Repetition Allowed

9.6 r-combinations with Repetition Allowed 584 Chapter 9 Counting and Probability Exercises 32 38 refer to the sequence of Stirling numbers of the second kind. 32. Find S 3,4 by exhibiting all the partitions of {x 1, x 2, x 3, x 4, x 5 } into four

More information

1 Solving Linear Recurrences

1 Solving Linear Recurrences Solving Linear Recurrences Suppose we have a sequence a n defined by the formula The first couple terms of the sequence are a n = 3a n +, a 0 =, 4, 3, 40, 2,... Can you find a general closed for expression

More information

Chapter 1: Fundamentals of Algebra Lecture notes Math 1010

Chapter 1: Fundamentals of Algebra Lecture notes Math 1010 Section 1.1: The Real Number System Definition of set and subset A set is a collection of objects and its objects are called members. If all the members of a set A are also members of a set B, then A is

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

Generating Functions

Generating Functions 8.30 lecture notes March, 0 Generating Functions Lecturer: Michel Goemans We are going to discuss enumeration problems, and how to solve them using a powerful tool: generating functions. What is an enumeration

More information

Generating Functions (Revised Edition)

Generating Functions (Revised Edition) Math 700 Fall 06 Notes Generating Functions (Revised Edition What is a generating function? An ordinary generating function for a sequence (a n n 0 is the power series A(x = a nx n. The exponential generating

More information

Algebraic Counting Techniques

Algebraic Counting Techniques Chapter 4 Algebraic Counting Techniques 4.1 The Principle of Inclusion and Exclusion 4.1.1 The size of a union of sets One of our very first counting principles was the sum principle which says that the

More information

Enumerative Combinatorics 7: Group actions

Enumerative Combinatorics 7: Group actions Enumerative Combinatorics 7: Group actions Peter J. Cameron Autumn 2013 How many ways can you colour the faces of a cube with three colours? Clearly the answer is 3 6 = 729. But what if we regard two colourings

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

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

Some Review Problems for Exam 3: Solutions

Some Review Problems for Exam 3: Solutions 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

More information

Physical Chemistry - Problem Drill 02: Math Review for Physical Chemistry

Physical Chemistry - Problem Drill 02: Math Review for Physical Chemistry Physical Chemistry - Problem Drill 02: Math Review for Physical Chemistry No. 1 of 10 1. The Common Logarithm is based on the powers of 10. Solve the logarithmic equation: log(x+2) log(x-1) = 1 (A) 1 (B)

More information

1 Answers to Chapter 8, Odd-numbered Exercises

1 Answers to Chapter 8, Odd-numbered Exercises Answers to Chapter 8, Odd-numbered Exercises ) (a) + 4x + 6x + 4x 3 + x 4. (b) + x + x + x 3 + x 4 + x 7. (c) x 3 + x 4 + 3x 5 + 4x 6 + 6x 7. (d) + x + x + x 3 + x 4 + x 5 + x 6. (e) 3 + x 3 4x 4 + 7x

More information

Applications of Chromatic Polynomials Involving Stirling Numbers

Applications of Chromatic Polynomials Involving Stirling Numbers Applications of Chromatic Polynomials Involving Stirling Numbers A. Mohr and T.D. Porter Department of Mathematics Southern Illinois University Carbondale, IL 6290 tporter@math.siu.edu June 23, 2008 The

More information

1. How many labeled trees are there on n vertices such that all odd numbered vertices are leaves?

1. How many labeled trees are there on n vertices such that all odd numbered vertices are leaves? 1. How many labeled trees are there on n vertices such that all odd numbered vertices are leaves? This is most easily done by Prüfer codes. The number of times a vertex appears is the degree of the vertex.

More information

Lecture 3: Miscellaneous Techniques

Lecture 3: Miscellaneous Techniques Lecture 3: Miscellaneous Techniques Rajat Mittal IIT Kanpur In this document, we will take a look at few diverse techniques used in combinatorics, exemplifying the fact that combinatorics is a collection

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

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

The Inclusion Exclusion Principle

The Inclusion Exclusion Principle The Inclusion Exclusion Principle 1 / 29 Outline Basic Instances of The Inclusion Exclusion Principle The General Inclusion Exclusion Principle Counting Derangements Counting Functions Stirling Numbers

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

Section 3.1 Quadratic Functions

Section 3.1 Quadratic Functions Chapter 3 Lecture Notes Page 1 of 72 Section 3.1 Quadratic Functions Objectives: Compare two different forms of writing a quadratic function Find the equation of a quadratic function (given points) Application

More information

What you learned in Math 28. Rosa C. Orellana

What you learned in Math 28. Rosa C. Orellana What you learned in Math 28 Rosa C. Orellana Chapter 1 - Basic Counting Techniques Sum Principle If we have a partition of a finite set S, then the size of S is the sum of the sizes of the blocks of the

More information

MULTI-RESTRAINED STIRLING NUMBERS

MULTI-RESTRAINED STIRLING NUMBERS MULTI-RESTRAINED STIRLING NUMBERS JI YOUNG CHOI DEPARTMENT OF MATHEMATICS SHIPPENSBURG UNIVERSITY SHIPPENSBURG, PA 17257, U.S.A. Abstract. Given positive integers n, k, and m, the (n, k)-th m- restrained

More information

California CCSS Mathematics Grades 1-3

California CCSS Mathematics Grades 1-3 Operations and Algebraic Thinking Represent and solve problems involving addition and subtraction. 1.OA.1. Use addition and subtraction within 20 to solve word problems involving situations of adding to,

More information

SUMS PROBLEM COMPETITION, 2000

SUMS PROBLEM COMPETITION, 2000 SUMS ROBLEM COMETITION, 2000 SOLUTIONS 1 The result is well known, and called Morley s Theorem Many proofs are known See for example HSM Coxeter, Introduction to Geometry, page 23 2 If the number of vertices,

More information

Math 016 Lessons Wimayra LUY

Math 016 Lessons Wimayra LUY Math 016 Lessons Wimayra LUY wluy@ccp.edu MATH 016 Lessons LESSON 1 Natural Numbers The set of natural numbers is given by N = {0, 1, 2, 3, 4...}. Natural numbers are used for two main reasons: 1. counting,

More information

Probability & Combinatorics Test and Solutions February 18, 2012

Probability & Combinatorics Test and Solutions February 18, 2012 1. A standard 12-hour clock has hour, minute, and second hands. How many times do two hands cross between 1:00 and 2:00 (not including 1:00 and 2:00 themselves)? Answer: 119 Solution: We know that the

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

Math Circle: Recursion and Induction

Math Circle: Recursion and Induction Math Circle: Recursion and Induction Prof. Wickerhauser 1 Recursion What can we compute, using only simple formulas and rules that everyone can understand? 1. Let us use N to denote the set of counting

More information

Finding a Percent of a Number (page 216)

Finding a Percent of a Number (page 216) LESSON Name 1 Finding a Percent of a Number (page 216) You already know how to change a percent to a fraction. Rewrite the percent as a fraction with a denominator of 100 and reduce. 25% = 25 100 = 1 5%

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

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

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

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

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

Natural Numbers Positive Integers. Rational Numbers

Natural Numbers Positive Integers. Rational Numbers Chapter A - - Real Numbers Types of Real Numbers, 2,, 4, Name(s) for the set Natural Numbers Positive Integers Symbol(s) for the set, -, - 2, - Negative integers 0,, 2,, 4, Non- negative integers, -, -

More information

Notes on cycle generating functions

Notes on cycle generating functions Notes on cycle generating functions. The cycle generating function of a species A combinatorial species is a rule attaching to each finite set X a set of structures on X, in such a way that the allowed

More information

The solutions to the two examples above are the same.

The solutions to the two examples above are the same. One-to-one correspondences A function f : A B is one-to-one if f(x) = f(y) implies that x = y. A function f : A B is onto if for any element b in B there is an element a in A such that f(a) = b. A function

More information

An equation is a statement that states that two expressions are equal. For example:

An equation is a statement that states that two expressions are equal. For example: Section 0.1: Linear Equations Solving linear equation in one variable: An equation is a statement that states that two expressions are equal. For example: (1) 513 (2) 16 (3) 4252 (4) 64153 To solve the

More information

Math 370 Homework 2, Fall 2009

Math 370 Homework 2, Fall 2009 Math 370 Homework 2, Fall 2009 (1a) Prove that every natural number N is congurent to the sum of its decimal digits mod 9. PROOF: Let the decimal representation of N be n d n d 1... n 1 n 0 so that N =

More information

Combinatorial Enumeration. Jason Z. Gao Carleton University, Ottawa, Canada

Combinatorial Enumeration. Jason Z. Gao Carleton University, Ottawa, Canada Combinatorial Enumeration Jason Z. Gao Carleton University, Ottawa, Canada Counting Combinatorial Structures We are interested in counting combinatorial (discrete) structures of a given size. For example,

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

MATH39001 Generating functions. 1 Ordinary power series generating functions

MATH39001 Generating functions. 1 Ordinary power series generating functions MATH3900 Generating functions The reference for this part of the course is generatingfunctionology by Herbert Wilf. The 2nd edition is downloadable free from http://www.math.upenn. edu/~wilf/downldgf.html,

More information

Applications. More Counting Problems. Complexity of Algorithms

Applications. More Counting Problems. Complexity of Algorithms Recurrences Applications More Counting Problems Complexity of Algorithms Part I Recurrences and Binomial Coefficients Paths in a Triangle P(0, 0) P(1, 0) P(1,1) P(2, 0) P(2,1) P(2, 2) P(3, 0) P(3,1) P(3,

More information

Announcements. CompSci 102 Discrete Math for Computer Science. Chap. 3.1 Algorithms. Specifying Algorithms

Announcements. CompSci 102 Discrete Math for Computer Science. Chap. 3.1 Algorithms. Specifying Algorithms CompSci 102 Discrete Math for Computer Science Announcements Read for next time Chap. 3.1-3.3 Homework 3 due Tuesday We ll finish Chapter 2 first today February 7, 2012 Prof. Rodger Chap. 3.1 Algorithms

More information

Rational Numbers CHAPTER. 1.1 Introduction

Rational Numbers CHAPTER. 1.1 Introduction RATIONAL NUMBERS Rational Numbers CHAPTER. Introduction In Mathematics, we frequently come across simple equations to be solved. For example, the equation x + = () is solved when x =, because this value

More information

Discrete Mathematics lecture notes 13-2 December 8, 2013

Discrete Mathematics lecture notes 13-2 December 8, 2013 Discrete Mathematics lecture notes 13-2 December 8, 2013 34. Pólya s Enumeration Theorem We started examining the number of essentially distinct colorings of an object with questions of the form How many

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

Discrete Math Notes. Contents. William Farmer. April 8, Overview 3

Discrete Math Notes. Contents. William Farmer. April 8, Overview 3 April 8, 2014 Contents 1 Overview 3 2 Principles of Counting 3 2.1 Pigeon-Hole Principle........................ 3 2.2 Permutations and Combinations.................. 3 2.3 Binomial Coefficients.........................

More information

Introduction to Techniques for Counting

Introduction to Techniques for Counting Introduction to Techniques for Counting A generating function is a device somewhat similar to a bag. Instead of carrying many little objects detachedly, which could be embarrassing, we put them all in

More information

5.4 - Quadratic Functions

5.4 - Quadratic Functions Fry TAMU Spring 2017 Math 150 Notes Section 5.4 Page! 92 5.4 - Quadratic Functions Definition: A function is one that can be written in the form f (x) = where a, b, and c are real numbers and a 0. (What

More information

Name (please print) Mathematics Final Examination December 14, 2005 I. (4)

Name (please print) Mathematics Final Examination December 14, 2005 I. (4) Mathematics 513-00 Final Examination December 14, 005 I Use a direct argument to prove the following implication: The product of two odd integers is odd Let m and n be two odd integers Since they are odd,

More information

Chapter 5: Integer Compositions and Partitions and Set Partitions

Chapter 5: Integer Compositions and Partitions and Set Partitions Chapter 5: Integer Compositions and Partitions and Set Partitions Prof. Tesler Math 184A Winter 2017 Prof. Tesler Ch. 5: Compositions and Partitions Math 184A / Winter 2017 1 / 32 5.1. Compositions A strict

More information

Chapter 1A -- Real Numbers. iff. Math Symbols: Sets of Numbers

Chapter 1A -- Real Numbers. iff. Math Symbols: Sets of Numbers Fry Texas A&M University! Fall 2016! Math 150 Notes! Section 1A! Page 1 Chapter 1A -- Real Numbers Math Symbols: iff or Example: Let A = {2, 4, 6, 8, 10, 12, 14, 16,...} and let B = {3, 6, 9, 12, 15, 18,

More information

q xk y n k. , provided k < n. (This does not hold for k n.) Give a combinatorial proof of this recurrence by means of a bijective transformation.

q xk y n k. , provided k < n. (This does not hold for k n.) Give a combinatorial proof of this recurrence by means of a bijective transformation. Math 880 Alternative Challenge Problems Fall 2016 A1. Given, n 1, show that: m1 m 2 m = ( ) n+ 1 2 1, where the sum ranges over all positive integer solutions (m 1,..., m ) of m 1 + + m = n. Give both

More information

Advanced Counting Techniques. Chapter 8

Advanced Counting Techniques. Chapter 8 Advanced Counting Techniques Chapter 8 Chapter Summary Applications of Recurrence Relations Solving Linear Recurrence Relations Homogeneous Recurrence Relations Nonhomogeneous Recurrence Relations Divide-and-Conquer

More information

North Carolina State University

North Carolina State University North Carolina State University MA 141 Course Text Calculus I by Brenda Burns-Williams and Elizabeth Dempster August 7, 2014 Section1 Functions Introduction In this section, we will define the mathematical

More information

Foundations of Computer Science Lecture 14 Advanced Counting

Foundations of Computer Science Lecture 14 Advanced Counting Foundations of Computer Science Lecture 14 Advanced Counting Sequences with Repetition Union of Overlapping Sets: Inclusion-Exclusion Pigeonhole Principle Last Time To count complex objects, construct

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

1.04 Basic Math. Dr. Fred Garces. Scientific (Exponential) Notation. Chemistry 100. Miramar College Basic Math

1.04 Basic Math. Dr. Fred Garces. Scientific (Exponential) Notation. Chemistry 100. Miramar College Basic Math 1.04 Basic Math Scientific (Exponential) Notation Dr. Fred Garces Chemistry 100 Miramar College 1 1.04 Basic Math Science and the use of large numbers In science we deal with either very large numbers.

More information

PROBABILITY VITTORIA SILVESTRI

PROBABILITY VITTORIA SILVESTRI PROBABILITY VITTORIA SILVESTRI Contents Preface. Introduction 2 2. Combinatorial analysis 5 3. Stirling s formula 8 4. Properties of Probability measures Preface These lecture notes are for the course

More information

Chapter 5: Integer Compositions and Partitions and Set Partitions

Chapter 5: Integer Compositions and Partitions and Set Partitions Chapter 5: Integer Compositions and Partitions and Set Partitions Prof. Tesler Math 184A Fall 2017 Prof. Tesler Ch. 5: Compositions and Partitions Math 184A / Fall 2017 1 / 46 5.1. Compositions A strict

More information

Math 2 Variable Manipulation Part 2 Powers & Roots PROPERTIES OF EXPONENTS:

Math 2 Variable Manipulation Part 2 Powers & Roots PROPERTIES OF EXPONENTS: Math 2 Variable Manipulation Part 2 Powers & Roots PROPERTIES OF EXPONENTS: 1 EXPONENT REVIEW PROBLEMS: 2 1. 2x + x x + x + 5 =? 2. (x 2 + x) (x + 2) =?. The expression 8x (7x 6 x 5 ) is equivalent to?.

More information

McGill University Faculty of Science. Solutions to Practice Final Examination Math 240 Discrete Structures 1. Time: 3 hours Marked out of 60

McGill University Faculty of Science. Solutions to Practice Final Examination Math 240 Discrete Structures 1. Time: 3 hours Marked out of 60 McGill University Faculty of Science Solutions to Practice Final Examination Math 40 Discrete Structures Time: hours Marked out of 60 Question. [6] Prove that the statement (p q) (q r) (p r) is a contradiction

More information

MAS275 Probability Modelling Exercises

MAS275 Probability Modelling Exercises MAS75 Probability Modelling Exercises Note: these questions are intended to be of variable difficulty. In particular: Questions or part questions labelled (*) are intended to be a bit more challenging.

More information

27 Wyner Math 2 Spring 2019

27 Wyner Math 2 Spring 2019 27 Wyner Math 2 Spring 2019 CHAPTER SIX: POLYNOMIALS Review January 25 Test February 8 Thorough understanding and fluency of the concepts and methods in this chapter is a cornerstone to success in the

More information

Test 4 also includes review problems from earlier sections so study test reviews 1, 2, and 3 also.

Test 4 also includes review problems from earlier sections so study test reviews 1, 2, and 3 also. MATD 0370 ELEMENTARY ALGEBRA REVIEW FOR TEST 4 (1.1-10.1, not including 8.2) Test 4 also includes review problems from earlier sections so study test reviews 1, 2, and 3 also. 1. Factor completely: a 2

More information

PYP Mathematics Continuum

PYP Mathematics Continuum Counting from One By Imaging to Advanced Counting (-) Y E+ 0- K N O W L E D G E Read,Write, and Count Whole numbers up to 00, forwards and backwards in s, s, 5 s, and 0 s Recall How many tens in a two-digit

More information

PUTNAM TRAINING PROBLEMS

PUTNAM TRAINING PROBLEMS PUTNAM TRAINING PROBLEMS (Last updated: December 3, 2003) Remark This is a list of Math problems for the NU Putnam team to be discussed during the training sessions Miguel A Lerma 1 Bag of candies In a

More information

*Generating Function Topics

*Generating Function Topics CHAPTER 11 *Generating Function Topics Introduction The four sections in this chapter deal with four distinct topics: systems of recursions, exponential generating functions, Pólya s Theorem and asymptotics

More information

Quadratics and Other Polynomials

Quadratics and Other Polynomials Algebra 2, Quarter 2, Unit 2.1 Quadratics and Other Polynomials Overview Number of instructional days: 15 (1 day = 45 60 minutes) Content to be learned Know and apply the Fundamental Theorem of Algebra

More information

3.4 The Fundamental Theorem of Algebra

3.4 The Fundamental Theorem of Algebra 333371_0304.qxp 12/27/06 1:28 PM Page 291 3.4 The Fundamental Theorem of Algebra Section 3.4 The Fundamental Theorem of Algebra 291 The Fundamental Theorem of Algebra You know that an nth-degree polynomial

More information

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively 6 Prime Numbers Part VI of PJE 6.1 Fundamental Results Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively D (p) = { p 1 1 p}. Otherwise

More information

Harbor Creek School District

Harbor Creek School District Numeration Unit of Study Big Ideas Algebraic Concepts How do I match a story or equation to different symbols? How do I determine a missing symbol in an equation? How does understanding place value help

More information

= lim. (1 + h) 1 = lim. = lim. = lim = 1 2. lim

= lim. (1 + h) 1 = lim. = lim. = lim = 1 2. lim Math 50 Exam # Solutions. Evaluate the following its or explain why they don t exist. (a) + h. h 0 h Answer: Notice that both the numerator and the denominator are going to zero, so we need to think a

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

Modular Arithmetic Instructor: Marizza Bailey Name:

Modular Arithmetic Instructor: Marizza Bailey Name: Modular Arithmetic Instructor: Marizza Bailey Name: 1. Introduction to Modular Arithmetic If someone asks you what day it is 145 days from now, what would you answer? Would you count 145 days, or find

More information

4.1 Real-valued functions of a real variable

4.1 Real-valued functions of a real variable Chapter 4 Functions When introducing relations from a set A to a set B we drew an analogy with co-ordinates in the x-y plane. Instead of coming from R, the first component of an ordered pair comes from

More information

n=0 xn /n!. That is almost what we have here; the difference is that the denominator is (n + 1)! in stead of n!. So we have x n+1 n=0

n=0 xn /n!. That is almost what we have here; the difference is that the denominator is (n + 1)! in stead of n!. So we have x n+1 n=0 DISCRETE MATHEMATICS HOMEWORK 8 SOL Undergraduate Course Chukechen Honors College Zhejiang University Fall-Winter 204 HOMEWORK 8 P496 6. Find a closed form for the generating function for the sequence

More information

Advanced Counting Techniques

Advanced Counting Techniques . All rights reserved. Authorized only for instructor use in the classroom. No reproduction or further distribution permitted without the prior written consent of McGraw-Hill Education. Advanced Counting

More information

GRADE LEVEL: THIRD SUBJECT: MATH DATE: CONTENT STANDARD INDICATORS SKILLS ASSESSMENT VOCABULARY ISTEP

GRADE LEVEL: THIRD SUBJECT: MATH DATE: CONTENT STANDARD INDICATORS SKILLS ASSESSMENT VOCABULARY ISTEP GRADE LEVEL: THIRD SUBJECT: MATH DATE: 2015 2016 GRADING PERIOD: QUARTER 1 MASTER COPY 9 24 15 CONTENT STANDARD INDICATORS SKILLS ASSESSMENT VOCABULARY ISTEP NUMBER SENSE Standard form Expanded form Models

More information

Number Theory and Counting Method. Divisors -Least common divisor -Greatest common multiple

Number Theory and Counting Method. Divisors -Least common divisor -Greatest common multiple Number Theory and Counting Method Divisors -Least common divisor -Greatest common multiple Divisors Definition n and d are integers d 0 d divides n if there exists q satisfying n = dq q the quotient, d

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

Invariants II. LA Math Circle (Advanced) November 15, 2015

Invariants II. LA Math Circle (Advanced) November 15, 2015 Invariants II LA Math Circle (Advanced) November 15, 2015 Recall that an invariant is some quantity associated with a system that is left unchanged by a specified process. We typically use them to show

More information

3 rd Grade Remediation Guide

3 rd Grade Remediation Guide 3 rd Grade Remediation Guide Focused remediation helps target the skills students need to more quickly access and practice on-grade level content. This chart is a reference guide for teachers to help them

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

Cartesian Products and Relations

Cartesian Products and Relations Cartesian Products and Relations Definition (Cartesian product) If A and B are sets, the Cartesian product of A and B is the set A B = {(a, b) : (a A) and (b B)}. The following points are worth special

More information

Variables and Expressions

Variables and Expressions Variables and Expressions A variable is a letter that represents a value that can change. A constant is a value that does not change. A numerical expression contains only constants and operations. An algebraic

More information

How to use these notes

How to use these notes Chapter How to use these notes These notes were prepared for the University of Utah s Math 00 refresher course. They asssume that the user has had the Math 00 course Intermediate Algebra or its equivalent

More information

Real Numbers. Real numbers are divided into two types, rational numbers and irrational numbers

Real Numbers. Real numbers are divided into two types, rational numbers and irrational numbers Real Numbers Real numbers are divided into two types, rational numbers and irrational numbers I. Rational Numbers: Any number that can be expressed as the quotient of two integers. (fraction). Any number

More information

Induction and Recursion

Induction and Recursion . All rights reserved. Authorized only for instructor use in the classroom. No reproduction or further distribution permitted without the prior written consent of McGraw-Hill Education. Induction and Recursion

More information