BMT 2018 Combinatorics Test Solutions March 18, 2018

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

Problem F. Chessboard Coloring

Winter Quarter Competition

18.S34 (FALL, 2007) PROBLEMS ON PROBABILITY

Counting Things Solutions

LESSON 2: THE INCLUSION-EXCLUSION PRINCIPLE

Caltech Harvey Mudd Mathematics Competition February 20, 2010

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

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

Combinatorics: The Fine Art of Counting

Problem Set 7: Games Spring 2018

PUTNAM PROBLEMS FINITE MATHEMATICS, COMBINATORICS

Lecture 1, CS 2050, Intro Discrete Math for Computer Science

Counting Things. Tom Davis March 17, 2006

Use the grid paper to show the shape of the pen. Explain to Polly why you believe your pen is the largest one that can be made.

Heuristic Search with Pre-Computed Databases

Games of Skill Lesson 1 of 9, work in pairs

MATHEMATICS ON THE CHESSBOARD

Figure 1: The Game of Fifteen

1st Grade Math. Please complete the activity below for the day indicated. Day 1: Double Trouble. Day 2: Greatest Sum. Day 3: Make a Number

A few chessboards pieces: 2 for each student, to play the role of knights.

Solitaire Games. MATH 171 Freshman Seminar for Mathematics Majors. J. Robert Buchanan. Department of Mathematics. Fall 2010

CS1800: More Counting. Professor Kevin Gold

Chapter 4: Patterns and Relationships

Combinatorics: The Fine Art of Counting

Week 1. 1 What Is Combinatorics?

12. 6 jokes are minimal.

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.

ProCo 2017 Advanced Division Round 1

CSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Sep 25. Homework #1. ( Due: Oct 10 ) Figure 1: The laser game.

Part I: The Swap Puzzle

Organization Team Team ID# If each of the congruent figures has area 1, what is the area of the square?

Introduction to Mathematical Reasoning, Saylor 111

Permutations. = f 1 f = I A

Partitions and Permutations

Solutions of problems for grade R5

COUNTING AND PROBABILITY

MATH CIRCLE, 10/13/2018

Combinatorics: The Fine Art of Counting

Final Practice Problems: Dynamic Programming and Max Flow Problems (I) Dynamic Programming Practice Problems

arxiv: v2 [math.ho] 23 Aug 2018

Problem A Rearranging a Sequence

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

PRIMES STEP Plays Games

Students use absolute value to determine distance between integers on the coordinate plane in order to find side lengths of polygons.

17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees.

Mathematics Competition Practice Session 6. Hagerstown Community College: STEM Club November 20, :00 pm - 1:00 pm STC-170

Convexity Invariants of the Hoop Closure on Permutations

Sect Linear Equations in Two Variables

Game Theory and Algorithms Lecture 19: Nim & Impartial Combinatorial Games

Second Annual University of Oregon Programming Contest, 1998

Reading 14 : Counting

Math 152: Applicable Mathematics and Computing

Olympiad Combinatorics. Pranav A. Sriram

MA 524 Midterm Solutions October 16, 2018

completing Magic Squares

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

Review I. October 14, 2008

Once you get a solution draw it below, showing which three pennies you moved and where you moved them to. My Solution:

Facilitator Guide. Unit 2

Games of Skill ANSWERS Lesson 1 of 9, work in pairs

37 Game Theory. Bebe b1 b2 b3. a Abe a a A Two-Person Zero-Sum Game

PARTICIPANT Guide. Unit 2

WPF PUZZLE GP 2018 ROUND 7 INSTRUCTION BOOKLET. Host Country: Netherlands. Bram de Laat. Special Notes: None.

SMT 2013 Advanced Topics Test Solutions February 2, 2013

CSE 21: Midterm 1 Solution

LEARNING ABOUT MATH FOR GR 1 TO 2. Conestoga Public School OCTOBER 13, presented by Kathy Kubota-Zarivnij

SUDOKU1 Challenge 2013 TWINS MADNESS

State Math Contest (Junior)

Combinatorics: The Fine Art of Counting

Recovery and Characterization of Non-Planar Resistor Networks

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

SOME MORE DECREASE AND CONQUER ALGORITHMS

Solutions to Exercises on Page 86

Positive Triangle Game

Analyzing Games: Solutions

GEOGRAPHY PLAYED ON AN N-CYCLE TIMES A 4-CYCLE

2012 Math Day Competition

JUSTIN. 2. Go play the following game with Justin. This is a two player game with piles of coins. On her turn, a player does one of the following:

The tenure game. The tenure game. Winning strategies for the tenure game. Winning condition for the tenure game

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

Kettering University 14 th Mathematics Olympiad. November 22, Problems and Solutions

Mathematical J o u r n e y s. Departure Points

