Review I. October 14, 2008

Similar documents
Week 3-4: Permutations and Combinations

Chapter 2. Permutations and Combinations

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

LEVEL I. 3. In how many ways 4 identical white balls and 6 identical black balls be arranged in a row so that no two white balls are together?

Topics to be covered

(1). We have n different elements, and we would like to arrange r of these elements with no repetition, where 1 r n.

n r for the number. (n r)!r!

Elementary Combinatorics

Counting Things. Tom Davis March 17, 2006

MAT 115: Finite Math for Computer Science Problem Set 5

Question No: 1 If you join all the vertices of a heptagon, how many quadrilaterals will you get?

LESSON 2: THE INCLUSION-EXCLUSION PRINCIPLE

Math is Cool Masters

Mat 344F challenge set #2 Solutions

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

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

Created by T. Madas COMBINATORICS. Created by T. Madas

Jong C. Park Computer Science Division, KAIST

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

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

CS 237: Probability in Computing

March 5, What is the area (in square units) of the region in the first quadrant defined by 18 x + y 20?

PERMUTATIONS AND COMBINATIONS

Combinatorics: The Fine Art of Counting

Counting. Chapter 6. With Question/Answer Animations

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

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

BMT 2018 Combinatorics Test Solutions March 18, 2018

Permutations and Combinations. Quantitative Aptitude & Business Statistics

STAT 430/510 Probability Lecture 1: Counting-1

Math236 Discrete Maths with Applications

Foundations of Computing Discrete Mathematics Solutions to exercises for week 12

Counting Subsets with Repetitions. ICS 6C Sandy Irani

Chained Permutations. Dylan Heuer. North Dakota State University. July 26, 2018

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

Combinatorics: The Fine Art of Counting

IB HL Mathematics Homework 2014

Permutation and Combination

Chapter 3 PRINCIPLE OF INCLUSION AND EXCLUSION

CONTENTS CONTENTS PAGES 11.0 CONCEPT MAP A. PERMUTATIONS a EXERCISE A B. COMBINATIONS a EXERCISE B PAST YEAR SPM

CPCS 222 Discrete Structures I Counting

Math Circle Beginners Group May 22, 2016 Combinatorics

Math Circle Beginners Group May 22, 2016 Combinatorics

TUESDAY, 8 NOVEMBER 2016 MORNING 1 hour 30 minutes

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

SUDOKU1 Challenge 2013 TWINS MADNESS

Solutions to Exercises on Page 86

A) 15 B) 13 C) 11 D) 9 E) 8

With Question/Answer Animations. Chapter 6

CSE 21: Midterm 1 Solution

Standard Sudoku point. 1 point. P a g e 1

SHORT ANSWER TYPE. Q.1 In how many ways can clean & clouded (overcast) days occur in a week assuming that an entire day is either clean or clouded.

Combinatorics: The Fine Art of Counting

COMBINATORIAL PROBABILITY

Intermediate Mathematics League of Eastern Massachusetts

Introduction to Mathematical Reasoning, Saylor 111

WASHINGTON STATE MU ALPHA THETA 2009 INDIVIDUAL TEST

The Pigeonhole Principle

UNC Charlotte 2008 Algebra March 3, 2008

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

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.

2. Nine points are distributed around a circle in such a way that when all ( )

Solutions to the 2004 CMO written March 31, 2004

JUST THE MATHS UNIT NUMBER PROBABILITY 2 (Permutations and combinations) A.J.Hobson

12. 6 jokes are minimal.

NRP Math Challenge Club

UNC Charlotte 2012 Algebra

Staircase Rook Polynomials and Cayley s Game of Mousetrap

2005 Galois Contest Wednesday, April 20, 2005

MATHEMATICS ON THE CHESSBOARD

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

CISC 1400 Discrete Structures

The Richard Stockton College of New Jersey Mathematical Mayhem 2013 Group Round

Discrete Structures for Computer Science

Combinatorial Proofs

Homework Assignment #1

