Mathematical Structures Combinations and Permutations

Similar documents
Binomial Coefficient Identities/Complements

Mathematical Induction Assignments

CIS 375 Intro to Discrete Mathematics Exam 3 (Section M004: Blue) 6 December Points Possible

The Inclusion Exclusion Principle

CIS 375 Intro to Discrete Mathematics Exam 3 (Section M001: Green) 6 December Points Possible

6 CARDINALITY OF SETS

5 Set Operations, Functions, and Counting

COMBINATORIAL COUNTING

PRINCIPLE OF MATHEMATICAL INDUCTION

Discrete Mathematics. Spring 2017

MATH FINAL EXAM REVIEW HINTS

ADVANCED CALCULUS - MTH433 LECTURE 4 - FINITE AND INFINITE SETS

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

Written Homework # 4 Solution

Axioms for Set Theory

Lecture 3.2: Induction, and Strong Induction

2 Equivalence Relations

Fall 2017 Test II review problems

Section 4.4 Functions. CS 130 Discrete Structures

MATH 580, midterm exam SOLUTIONS

Mathematical Fundamentals

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

D-MATH Algebra I HS18 Prof. Rahul Pandharipande. Solution 1. Arithmetic, Zorn s Lemma.

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

Induction. Induction. Induction. Induction. Induction. Induction 2/22/2018

Problem Set 5 Solutions

University of Toronto Faculty of Arts and Science Solutions to Final Examination, April 2017 MAT246H1S - Concepts in Abstract Mathematics

8.1 Sequences. Example: A sequence is a function f(n) whose domain is a subset of the integers. Notation: *Note: n = 0 vs. n = 1.

Name CMSC203 Fall2008 Exam 2 Solution Key Show All Work!!! Page (16 points) Circle T if the corresponding statement is True or F if it is False.

CSE 20 Discrete Math. Winter, January 24 (Day 5) Number Theory. Instructor: Neil Rhodes. Proving Quantified Statements

Chapter 1 : The language of mathematics.

Mathematical Induction

Applications of Chromatic Polynomials Involving Stirling Numbers

Exercises for Unit VI (Infinite constructions in set theory)

PROBABILITY VITTORIA SILVESTRI

Math Fall 2014 Final Exam Solutions

Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4

Math 210 Exam 2 - Practice Problems. 1. For each of the following, determine whether the statement is True or False.

Chapter Generating Functions

Mathematical Induction. How does discrete math help us. How does discrete math help (CS160)? How does discrete math help (CS161)?

SF2729 GROUPS AND RINGS LECTURE NOTES

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

INDUCTION AND RECURSION. Lecture 7 - Ch. 4

MODEL ANSWERS TO THE SEVENTH HOMEWORK. (b) We proved in homework six, question 2 (c) that. But we also proved homework six, question 2 (a) that

The integers. Chapter 3

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

Basic counting techniques. Periklis A. Papakonstantinou Rutgers Business School

2.1 Sets. Definition 1 A set is an unordered collection of objects. Important sets: N, Z, Z +, Q, R.

Solutions of exercise sheet 6

Notes on counting. James Aspnes. December 13, 2010

Week Some Warm-up Questions

THE ISLAMIC UNIVERSITY OF GAZA ENGINEERING FACULTY DEPARTMENT OF COMPUTER ENGINEERING DISCRETE MATHMATICS DISCUSSION ECOM Eng. Huda M.

Note that r = 0 gives the simple principle of induction. Also it can be shown that the principle of strong induction follows from simple induction.

Discrete Structures - CM0246 Cardinality

21 Induction. Tom Lewis. Fall Term Tom Lewis () 21 Induction Fall Term / 14

MATH 3300 Test 1. Name: Student Id:

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

(2) Generalize De Morgan s laws for n sets and prove the laws by induction. 1

Numerical Sequences and Series

Discrete Structures: Sample Questions, Exam 2, SOLUTIONS

CS1800: Mathematical Induction. Professor Kevin Gold

Economics 204 Summer/Fall 2017 Lecture 1 Monday July 17, 2017

MULTI-RESTRAINED STIRLING NUMBERS

Section 0. Sets and Relations

PROBABILITY. Contents Preface 1 1. Introduction 2 2. Combinatorial analysis 5 3. Stirling s formula 8. Preface


0 Sets and Induction. Sets

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007)

Functional Programming Laboratory 3

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

Economics 204 Fall 2011 Problem Set 1 Suggested Solutions

Review Problems for Midterm Exam II MTH 299 Spring n(n + 1) 2. = 1. So assume there is some k 1 for which

Math /Foundations of Algebra/Fall 2017 Foundations of the Foundations: Proofs

Mathathon Round 1 (2 points each)

CSE 20 DISCRETE MATH. Fall

1 Examples of Weak Induction

2 - Strings and Binomial Coefficients

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

Math 3000 Section 003 Intro to Abstract Math Homework 6

Solution. 1 Solutions of Homework 1. 2 Homework 2. Sangchul Lee. February 19, Problem 1.2

n(n 1) = (n + 1)n(n 1)/ ( 1) n(n 1)(n 2) = (n + 1)n(n 1)(n 2)/4

