MA 524 Midterm Solutions October 16, 2018

Similar documents
Dyck paths, standard Young tableaux, and pattern avoiding permutations

NOTES ON SEPT 13-18, 2012

Principle of Inclusion-Exclusion Notes

FOURTH LECTURE : SEPTEMBER 18, 2014

Jong C. Park Computer Science Division, KAIST

Section Summary. Permutations Combinations Combinatorial Proofs

Topics to be covered

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

Sec$on Summary. Permutations Combinations Combinatorial Proofs

Combinatorics and Intuitive Probability

ON SOME PROPERTIES OF PERMUTATION TABLEAUX

Permutation Groups. Every permutation can be written as a product of disjoint cycles. This factorization is unique up to the order of the factors.

With Question/Answer Animations. Chapter 6

Chapter 6.1. Cycles in Permutations

Generating trees and pattern avoidance in alternating permutations

Elementary Combinatorics

Counting in Algorithms

Restricted Permutations Related to Fibonacci Numbers and k-generalized Fibonacci Numbers

The Art of Counting. Bijections, Double Counting. Peng Shi. September 16, Department of Mathematics Duke University

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.

NON-OVERLAPPING PERMUTATION PATTERNS. To Doron Zeilberger, for his Sixtieth Birthday

Sect 4.5 Inequalities Involving Quadratic Function

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

Counting. Chapter 6. With Question/Answer Animations

Random permutations avoiding some patterns

Non-overlapping permutation patterns

ECE313 Summer Problem Set 4. Reading: RVs, mean, variance, and coniditional probability

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

A STUDY OF EULERIAN NUMBERS FOR PERMUTATIONS IN THE ALTERNATING GROUP

Reading 14 : Counting

Chapter 3 PRINCIPLE OF INCLUSION AND EXCLUSION

Week 1. 1 What Is Combinatorics?

Quotients of the Malvenuto-Reutenauer algebra and permutation enumeration

Enumeration of Two Particular Sets of Minimal Permutations

SMT 2014 Advanced Topics Test Solutions February 15, 2014

MAT 243 Final Exam SOLUTIONS, FORM A

Solution: This is sampling without repetition and order matters. Therefore

Staircase Rook Polynomials and Cayley s Game of Mousetrap

ON SOME PROPERTIES OF PERMUTATION TABLEAUX

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

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

It is important that you show your work. The total value of this test is 220 points.

Discrete Structures Lecture Permutations and Combinations

Discrete Mathematics with Applications MATH236

Harmonic numbers, Catalan s triangle and mesh patterns

Math236 Discrete Maths with Applications

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

Weighted Polya Theorem. Solitaire

Fast Sorting and Pattern-Avoiding Permutations

ON THE ENUMERATION OF MAGIC CUBES*

Week 3-4: Permutations and Combinations

Integer Compositions Applied to the Probability Analysis of Blackjack and the Infinite Deck Assumption

Solutions to Problem Set 7

5 Symmetric and alternating groups

SMT 2013 Advanced Topics Test Solutions February 2, 2013

X = {1, 2,...,n} n 1f 2f 3f... nf

Pattern Avoidance in Unimodal and V-unimodal Permutations

Avoiding consecutive patterns in permutations

Distribution of Aces Among Dealt Hands

Chapter 1. Probability

LECTURE 3: CONGRUENCES. 1. Basic properties of congruences We begin by introducing some definitions and elementary properties.

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

Problem Set 8 Solutions R Y G R R G

Math 3338: Probability (Fall 2006)

#A2 INTEGERS 18 (2018) ON PATTERN AVOIDING INDECOMPOSABLE PERMUTATIONS

INDIAN STATISTICAL INSTITUTE

Combinatorics in the group of parity alternating permutations

#A13 INTEGERS 15 (2015) THE LOCATION OF THE FIRST ASCENT IN A 123-AVOIDING PERMUTATION

Counting Snakes, Differentiating the Tangent Function, and Investigating the Bernoulli-Euler Triangle by Harold Reiter

Functions of several variables

Solutions to Exercises Chapter 6: Latin squares and SDRs

arxiv: v1 [math.co] 8 Oct 2012

Problem Set 8 Solutions R Y G R R G

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

and problem sheet 7

On uniquely k-determined permutations

Permutations and Combinations

Solutions to the problems from Written assignment 2 Math 222 Winter 2015

The next several lectures will be concerned with probability theory. We will aim to make sense of statements such as the following:

EQUIPOPULARITY CLASSES IN THE SEPARABLE PERMUTATIONS

I.M.O. Winter Training Camp 2008: Invariants and Monovariants

Congruence properties of the binary partition function

Mat 344F challenge set #2 Solutions

STAJSIC, DAVORIN, M.A. Combinatorial Game Theory (2010) Directed by Dr. Clifford Smyth. pp.40

BMT 2018 Combinatorics Test Solutions March 18, 2018

PROOFS OF SOME BINOMIAL IDENTITIES USING THE METHOD OF LAST SQUARES

Principles and Formulas of Counting

Discussion 8 Solution Thursday, February 10th. Consider the function f(x, y) := y 2 x 2.

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

Partitions and Permutations

Math 42, Discrete Mathematics

Combinatorics: The Fine Art of Counting

DISCRETE STRUCTURES COUNTING

PUTNAM PROBLEMS FINITE MATHEMATICS, COMBINATORICS

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

Multiple Choice Questions for Review

Chapter 1. Probability

International Journal of Combinatorial Optimization Problems and Informatics. E-ISSN:

Permutations. = f 1 f = I A

Remember that represents the set of all permutations of {1, 2,... n}

Transcription:

