HOMEWORK ASSIGNMENT 5

Similar documents
CSE 312: Foundations of Computing II Quiz Section #2: Combinations, Counting Tricks (solutions)

Topics to be covered

Section Summary. Permutations Combinations Combinatorial Proofs

Elementary Combinatorics

Math 3338: Probability (Fall 2006)

With Question/Answer Animations. Chapter 6

Discrete Structures Lecture Permutations and Combinations

Sec$on Summary. Permutations Combinations Combinatorial Proofs

Jong C. Park Computer Science Division, KAIST

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

Solutions for Exam I, Math 10120, Fall 2016

Multiple Choice Questions for Review

Mat 344F challenge set #2 Solutions

Introductory Probability

CIS 2033 Lecture 6, Spring 2017

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability (solutions)

Generalized Permutations and The Multinomial Theorem

What is counting? (how many ways of doing things) how many possible ways to choose 4 people from 10?

Counting. Chapter 6. With Question/Answer Animations

MAT3707. Tutorial letter 202/1/2017 DISCRETE MATHEMATICS: COMBINATORICS. Semester 1. Department of Mathematical Sciences MAT3707/202/1/2017

Lecture 18 - Counting

Discrete Structures for Computer Science

Permutations and Combinations Section

MATH 351 Fall 2009 Homework 1 Due: Wednesday, September 30

Counting in Algorithms

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

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

Slide 1 Math 1520, Lecture 15

Permutations and Combinations

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability

Reading 14 : Counting

Chapter 1. Probability

6.4 Permutations and Combinations

CSE 21 Mathematics for Algorithm and System Analysis

POKER (AN INTRODUCTION TO COUNTING)

Introduction. Firstly however we must look at the Fundamental Principle of Counting (sometimes referred to as the multiplication rule) which states:

Unit on Permutations and Combinations (Counting Techniques)

Exercises Exercises. 1. List all the permutations of {a, b, c}. 2. How many different permutations are there of the set {a, b, c, d, e, f, g}?

Theory of Probability - Brett Bernstein

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

9.5 Counting Subsets of a Set: Combinations. Answers for Test Yourself

FOURTH LECTURE : SEPTEMBER 18, 2014

THE PIGEONHOLE PRINCIPLE. MARK FLANAGAN School of Electrical and Electronic Engineering University College Dublin

Combinatorics problems

DISCRETE STRUCTURES COUNTING

Contents 2.1 Basic Concepts of Probability Methods of Assigning Probabilities Principle of Counting - Permutation and Combination 39

CONTENTS GRAPH THEORY

NOTES ON SEPT 13-18, 2012

Principle of Inclusion-Exclusion Notes

ACTIVITY 6.7 Selecting and Rearranging Things

Sec.on Summary. The Product Rule The Sum Rule The Subtraction Rule (Principle of Inclusion- Exclusion)

Mathematics. ( (Chapter 7) (Permutations and Combinations) (Class XI) Exercise 7.3

CSCI 2200 Foundations of Computer Science (FoCS) Solutions for Homework 7

Solutions to Problem Set 7

The Product Rule can be viewed as counting the number of elements in the Cartesian product of the finite sets

Midterm practice super-problems

European Journal of Combinatorics. Staircase rook polynomials and Cayley s game of Mousetrap

Combinatorics. PIE and Binomial Coefficients. Misha Lavrov. ARML Practice 10/20/2013

n! = n(n 1)(n 2) 3 2 1

Sec 5.1 The Basics of Counting

CSE 312: Foundations of Computing II Quiz Section #1: Counting (solutions)

Mixed Counting Problems

In this section, we will learn to. 1. Use the Multiplication Principle for Events. Cheesecake Factory. Outback Steakhouse. P.F. Chang s.

Bounds for Cut-and-Paste Sorting of Permutations

Math 1111 Math Exam Study Guide

Finite Math Section 6_4 Solutions and Hints

Chapter 10A. a) How many labels for Product A are required? Solution: ABC ACB BCA BAC CAB CBA. There are 6 different possible labels.

Section : Combinations and Permutations

Math 365 Wednesday 2/20/19 Section 6.1: Basic counting

Problem Set 8 Solutions R Y G R R G

Combinations AMC AMS AMR ACS ACR ASR MSR MCR MCS CRS

CPCS 222 Discrete Structures I Counting

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG

Chapter 1 out of 37 from Discrete Mathematics for Neophytes: Number Theory, Probability, Algorithms, and Other Stuff by J. M. Cargal.

IB HL Mathematics Homework 2014

Unit 5 Radical Functions & Combinatorics

CS1802 Week 3: Counting Next Week : QUIZ 1 (30 min)

Chapter 1. Probability

Staircase Rook Polynomials and Cayley s Game of Mousetrap