Math 300: Final Exam Practice Solutions

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

Section 7.2: One-to-One, Onto and Inverse Functions

Galois Theory TCU Graduate Student Seminar George Gilbert October 2015

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations

Pre-calculus 12 Curriculum Outcomes Framework (110 hours)

Solutions to Homework Set 1

Section 7.5: Cardinality

FURTHER MATHEMATICS AS/FM/CP AS LEVEL CORE PURE

Mathematical Induction

Notes 6: Polynomials in One Variable

n n P} is a bounded subset Proof. Let A be a nonempty subset of Z, bounded above. Define the set

The cycle polynomial of a permutation group

PUTNAM PROBLEMS SEQUENCES, SERIES AND RECURRENCES. Notes

MATH 215 Sets (S) Definition 1 A set is a collection of objects. The objects in a set X are called elements of X.

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.

Iowa State University. Instructor: Alex Roitershtein Summer Exam #1. Solutions. x u = 2 x v

MTHSC 3190 Section 2.9 Sets a first look

MATH10040: Numbers and Functions Homework 1: Solutions

Transcription:

Definitions: Suppose S is a (finite) set and n, k 0 are integers The set C(S, k) of k - combinations consists of all subsets of S that have exactly k elements The set P (S, k) of k - permutations consists of all k-tupels (s 1,, s k ) of pairwise distinct elements s i of S Write C(n, k) and P (n, k) for the cardinalities of C([n], k), and of P ([n], k), respectively Comments: C(S, k) = {A S: A = k} P(S) is a set of subsets of S P (S, k) S k = S S consists of k-sequences (s }{{} 1, s 2, s k ) k-times of elements s i S More precisely, P (n, k) is the the set of one-to-one functions from [n] to S C( S, k) = C(S, k) and P ( S, k) = P (S, k) are numbers

Idea: Reduce the problem of counting P ([n], k) to counting P ([n 1], k 1) Any sequence (s 1,, s k ) P ([n], k) which does not contain n among its first (k 1) components is mapped to (s 1,, s k 1 ) P ([n 1], k 1) If s i = n for some i < k then map it to (s 1,, s i 1, s k, s i+1,, s k 1 ) which is again in P ([n 1], [k 1]) because s j n for j i For illustration consider the example Φ 5,3 : P ([5], 3) P ([4], 2), with Φ 5,3 broken up into two steps: Φ 5,3 = (1, 2, 3) (1, 2, 4) (1, 2, 5) (1, 5, 2) (1, 5, 3) (2, 4, 5) (2, 5, 1) (5, 1, 2) (5, 4, 3) (1, 2, 3) (1, 2, 4) (1, 2, 5) (1, 2, 2) (1, 3, 3) (1, 3) (2, 4, 5) (2, 4) (2, 1, 1) (2, 1) (2, 1, 2) (2, 1) (3, 4, 3) (3, 4) Check for understanding: Find all elements x P ([5], 3) such that Φ 5,3 (x) = (2, 1), ie find Φ 1 5,3(2, 1) Find Φ 1 5,3(3, 4) Find all elements x P ([5], 3) such that (x) = (3, 2, 1), ie Ψ 1 5,3(3, 2, 1) Find Ψ 1 5,3(3, 2, 3) find

Definitions: For n k >1 the function Ψ n,k : P ([n], k) [n 1] k is defined by Ψ n,k (s 1, s k ) = (s 1, s i 1, s i, s i+1 s k 1, s k ) if s i n for all i k (s 1, s i 1, s k, s i+1 s k 1, s k ) if s i = n Also define π n 1,k : [n 1] k [n 1] k 1 by π n 1,k (s 1, s k ) = (s 1, s k 1 ), and Φ n,k : P ([n], k) P ([n 1], k 1) by Φ n,k = π n 1,k Ψ n,k Exercises: For all n > 2 and all k > 1: verify that Ψ n,k (s) [n 1] k for every s P ([n], k), verify that π n 1,k (Ψ n,k (s)) [n 1] k 1 ) for every s P ([n], k), verify that π n 1,k (Ψ n,k (s)) P ([n 1], k 1) for every s P ([n], k), prove that Φ n,k is onto P ([n 1], k 1), prove that Ψ n,k is one-to-one, describe precisely which (s 1, s k ) lie in the image of P ([n], k) under Ψ n,k show that Φ n,k is n-to-one, Show that a left inverse of Ψ n,k (defined on the image of Ψ n,k ) is given by Ψ 1 n,k(s 1, s k ) = (s 1, s 2, s k 1, s k ) if s i s k for all i < k (s 1, s i 1, n, s i+1 s k 1, s k ) if s i = s k