For all questions, answer choice E) NOTA means that none of the above answers is correct.

Coin Cappers. Tic Tac Toe

Twenty-sixth Annual UNC Math Contest First Round Fall, 2017

25 C3. Rachel gave half of her money to Howard. Then Howard gave a third of all his money to Rachel. They each ended up with the same amount of money.

Lecture 2. 1 Nondeterministic Communication Complexity

Solution Algorithm to the Sam Loyd (n 2 1) Puzzle

Exploring Concepts with Cubes. A resource book

7. Three friends each order a large

Foundations of Multiplication and Division

BRITISH COLUMBIA SECONDARY SCHOOL MATHEMATICS CONTEST, 2006 Senior Preliminary Round Problems & Solutions

Introduction to Counting and Probability

UNIVERSITY OF NORTHERN COLORADO MATHEMATICS CONTEST

UKMT UKMT UKMT. Junior Kangaroo Mathematical Challenge. Tuesday 13th June 2017

Solutions to Problem Set 7

Easy Games and Hard Games

2015 ACM ICPC Southeast USA Regional Programming Contest. Division 1

The Tilings of Deficient Squares by Ribbon L-Tetrominoes Are Diagonally Cracked

Transcription:

. Bob has 3 different fountain pens and different ink colors. How many ways can he fill his fountain pens with ink if he can only put one ink in each pen? Answer: 0 Solution: He has options to fill his first pen with, 0 for the next pen, and for the last. There are thus 0 0 ways to fill his pens.. At the Berkeley Math Tournament, teams are composed of students, each of whom pick two distinct subject tests out of 5 choices. How many different distributions across subjects are possible for a team? Answer: 4 Solution: In total, there are tests being taken, and we recognize the only constraint is that no test has more than people taking it. Without the constraint, we have ( 4 ways to divide the tests among 5 subjects. We now need to remove all the partitions with more than in a given subject. There are 5 ways to choose which subject gets at least 7 tests, and we can freely place the remaining 5 tests. As such, there are 5 ( 4 invalid arrangements, so we our answer is ( 5 4 80 4. ( 4 3. Consider the grid of lattice points {(x, y 0 x, y 8}. How many rectangles with nonzero area and sides parallel to the x, y axes are there such that each corner is one of the lattice points and the point (4, 4 is not contained within the interior of the rectangle? ((4,4 is allowed to lie on the boundary of the rectangle. Answer: 040 Solution: We note that the bottom left and top right corner of a square uniquely determine it. Ignoring the constraint that (4, 4 is not within the square, we then have ( ways to choose the x coordinates of the the corners, and ( ways to choose the y coordinates, giving 3 squares in total. We note that squares contain (4, 4 iff the bottom left corner is within the bottom left quadrant of the grid and the top right corner is in the top right quadrant (where neither quadrant includes the points along the lines x 4, y 4. There are thus 4 ways to choose corners in each quadrant, and thus squares that include (4, 4. Our answer is thus 3 (3 (3 + 0 5 040. 4. Alice starts with an empty string and randomly appends one of the digits, 0,, or 8 until the string ends with 08. What is the probability Alice appends less than digits before stopping? Answer: 7 Solution: The probability the last 4 digits of any sequence is 08 is 4 4 5. The probability we finish after appending n digits is the probability the last 4 are 08, and we did not end before n digits. However, if our last digits are 08, that implies we did not end with 08 after n, n or n 3 digits. Therefore, the probability that we end at the 4th, 5th, th, or 7th digits is 5 each. The probability of ending at the 8th digit is then 5, since we need 5 avoid overcounting the case of 0808. Our answer is thus 4 5 + 55 5 5 5 5 7

5. Alice and Bob play a game where they start from a complete graph with n vertices and take turns removing a single edge from the graph, with Alice taking the first turn. The first player to disconnect the graph loses. Compute the sum of all n between and 00 inclusive such that Alice has a winning strategy. (A complete graph is one where there is an edge between every pair of vertices. Answer: 575 Solution: If the graph is currently a tree, then the next move must disconnect the graph. Otherwise, there is a move that does not disconnect the graph. Each complete graph of n vertices has edges, and any tree with n vertices has n edges, so when players play optimally (note that if the graph is not a tree, there exists a cycle, so there exists a edge which a player can remove, (n + are removed at the end of the game. Which player wins then depends only on the parity of n, where player A wins if it is even and B wins if it is odd. We note that ( n n(n is even iff n 0 mod 4 or n mod 4, so n is even iff n 0 mod 4 or n 3 mod 4. The sum of all valid n is then 4 5 + 3 5 + 4 4 5 575. Compute Answer: 3 i0 j0 ( i + j 3 (i+j. i Solution: We note that we can rearrange the sum as i0 3 i i j0 ( i j. Recall that i j0 ( i j i. We thus see the sum is i0 (/3i 3. 7. Let S be the set of line segments between any two vertices of a regular -gon. If we select two distinct line segments from S at random, what is the probability they intersect? Note that line segments are considered to intersect if they share a common vertex. Answer: 5 Solution: Consider the case where the diagonals we choose do not share vertices. In this case, the probability they intersect is simply /3, since if we select any 4 points, there are 3 ways to choose which pairs get connected, and only one of which has the diagonals intersecting. There are n (n ( ways to select pairs of segments that share a vertex, n n ( / ways to select pairs ways to select distinct pairs of segments. The of segments that don t share a vertex, and (

probability we select non-intersecting line segments is thus + n ( n ( ( n + n(n (n ( 3 + (n (n (n 3 + (n (n (n + (( n 30 (0 5 0 5 An alternative way of computing it would be noting that the total number of distinct pairs of segments is equal to the sum of the number of pairs with no shared vertices and the number of pairs with a shared vertex, so we have 3 + n ( n 3 ( 4 3 + 3 (n 3 + 4/3 5 33 5. 8. Moor and nine friends are seated around a circular table. Moor starts out holding a bottle, and whoever holds the bottle passes it to the person on his left or right with equal probability until everyone has held the bottle. Compute the expected distance between Moor and the last person to receive the bottle, where distance is the fewest number of times the bottle needs to be passed in order to go back to Moor. Answer: 5 Solution: Consider some person X that is not Moor, and let L and R be the people to X s left and right respectively. For X to be the last person, the bottle must have come to L first, then gone all the way around to R before touching X, or have gone to R first then come around to L before reaching X. We note regardless of whether L or R was visited first, the probability of going around before reaching X is the same. We thus conclude that since at least one of L or R must have been visited before X and it does not matter whether L or R was visited first, each

of Moor s friends is equally likely to be the last to touch the bottle. The expected distance is then ++3+4+5+4+3++ 5.. Let S be the set of integers from to 3 inclusive. A permutation of S is a function f : S S such that f(x f(y if x y. For how many distinct permutations f does there exists an n such that f n (i 3 i + for all i. Answer: 705 Solution: Split into cycle structures, and note that i and 3 i + must lie in the same cycle, at opposite ends, and that 7 is in a cycle on its own. We thus need to divide pairs into groups and arrange each group in an appropriate cycle. We note that the cycles with k pairs are in the correct position for all n k mod k, so to make sure there is an n such that all cycles are in the correct phase at the same time, so the only possible ways to partition the pairs into groups are (,,,,,, (,,, 3, (, 5, (3, 3, (,,, (. In the case where the pairs are partitioned as (,,,,,, there is only one way to arrange the cycles. In the (,,, 3 case, there are ( 3 ways to select which pairs are in the cycle of 3. Since the cycle of 3 is rotationally invariant, we arbitrarily fix the locations of one pair, and there are! ways to arrange the remaining two pairs. There are thus 0 8 0 permutations in this case. In the (, 5 case, we have ways to select which pairs are in the cycle of 5, and 4! 4 ways to arrange the cycle of 5. In total, we have 4 304 ways. (3, 3 case: There are ( 3 / ways to split the pairs into two cycles, and in each cycle,! to arrange them. We thus have 0 8 8 40 ways. (,, case: There are 5 ways to split the pairs into 3 groups of. In each pair of, there are ways to arrange the cycle, so there are 5 3 0 ways. In the ( case, there are 5! 5 ways of arranging it, leading to 0 3 3840 permutations. In total, we have + 0 + 40 + 304 + 0 + 3840 705 permutations. 0. Consider a n grid where each cell is either black or white, which we attempt to tile with black or white tiles such that tiles have to match the colors of the cells they cover. We first randomly select a random positive integer N where N takes the value n with probability n. We then take a N grid and randomly color each cell black or white independently with equal probability. Compute the probability the resulting grid has a valid tiling. Answer: 3 Solution: Let p n be the probability that a random n grid has a valid tiling. Consider the cell at an end of the first row of the grid. If the cell below it is the same color and and there exists a valid tiling, then there exists a valid tiling where we cover those two cells with a vertical tile of the same color, and the remaining n grid is tiled in a valid manner. If the cell below is not the same color, then if there was a valid tiling, then there must be be a pair of horizontal tiles of different colors to cover the first two columns, with a valid tiling over the remaining n grid. We thus see that p n satisfies the recurrence p n p n + 8 p n, with p 0, p.

We see the generating function P (x n0 p nx n satisfies P (x + x + p n x n n + x + + x + x We then note that the probability we want is n ( p n + 8 p n x n n p n x n + x 8 p n x n n0 + x + x x (P (x + 8 P (x P (x x. x 8 n p n n, which is simply P (x evaluated at x, so is equal to 4 3 3 3 3.