MA 524 Midterm Solutions October 16, 2018 1. (a) Let a n be the number of ordered tuples (a, b, c, d) of integers satisfying 0 a < b c < d n. Find a closed formula for a n, as well as its ordinary generating function A(x). Solution 1: Note that the given inequalities are equivalent to 1 a + 1 < b + 1 < c + 2 < d + 2 n + 2. Hence these tuples are in bijection with 4-element subset of [n+2], so the answer is a n = ( ) n+2 4. The corresponding generating function is A(x) = ( ) n + 2 x n = ( ) n + 4 x n+2 x 2 = 4 4 (1 x). 5 Solution 2: Note that a 0, (b a) 1, (c b) 0, (d c) 1, and n d 0 are integers summing to n. Hence the generating function for the number of ways to choose these elements is A(x) = i 0 i 1 i 0 i 1 i 0 = 1 = x 2 (1 x) 5. x 1 x 1 1 x Since x 2 (1 x) = ( ) n + 4 x n+2, 5 4 it follows that a n = ( ) n+2 4.

(b) Let b n be the number of ordered tuples (A, B, C, D) of sets satisfying A B C D [n]. Find a closed formula for b n, as well as its exponential generating function B(x). Solution 1: We proceed by inclusion-exclusion. Note that the number of ways to choose A, B, C, and D without the restrictions that A B and C D is just 5 n : each element of [n] can lie in the largest 0, 1, 2, 3, or 4 of the sets. Similarly, if A = B, then there are 4 n possibilities, and likewise if C = D, while if A = B and C = D, then there are 3 n possibilities. It follows that a n = 5 n 2 4 n + 3 n. The corresponding generating function is B(x) = (5 n 2 4 n + 3 n ) xn n! = e5x 2e 4x + e 3x. Solution 2: The sets A, B \ A, C \ B, D \ C, and [n] \ D partition [n] into five disjoint subsets. Hence the exponential generating function for the number of ways to choose these sets is B(x) = i 0 i 1 i 0 i 1 = e x (e x 1) e x (e x 1) e x = e 5x 2e 4x + e 3x. Taking the coefficient of xn n! then gives b n = 5 n 2 4 n + 3 n. i 0 i!

2. How many partitions λ (of any size λ 0) satisfy λ i n i for all i n? Solution: This condition is equivalent to saying that the Young diagram fits inside a staircase shape of side length n 1 (shown below for n = 6). But these are in bijection with Dyck paths of length 2n: simply trace the boundary of the partition, starting one step below the southwest corner and ending one step to the right of the northeast corner. For instance, if λ = 441, we get the following path. It follows that the answer is the nth Catalan number C n = 1 n+1( 2n n ).

3. Two standard decks of 52 playing cards are independently shuffled and placed side by side. Which is more likely: that no card is in the same position in both decks, or that there is exactly one such card? Solution: Let σ S 52 be the permutation such that the ith card in the first deck is in position σ(i) in the second deck. Then the number of cards in the same position in both decks is the number of fixed points of σ. The number of permutations with no fixed points is the derangement number ( D 52 = 52! 1 1 1! + 1 2! 1 3! + 1 51! + 1 ). 52! The number of permutations with exactly one fixed point is 52 D 51 since there are 52 ways to choose which card is fixed, and D 51 ways to permute the other cards without introducing any more fixed points. But ( 52 D 51 = 52 51! 1 1 1! + 1 2! 1 3! + 1 ) = D 52 1. 51! Hence it is (slightly, by 1 ) more likely for no card to be in the same position. 52!

4. Give a combinatorial proof that c(n + 1, k + 1) = n i=k n! i! c(i, k), where c(n, k) denotes the Stirling number of the first kind. Solution: The left side counts permutations of [n + 1] with exactly k + 1 cycles. We can alternatively count these as follows. Suppose 1 lies in a cycle with n i other elements, say (1 x 1 x 2... x n i ). Then there are n(n 1)(n 2) (i + 1) = n! i! ways to choose this cycle (there are n possibilities for x 1, n 1 possibilities for x 2, and so on). The i remaining elements can then be divided into the remaining k cycles in c(i, k) ways. Since i can be any value from k to n (if i < k, then there are not enough elements to split into k cycles), the result follows.

5. Let a n be the number of compositions of n that do not contain a part of size exactly 2. For example, a 5 = 7: 5, 41, 14, 311, 131, 113, 11111. Find a homogeneous linear recurrence with constant coefficients satisfied by a n. (You do not need to supply the initial conditions.) Solution 1: The generating function for a n is a composition f(g(x)), where f(x) = 1 counts trivial sequence structures, and 1 x g(x) = x + x 3 + x 4 + = x 1 x x2 = x x2 + x 3 1 x counts parts of size not equal to 2 structures. It follows that a n x n = Clearing the denominator gives 1 x = (1 2x + x 2 x 3 ) 1 1 x x2 +x 3 1 x = a n x n = For n 2, the coefficient of x n vanishes, so a n = 2a n 1 a n 2 + a n 3. 1 x 1 2x + x 2 x 3. (a n 2a n 1 + a n 2 a n 3 )x n. Solution 2: We will show that a n = 2a n 1 a n 2 + a n 3, or equivalently, where b n = a n a n 1. b n = b n 1 + a n 3, To see this, note that we can attach a 1 onto the start of any composition of n 1 to get a composition of n. Hence b n counts our desired compositions of n that do not start with 1. In other words, they must start with a part of size at least 3. We can obtain such a composition in two ways: If the first part has size greater than 3, then we can subtract one from it, which yields a composition of size n 1 whose first part has size at least 3. There are b n 1 of these. If the first part has size exactly 3, then removing it yields a composition of size n 3. There are a n 3 of these. Adding these together gives the desired recurrence.