Definition: Recursively define the counting functions f m+k,k : P ([m+k], k) Z for n 1 by f n,1 (i) = i, and for m 1, k > 1 by f m+k,k (s 1, s k ) = s k + (m + k) (f m+k 1,k 1 Φ m+k,k (s 1, s k ) 1) Theorem: For every pair of integers m 0, k 1 the function f m+k,k is a bijection from P ([m + k], k) onto (m+k)! Proof (by induction on k): Induction start: If k = 1 then f m+1,1 is the identity map on [m+1] = [ ] (m+1)! Induction hypothesis: Suppose f m+k 1,k 1 : P ([m + k 1], k 1) Z is a bijection onto (m+k 1)! for all m 0 and some k 1 1 Induction step: Assuming that f m+k 1,k 1 : P ([m + k 1], k 1) (m+k 1)! is a bijection for all m 0, consider now f m+k,k First show that f m+k,k is one-to-one: Suppose s = (s 1, s k ) and s = (s 1, s k) are in P ([m + k], k) such that f m+k,k (s) = f m+k,k (s ) This means that ( ) s k s k = (m + k) f m+k 1,k 1 (Φ m+k,k (s )) f m+k 1,k 1 (Φ m+k,k (s)) The left side takes integer values in the interval [ (m + k 1), m + k 1], while the right hand side is an integer multiple of (m + k), hence both sides are zero Use the induction hypothesis and the fact that the right side is zero to conclude that Φ m+k,k (s ) = Φ m+k,k (s) Combine this with the left side being zero, ie s k = s k to conclude Ψ m+k,k (s ) = (Φ m+k,k (s ), s k) = (Φ m+k,k (s), s k ) = Ψ m+k,k (s) Since Ψ m+k,k was shown to be one-to-one this proves that s = s To show that f m+k,k is onto, suppose y 1 is an integer such that y (m + k)!/k! Write y in the form y = z (m + k) + r with z 0 and 0 < r m + k (ie r is basically the remainder of y after division by (m + k) but we allow r = m + k instead of the usual requirement that 0 r < m + k) Note that 0 z < y m + k (m + k)! (m + k) = (m + k 1)! and thus, by induction hypothesis, there exists s = (s 1, s k 1 ) P ([m + k 1], k 1) such that f m+k 1,k 1 (s) = z + 1 If s i = r for some i then define s = (s 1,, s i 1, m + k, s i+1, s k 1, r), else define s = (s, r) Note that in either case s has no repetitions, and each s i [m + k], ie s P ([m + k], k) It is straightforward to check that indeed f m+k,k (s) = y

Counting combinations Definition: Recursively define for n 0 the counting functions f n,k : C([n], k) Z: For k = 0 define f n,0 ( ) = 1 For k = n define f n,n ([n]) = 1 For 0 < k < n define { fn 1,k (A) if n A f n,k (A) = f n 1,k 1 (A \ {n}) + (n 1)! else Theorem: For any integers n 0, 0 k n the function f n,k is a bijection from C([n], k) onto [ (n k)! k! ] Proof (by induction on n) Induction start If n = 0 then the only choice is k = 0, and f 0,0 : C([0], 0) = { } [1] = [ 0! ] is a bijection 0! 0! Induction hypothesis Suppose f n 1,k is a bijection onto [ ] for some n 1 0 and all 0 k n 1 Induction step Assuming the induction hypothesis consider now f n,k for 0 k n If k = 0 then f n,0 : C([n], 0) = { } {1} = [ ] is a bijection (n 0)! 0! If k = n then f n,n : C([n], n) = {[n]} {1} = [ ] is a bijection 0! (n 0)! For the remainder assume 0 < k < n To show that f n,k is one-to-one, suppose A, A C([n], k) are such that f n,k (A) = f n,k (A ) Beware The combination of two 1-1 functions need not be 1-1: The functions f 1 (x) = { x and f 2 (x) = x are 1-1 on any domain, but their f1 (x) if x < 0, combination f(x) = is f(x) = x which is not 1-1 f 2 (x) if x 0 Distinguish two cases: If f n,k (A) (and thus also f n,k (A ) ), then f n 1,k (A)=f n,k (A)=f n,k (A )=f n 1,k (A ) By induction hypothesis f n 1,k is 1-1 and thus A=A If f n,k (A) > (and thus also f n,k (A ) > f n 1,k 1 (A\{n}) = f n,k (A) ), then = f n,k(a ) = f n 1,k 1(A \{n}) By induction hypothesis f n 1,k 1 is one-to-one and thus A \ {n} = A \ {n} Together with n A and also n A (because of f n,k (A) > and f n,k(a ) > this shows that again A = A Beware: In general A\B =A \B does not imply A=A To show that f n,k is onto [ ) ] suppose 1 y Again consider two cases (n k)! k! (n k)! k! then, by induction hypothesis, there exists A C([n 1], k) such that If y f n 1,k (A) = y Since A is also a subset of [n], and it does not contain n, clearly also f n,k (A) = y If y > then, with a little algebra verify all steps in this calculation 0 < y (n k)! k! = n (n k) = (n k)! k! ((n 1) (k 1))! (k 1)! by induction hypothesis, there exists A C([n 1], k 1) such that f n 1,k 1 (A ) = y Define A = A {n} Then A = A + 1 = (k 1) + 1 = k because n A, Thus A C([n], k) and f n,k (A) = f n 1,k 1 (A ) + (n 1)! = y This shows that f n,k is onto [ ] (n k)! k!