MA 524 Midterm Solutions October 16, 2018

Counting Things Solutions

You ve seen them played in coffee shops, on planes, and

CSE 312: Foundations of Computing II Quiz Section #1: Counting

Math-Essentials. Lesson 9-2: Counting Combinations

5. (1-25 M) How many ways can 4 women and 4 men be seated around a circular table so that no two women are seated next to each other.

Week 1: Probability models and counting

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

Counting: Basics. Four main concepts this week 10/12/2016. Product rule Sum rule Inclusion-exclusion principle Pigeonhole principle

Math 475, Problem Set #3: Solutions

Counting integral solutions

Section II.9. Orbits, Cycles, and the Alternating Groups

Math 1111 Math Exam Study Guide

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

CSE 20 DISCRETE MATH. Fall

Combinatorics: The Fine Art of Counting

Lecture 2: Sum rule, partition method, difference method, bijection method, product rules

CS1802 Week 6: Sets Operations, Product Sum Rule Pigeon Hole Principle (Ch )

Combinations Example Five friends, Alan, Cassie, Maggie, Seth and Roger, have won 3 tickets for a concert. They can t afford two more tickets.

AMC AMS AMR ACS ACR ASR MSR MCR MCS CRS

1 Permutations. 1.1 Example 1. Lisa Yan CS 109 Combinatorics. Lecture Notes #2 June 27, 2018

Transcription:

HOMEWORK ASSIGNMENT 5 MATH 251, WILLIAMS COLLEGE, FALL 2006 Abstract. These are the instructor s solutions. 1. Big Brother The social security number of a person is a sequence of nine digits that are not necessarily distinct. If X is the set of all social security numbers, find the number of elements of X. 1.1. Solution. We have a sequence of 9 choices to make, each from a set of 10 elements, so by the rule of sequential counting, there are 10 9 possibilities. 2. Card Sharks Find the number of ways of picking the following subsets out of a standard deck of cards: (1) A king and a queen, (2) a king or a queen, (3) a king and a red card, (4) a king or a red card. 2.1. Solution. There are 4 4 = 16 ways to choose a king and a queen, and 4 + 4 = 8 ways to pick a king or a queen. To pick a king and a red card, one can pick one of two black kings and then one of the 26 red cards, or one can pick one of two red kings and then one of the remaining 25 red cards. Thus there are 2 26 + 2 25 = 102 different possibilities. To pick a king or a red card, there are three possible ways. One can pick one of two red kings, one of two black kings, or one of the 24 red cards which are not kings. Thus there are 2 + 2 + 24 = 28 possibilities. 1

2 MATH 251, WILLIAMS COLLEGE, FALL 2006 3. Memory Hungry A sequence of digits which are either 0 or 1 is called a binary number. A binary number with eight digits is called a byte. (1) Find the number of bytes. (2) Find the number of bytes that begin with 10 and end with 01. (3) Find the number of bytes that begin with 10 but do not end with 01. (4) Find the number of bytes that begin with 10 or end with 01. 3.1. Solution. By the rule of sequential counting in each case, there are 2 8 = 256 total bytes, 2 4 = 16 bytes that start with 10 and end with 01, and 2 4 3 = 48 bytes that start with 10 but don t end with 01, since this leaves 3 possibilities for the end: 00, 11 and 10. Using the rule of disjunctive counting, we see that there are 48+48+16 = 112 bytes for the last case: 48 which start with 10 but don t end with 01, 48 which end with 01 but don t start with 10 and 16 which start with 10 and end with 01. 4. Are we there yet? There are three bridges connecting two towns, A and B. Between towns B and C there are four bridges. A salesperson has to travel from A to C via B. Find (1) the number of possible choices for bridges from A to C, (2) the number of choices for round-trip travel from A to C, (3) the number of choices for round-trip travel from A to C if no bridge is repeated. 4.1. Solution. We use the rule for sequential counting in each case. There are 3 4 = 12 routes from A to C, 3 4 4 3 = 144 round-trips, and 3 4 3 2 = 72 round-trips without repeat bridges. 5. On permutations (1) Show that P (n, r + 1) = (n r) P (n, r) and use this result to find the value of n if P (n, 9) = 15P (n, 8). (2) Compute P (17; 4, 3, 2), (3) Compute P (17; 2, 2, 2) 5.1. Solution. n! (1) P (n, r + 1) = (n (r + 1))! = (n r) n! = (n r) P (n, r). (n r)! So if P (n, 9) = 15P (n, 8), we see that n 8 = 15 and n = 23. 17! (2) P (17; 4, 3, 2) = = 30, 630, 600. 4! 3! 2! 8! 17! (3) P (17; 2, 2, 2) = = 1, 113, 840. 2! 2! 2! 11!