Counting (Enumerative Combinatorics) X. Zhang, Fordham Univ.

Reading 14 : Counting

MATHCOUNTS g 42 nd Mock Mathcounts g

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

Unit on Permutations and Combinations (Counting Techniques)

AMC 8/10: Principles and Practice

Problem 2A Consider 101 natural numbers not exceeding 200. Prove that at least one of them is divisible by another one.

Duke Math Meet Individual Round

CHAPTER 5 BASIC CONCEPTS OF PERMUTATIONS AND COMBINATIONS

What is the sum of the positive integer factors of 12?

Contest 1. October 20, 2009

BmMT 2013 TEAM ROUND SOLUTIONS 16 November 2013

aabb abab abba baab baba bbaa permutations of these. But, there is a lot of duplicity in this list, each distinct word (such as 6! 3!2!1!

Kangaroo 2017 Student lukio

Discrete Mathematics with Applications MATH236

Multiple Choice Questions for Review

Caltech Harvey Mudd Mathematics Competition February 20, 2010

Math 454 Summer 2005 Due Wednesday 7/13/05 Homework #2. Counting problems:

QUANT TECHNIQUES STRAIGHT FROM SERIAL CAT TOPPER BYJU

Well, there are 6 possible pairs: AB, AC, AD, BC, BD, and CD. This is the binomial coefficient s job. The answer we want is abbreviated ( 4

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

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

GCSE Mathematics Practice Tests: Set 4

COUNTING TECHNIQUES. Prepared by Engr. JP Timola Reference: Discrete Math by Kenneth H. Rosen

Transcription:

Review I October 14, 008 If you put n + 1 pigeons in n pigeonholes then at least one hole would have more than one pigeon. If n(r 1 + 1 objects are put into n boxes, then at least one of the boxes contains r or more of the objects. If the average of n nonnegative integers a 1,a,... a n is greater than r 1, i.e., a 1 + a + + a n n > r 1, then at least one of the integers is greater than or equal to r. The number of r-permutations of an n-set equals P(n,r = n(n 1 (n r + 1 = The number of permutations of an n-set is P(n,n = n!. The number of circular r-permutations of an n-set equals n! (n r!. P(n,r r = n! (n r!r. The number of circular permutations of an n-set is equal to (n 1! The number of r-combinations of an n-set equals ( n = P(n,r n! = r r! (n r!r!. The number of r-permutations of the multiset { x 1, x,..., x k } equals k r. The number of permutations of the multiset {n 1 x 1,n x,...,n k x k } equals n! n 1!n! n k!, where n = n 1 + n + + n k Then the number of r-combinations of the multiset { a 1, a,..., a k } (the number of r-combinations with repetition allowed equals ( k+r 1 ( r = k+r 1 k 1. The ( number of nonnegative integer solutions for the equation x 1 + x + + x k = r equals k+r 1 ( r = k+r 1 k 1. The number of positive integer solutions for the equation x 1 + x + + x k = r equals ( r 1 k 1. The number of ways to place r identical balls into k distinct boxes equals ( k+r 1 ( r = k+r 1 k 1. The number of ways to place r identical balls into k distinct boxes such that no box remains empty equals ( r 1 k 1. 1

Algorithm for generating the permutations of {1,,..., n 1, n}: Begin with 1 n. While there exists a mobile integer, do (1 Find the largest mobile integer m ( Switch m and the adjacent integer its arrow points to. (30 Switch thew direction of all the arrows above integers p with p > m. Algorithm 1 for construction of a permutation from its inversion sequence (a 1,a,...,a n : (n Write down n.... (n-k Insert n k to the right of the a n k th existing number... Algorithm for construction of a permutation from its inversion sequence (a 1,a,...,a n : (0 Mark down n empty spaces. For k = 1 till n Put k into the a k + 1st empty space from the left. Algorithm for generating combinations of {x n 1,x n,...,x 1,x 0 } : Begin with a n 1 a n a 1 a 0 = 00... 00. While a n 1 a n a 1 a 0 11... 11, do (1 Find the smallest integer j such that a j = 0. ( Replace a j by 1 and each of a j 1,...,a 1,a 0 by 0. The algorithm stops when a n 1 a n a 1 a 0 = 11... 11. Algorithm for generating reflected Gray codes of order n: Begin with a n 1 a n a 1 a 0 = 00... 00. While a n 1 a n a 1 a 0 10... 00, do (1 If a n 1 + a n + + a 1 + a 0 = even, then change a 0 (from 0 to 1 or 1 to 0. ( If a n 1 + a n + + a 1 + a 0 = odd, find the smallest j such that a j = 1 and change a j+1 (from 0 to 1 or 1 to 0. Algorithm for generating r-combinations of S = {1,,..., n 1, n}: Begin with 1 r. While a 1 a a r (n r + 1 (n 1n, do (1 Find the largest integer k such that a k < n and a k + 1 is not in the a 1 a a r. ( Replace a 1 a a r with a 1 a a k 1 (a k + 1(a k + (a k + r k + 1. Algorithm for a linear extension of an n-poset: Step 1. Choose a minimal element x 1 from X (with respect to the ordering. Step. Delete x 1 from X; choose a minimal element x from X. Step 3. Delete x from X and choose a minimal element x 3 from X.... Step n. Delete x n 1 from X and choose the only element x n in X.

Practice Problems 1. There are n married couples. How many of the n people must be selected in order to guarantee that one has selected a married couple?. There are 50 people in the room. Some of them are acquainted with each other, some not. Prove that there are two persons in the room who have equal numbers of acquaintances. 3. We are given m arbitrary natural numbers a 1,a,...,a m. Prove that the sum of some consecutive numbers in the sequence is divisible by m. 4. Given 101 integers from 1,,...,00, there are at least two integers such that one of them is divisible by other. 5. 10 points are positioned inside of the equilateral triangle of side 1. Prove that there are two of them at the distance at most 1 3 from each other. 6. There are 30 classes and 1000 students in a school. Prove that at least one class has at least 34 students. 7. 51 points are placed, in a random way, into a square of side 1 unit. Can we prove that 3 of these points can be covered by a circle of radius 1 7 units? 8. Prove that of 6 people, either there are three, each pair of whom are aquainted, or there are three, each pair of whom are unaquainted. Prove that this is not true for 5 people. 9. Find the number of ways to arrange the 6 letters of the alphabet so that no two of the vowels a, e, i, o, and u occur next to each other? 10. Find the number of 7-digit numbers such that all digits are nonzero, distinct, and the digits 8 and 9 do not appear next to each other. 11. Twelve people, including two who do no wish to sit next to each other, are to be seated at a round table. How many circular seating plans can be made? 1. In how many ways can six men and six ladies be seated at a round table if the men and ladies are to sit in alternative seats? 13. How many shortest paths are there from one corner of a 9 8 grid to the opposite corner? 14. A comitee of 5 to be chosen from a club that has 10 men and 1 women. How many ways can the comittee be fomed if is to contain at least two women? How may ways, if in addition, Mrs. Brown refuse to serve together with her husband? 15. Find the number of permutations of the letters in the word MISSISSIPPI. 16. In how many ways can 8 identical rooks be placed on an 8-by-8 chessboard so that no two rooks can attak one another? 17. In how many ways can 8 rooks of different color be placed on an 8-by-8 chessboard so that no two rooks can attak one another? 18. How many possibilities are there for one red rook, 3 blue rooks, and 4 yellow?

19. In how many ways can 8 identical non-attacking rooks be placed on a 1-by-1 chessboard? 0. Find the number of 8-permutations of the multiset M = {3a,b,4c}. 1. Find the number of integer solutions for the equation where x 1 3,x 0,x 3,x 4 5. x 1 + x + x 3 + x 4 = 10,. Find the number of nonnegative integer solutions for the equation x 1 + x + x 3 + x 4 < 19. 3. A bakery sells 8 different kinds of doughnuts. If the bakery has virtually unlimited supply of each kind, how many different options for a dozen of doughnuts are there? What if a box is to contain at least one of each kind of doughnuts? 4. In how many ways can 1 indistiguishable apples and 1 orange be distributed among three children in such a way that each child gets at least one piece of fruit? 5. In how many ways can 10 apples, 15 oranges, and 8 bananas be distributed among four children? 6. In how many ways can 10 apples, 15 oranges, and 8 bananas be distributed among four children in such a way that each child gets at least one piece of fruit of each kind? 7. In how many ways can 40 indistinguishable apples be distributed among three children in such a way that each child gets at least 5 apples? 8. In how many ways can 10 apples, 15 oranges, and 14 bananas be distributed among two children? 9. In how many ways can 10 apples, 15 oranges, and 14 bananas be distributed among two children in such a way that each child gets at least three pieces of fruit of each kind? 30. A shelf holds 1 books in a row. How many ways are there to choose five books so that no two adjacent books are chosen? 31. Twelve knights sit at the round table in King Arthur s court. Everyone has two enemies, and these are exactly his immediate neighbors at the table. In how many ways can the King Arthur choose five knights so that no two enemies are chosen? 3. Determine the number of r-combinations of the multiset {1 a 1, a,..., a k }. 33. Determine the total number of combinations (of any size of the multiset M = {n 1 a 1,n a,...,n k a k }. 34. Determine the inversion sequence of the permutation 3516874. 35. Construct the permutation of {1,,..., 8} whose inversion sequence is, 5, 5, 0,, 1, 1, 0. 36. Generate the 5-tuples of 0-s and 1-s by using the base arithmetic generating scheme and identify them with combinations of {x 4,x 3,x,x 1,x 0 }.

37. For n = 8, which combination comes after {x 6,x 5,x 3,x 1,x 0 } in the list of all combinations of {x 7,x 6,...,x 1,x 0 }? 38. Construct the reflected Gray code of order n = 3 using the algorithm. 39. For n = 8, which 8-tuples follow 10100110 and 00011111 in the reflected Gray code? 40. Generate all 3-combinations of {1,, 3, 4, 5}. 41. Generate all 3-permutations of {1,, 3, 4, 5}. 4. Draw the diagram representing the poset (P({1,,3},. 43. Draw the diagram representing the poset ({1,, 3, 4, 5, 6, 7, 8, 9, 10},. 44. Find a linear extention of ({1,,3,...,n},. 45. Find a linear extention of (P({1,, 3},.

Answers 1. n + 1 9. 1!P(, 5 10. P(9,7 P(8,6 11. 9 10! 1. 5!6! ( 9 + 8 13. 8 ( ( ( ( ( ( ( 1 10 1 10 1 10 1 14. + + + 3 3 4 1 5 ( ( ( ( ( ( ( 1 10 1 10 1 10 1 + + + 3 3 4 1 5 11! 15. 1!4!4!! 16. 8! 17. (8! 8! 18. 8! ( 1!3!4! 1 19. ( 8! 8 8! 0.!!4! + 8! 3!1!4! + 8! ( ( 3!!3! 8 + 1 1 11 3. ; 7 7 ( 1 4. 3 ( ( ( 13 18 11 5. 3 3 3 ( ( ( 9 14 7 6. 3 3 3 ( 5 + 7. 8. 11 16 15 9. 5 ( 10 9 8 30. 5 ( ( 6 7 31. + 4 5 ( ( r + k r + k 3 3. + k k 33. (n 1 + 1(n + 1 (n k + 1 34.,4,0,4,0,0,1,0 35. 4816573 37. {x 6,x 5,x 3,x } 38. 000 001 011 010 110 111 101 100 39. 10100111, 00011101 40. 13,14,15,134, 135, 145,34,35, 45, 345. 44. E.g.,1345... n 45. E.g.,, {1}, {}, {3}, {1,}, {1, 3}, {,3}, {1,, 3} ( 11 1 ( 9 ( 11 ( 9 1 ( 11 3