Compute the following. (1) C(9, 4), (2) C(10, 7), (3) C(8, 4). 6.1. Solution. (1) C(9, 4) = 9! 4! 5! = 126, (2) C(10, 7) = 10! 7! 3! = 120, (3) C(8, 4) = 8! 4! 4! = 70. HOMEWORK ASSIGNMENT 5 3 6. On Combinations 7. Why not West Alabama? Find the number of ways to rearrange the letters of MISSISSIP P I (1) without restriction, (2) so that all four S s stay together, 7.1. Solution. 11! (1) This is a generalized permutation P (11; 4, 4, 2, 1) = 4! 4! 2! 1! = 34, 560. (2) Treat the four S s as a unit. Then we are looking at the generalized 8! permutation P (8; 4, 2, 1, 1) = 4! 2! 1! 1! = 840. 8. Thanksgiving is coming! Find the number of ways of seating 14 people such that 8 of them are around a round table and the rest are on a bench. 8.1. Solution. View this as a sequence of choices. First, choose a subset of eight people to sit at the table. Then, choose a circular permutation of these eight people to seat them at the table. Finally, choose an ordinary permutation of the remaining six people to sit them on the bench. We obtain C(14, 8) 8! 8 6! = 10, 897, 286, 400 arrangements. If you decide the bench has a symmetry and you don t care about strict order but only who sits next to who on the bench, you get half as many arrangements.

4 MATH 251, WILLIAMS COLLEGE, FALL 2006 9. I hope it s not for dodgeball A discrete math class consists of 10 math majors and 12 computer science majors. A team of 12 has to be selected from this class. Find the number of ways of selecting a team if (1) the team has 6 from each discipline, (2) the team has a majority of computer science majors. 9.1. Solution. The first question is a sequential choice. First choose six computer scientists and then choose six mathematicians. There are C(12, 6)C(10, 6) = 194, 040 ways to do this. The second part requires some disjunctive counting first. You must decide on how many computer scientists to include: this is a number between 7 and 12. Thus, in total, there are C(12, 12) C(10, 0) + C(12, 11) C(10, 1) + C(12, 10) C(10, 2)+ + C(12, 9) C(10, 3) + C(12, 8) C(10, 4) + C(12, 7) C(10, 5) = 333, 025 possible teams. 10. This guy again? Use a combinatorial argument to prove Newton s identity: C(n, r) C(r, k) = C(n, k) C(n k, r k). 10.1. Solution. The left hand side of the equation is the number of ways to make the following choice: pick r elements out of an n element set, then pick k of those elements to be extra special. This is clearly the same as picking our k extra special elements from the n elements first, then picking r k elements out of the remaining n k elements to fill out the set. This can be done in the number of ways given on the right hand side of the equation. The result follows.

Prove that HOMEWORK ASSIGNMENT 5 5 11. Something familiar C(n, 0) + C(n, 1) + + C(n, n 1) + C(n, n) = 2 n. 11.1. Solution. This is an exercise in disjunctive counting. 2 n is the number of possible subsets of a set of size n. We may choose sets in the following exclusive collection of ways: for each integer k, 0 k n, we could pick a subset of size k. There are C(n, k) ways to do this for each k. So by the rule on disjunctive counting, we are done. Another argument: By the binomial theorem, we see that n 2 n =(1 + 1) n = C(n, k)(1) k (1) n k k=1 C(n, 0) + C(n, 1) + + C(n, n 1) + C(n, n). 12. Something new Use a combinatorial argument to prove the following identity: [C(n, 0)] 2 + [C(n, 1)] 2 + + [C(n, n 1)] 2 + [C(n, n)] 2 = C(2n, n). 12.1. Solution. Let X be a set with 2n elements partitioned into two subsets, Y and Z, each with n elements. We may count the ways to choose a subset of size n out of X by the disjunctive counting rule as follows: For each integer k, one picks k elements of Y to belong to the new set and k elements of Z not to belong to the new set. Thus, for each k, we have C(n, k)c(n, k) possibilities. We must add these over k from 0 to n, which gives the result. 13. One Mississippi, Two Mississippi... Find the number of ways to rearrange the letters of MISSISSIP P I so that no two S s are adjacent. 13.1. Solution. View this as a sequence of choices. First, choose a permutation of the non-s letters. This choice can clearly be made in P (7; 4, 2, 1) ways. Then pick an allocation of the 4 S s into the 8 places around these 7 letters. This can be done in C(8, 4) ways. Hence the answer is different ways. P (7; 4, 2, 1) C(8, 4) = 7, 350 To see this process, imagine that the permutation of the 7 letters has been chosen. We don t care what one it is, so we ll write a generic string: abcdefg of seven letters. There are now eight places in which we could put an S, and at most one S can go in each place. The locations are: before a, after g, and the six places between adjacent letters.