Injections, Surjections, and the Pigeonhole Principle

Similar documents
Lecture Overview. 2 Permutations and Combinations. n(n 1) (n (k 1)) = n(n 1) (n k + 1) =

Exercises 1 Sets and functions

Math 155 (Lecture 3)

Section 5.1 The Basics of Counting

The Random Walk For Dummies

1 Counting and Stirling Numbers

(ii) Two-permutations of {a, b, c}. Answer. (B) P (3, 3) = 3! (C) 3! = 6, and there are 6 items in (A). ... Answer.

18th Bay Area Mathematical Olympiad. Problems and Solutions. February 23, 2016

CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo

CS 336. of n 1 objects with order unimportant but repetition allowed.

Books Recommended for Further Reading

1 Summary: Binary and Logic

Bertrand s Postulate

1 What is combinatorics?

62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 +

Putnam Training Exercise Counting, Probability, Pigeonhole Principle (Answers)

CIS Spring 2018 (instructor Val Tannen)

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

NICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =

( ) GENERATING FUNCTIONS

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

Chapter 7 COMBINATIONS AND PERMUTATIONS. where we have the specific formula for the binomial coefficients:

Permutations & Combinations. Dr Patrick Chan. Multiplication / Addition Principle Inclusion-Exclusion Principle Permutation / Combination

Complex Numbers Solutions

Let us consider the following problem to warm up towards a more general statement.

# fixed points of g. Tree to string. Repeatedly select the leaf with the smallest label, write down the label of its neighbour and remove the leaf.

Combinatorics II. Combinatorics. Product Rule. Sum Rule II. Theorem (Product Rule) Theorem (Sum Rule)

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

MATH 304: MIDTERM EXAM SOLUTIONS

Chapter 1 : Combinatorial Analysis

It is always the case that unions, intersections, complements, and set differences are preserved by the inverse image of a function.

Math 4400/6400 Homework #7 solutions

(I.C) THE DISTRIBUTION OF PRIMES

Square-Congruence Modulo n

Mathematical Induction

Solutions to Math 347 Practice Problems for the final

UNIVERSITY OF NORTHERN COLORADO MATHEMATICS CONTEST. First Round For all Colorado Students Grades 7-12 November 3, 2007

Topic 5: Basics of Probability

The multiplicative structure of finite field and a construction of LRC

SNAP Centre Workshop. Basic Algebraic Manipulation

COMP 2804 Solutions Assignment 1

Basic Counting. Periklis A. Papakonstantinou. York University

Chapter 6 Infinite Series

Induction: Solutions

Combinatorially Thinking

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3

Math 475, Problem Set #12: Answers

[ 11 ] z of degree 2 as both degree 2 each. The degree of a polynomial in n variables is the maximum of the degrees of its terms.

Summary: Congruences. j=1. 1 Here we use the Mathematica syntax for the function. In Maple worksheets, the function

Algebra II Notes Unit Seven: Powers, Roots, and Radicals

3.2 Properties of Division 3.3 Zeros of Polynomials 3.4 Complex and Rational Zeros of Polynomials

MT5821 Advanced Combinatorics

THE ASYMPTOTIC COMPLEXITY OF MATRIX REDUCTION OVER FINITE FIELDS

Zeros of Polynomials

2.1. The Algebraic and Order Properties of R Definition. A binary operation on a set F is a function B : F F! F.

6.3 Testing Series With Positive Terms

The Boolean Ring of Intervals

6.003 Homework #3 Solutions

Chapter 0. Review of set theory. 0.1 Sets

MT5821 Advanced Combinatorics

In number theory we will generally be working with integers, though occasionally fractions and irrationals will come into play.

Discrete Math Class 5 ( )

SEQUENCES AND SERIES

Generating Functions. 1 Operations on generating functions

PUTNAM TRAINING PROBABILITY

Math 113 Exam 3 Practice

3.1 Counting Principles

Math 113 Exam 3 Practice

6 Integers Modulo n. integer k can be written as k = qn + r, with q,r, 0 r b. So any integer.

Lecture Notes for CS 313H, Fall 2011

Sequences and Series of Functions

Lecture Notes for Analysis Class

Davenport-Schinzel Sequences and their Geometric Applications

Lecture 10: Mathematical Preliminaries

Permutations, Combinations, and the Binomial Theorem

Homework 1 Solutions. The exercises are from Foundations of Mathematical Analysis by Richard Johnsonbaugh and W.E. Pfaffenberger.

1. ARITHMETIC OPERATIONS IN OBSERVER'S MATHEMATICS

Fortgeschrittene Datenstrukturen Vorlesung 11

Infinite Sequences and Series

subcaptionfont+=small,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0 subcaption ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, 2/16/2016

4.3 Growth Rates of Solutions to Recurrences

MAT1026 Calculus II Basic Convergence Tests for Series

Basic Sets. Functions. MTH299 - Examples. Example 1. Let S = {1, {2, 3}, 4}. Indicate whether each statement is true or false. (a) S = 4. (e) 2 S.

If a subset E of R contains no open interval, is it of zero measure? For instance, is the set of irrationals in [0, 1] is of measure zero?

SEQUENCE AND SERIES NCERT

Optimally Sparse SVMs

Homework 3. = k 1. Let S be a set of n elements, and let a, b, c be distinct elements of S. The number of k-subsets of S is

Discrete Mathematics Recurrences

Alternating Series. 1 n 0 2 n n THEOREM 9.14 Alternating Series Test Let a n > 0. The alternating series. 1 n a n.

[ 47 ] then T ( m ) is true for all n a. 2. The greatest integer function : [ ] is defined by selling [ x]

Properties and Tests of Zeros of Polynomial Functions

( ) = p and P( i = b) = q.

Solutions. tan 2 θ(tan 2 θ + 1) = cot6 θ,

The picture in figure 1.1 helps us to see that the area represents the distance traveled. Figure 1: Area represents distance travelled

Randomized Algorithms I, Spring 2018, Department of Computer Science, University of Helsinki Homework 1: Solutions (Discussed January 25, 2018)

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Statistics

Unit 4: Polynomial and Rational Functions

Fourier Analysis, Stein and Shakarchi Chapter 8 Dirichlet s Theorem

Lecture 6 April 10. We now give two identities which are useful for simplifying sums of binomial coefficients.

Beurling Integers: Part 2

Transcription:

Ijectios, Surjectios, ad the Pigeohole Priciple 1 (10 poits Here we will come up with a sloppy boud o the umber of parethesisestigs (a (5 poits Describe a ijectio from the set of possible ways to est pairs of paretheses to the set of bit-strigs (strigs cosistig of the digits 0 or 1 of legth 2 The ijectio here will be a very simple ecodig: sice a estig of pairs of paretheses is a strig of 2 idividual paretheses, we ca simply replace each ope-parethesis with a zero ad a close-parethesis with a 1, eg ( ( ( will be mapped to 001101 This is clearly a ijectio sice two differet parethesisestigs will have differet orderigs of ope- ad close-paretheses, ad will thus map to differet bit-strigs (b (3 poits Use this ijectio ad the ow size of its rage to reach a coclusio about the size of its domai, ie the umber of parethesis-estig arragemets We ow the domai of a ijectio is o larger tha its rage The rage here (the set of bit-strigs of legth 2 has size 2 2, so we ow that there are o more tha 2 2 parethesis-estigs (c (2 poits Demostrate that the fuctio described above is ot a bijectio How does this discovery affect the coclusio reached i part (b? This relatioship is o-bijective sice there are may bit-strigs which do ot correspod to a parethesis-estig; for istace, if there are a uequal umber of zeroes ad oes, the paretheses i a pre-image for such a strig would be ubalaced I additio, ay strig begiig with a oe would ot correspod to a parethesis-estig, sice a parethesis-estig must begi with a opeig parethesis We thus ow that 2 2 is i fact a quite sloppy boud, ad that the umber of parethesis-estigs is less tha 2 2 I fact, with this lie of argumet, you could (but eed ot i respose to this questio pare dow the rage to a cosiderably smaller set: istead of cosiderig all bit-strigs of legth 2, you could oly cosider those strigs with zeroes, oes, a zero at the begiig, ad a oe at the ed This set ca be see via selectio techiques to have size ( 2 2 1 2 (15 poits Let X {1, 2, 3,, 100}, ad let S be a subset of X (a (5 poits Demostrate that there is a set S with S 50 such that o elemet of S is a multiple of ay other elemet of S A simple example is {51, 52,, 100} Sice the ratio of every pair of elemets is less tha 1, o elemet is a positive multiple of ay other elemet (b (10 poits Prove that if S 51, the S must cotai two umbers such that oe of the umbers is a multiple of the other Let us defie a fuctio f mappig each iteger to its largest odd multiple (so, eg 84 would be mapped to 21 Note that it will always be the case that x is f(x Page 1 of 5 February 3, 2012

x a power of 2, sice if had ay odd factors larger tha 1, f(x would t be the f(x largest odd multiple of x Note that f maps itegers less tha or equal to 100 to odd itegers less tha or equal to 100, of which there are exactly 50 Thus sice S > 50, it is the case by the Pigeohole Priciple that f : S {1, 3, 5,, 99} is ot ijective, so there are two elemets x ad y of S with the same largest odd multiple r Sice both x ad y are powers of 2 times r, oe of x or y is a multiple of the other 3 (10 poits Let S be a uow set of 6 itegers Prove that it is possible, by addig ad subtractig a otrivial set of distict elemets of S, to get a multiple of 63 Let us classify subsets of S accordig to the value of the sum of their terms modulo 63, or alteratively, accordig to the remaider whe this sum is divided by 63 (recall that a b mod 63 whe a b is a multiple of 63 Sice S has 6 elemets, there are 64 distict subsets of S; sice there are 63 distict modular cogruece classes (or 63 possible remaiders from the divisio, two sets A ad B have sums that are equivalet modulo 63; thus, the differece of the sums of the terms of A ad the sums of the terms of B is a multiple of 63 Note that if A ad B overlap this arithmetic expressio may iclude the same umber twice, oce added ad oce subtracted; we may easily fix this expressio by simply removig both occurreces without affectig the sum Sice A ad B are distict, at least oe of them cotais a elemet ot appearig i the other, so the resultig arithmetic expressio is otrivial Basic Coutig Techiques 4 (10 poits Show by a casewise argumet that the umber of ways to put +2 ulabeled balls ito labeled boxes so that there is at least oe ball per box is + ( There are very few possible distributios, sice the umber of balls oly slightly exceeds the umber of boxes ad we are required to put at least oe ball i each box There are i fact oly two cases to be addressed: every box except for oe could cotai a sigle ball, while the remaiig box cotais three balls; or every box except for two could cotai a sigle ball, while the remaiig boxes each cotai two balls The first case compreheds differet possibilities, sice ay oe of the boxes could be selected as cotaiig three balls, while the secod case compreheds ( possibilities, sice we select two boxes to be otable i cotaiig two balls Thus, amog both cases, there are a total of + ( ways to distribute the balls 5 (5 poit bous Usig a awareess of which factors are couted by the factorcoutig techique see i class ad the text, determie a formula for the sum of the factors of p a q b, where p ad q are prime As see i class, a factor of p a q b is determied by its prime factorizatio p r q s, where r is a iteger betwee 0 ad a iclusive, ad s is a iteger betwee 0 ad b iclusive; thus we get (a + 1(b + 1 possible factors These factors are fairly easy to list our methodically: they are p 0 q 0, p 0 q 1,, p 0 q b, p 1 q 0, p 1 q 1,, p 1 q b, p 2 q 0, p 2 q 1,, p a q 0, p a q 1,, p a q b Page 2 of 5 February 3, 2012

Ad if we were to add them up, we ca group them as such ad factor out commo terms: (p 0 q 0 + p 0 q 1 + + p 0 q b + (p 1 q 0 + p 1 q 1 + + p 1 q b + + (p a q 0 + p a q 1 + + p a q b p 0 (q 0 + q 1 + + q b + p 1 (q 0 + q 1 + + q b + + p a (q 0 + q 1 + + q b (p 0 + p 1 + + p a (q 0 + q 1 + + q b ad this is a product of fiite geometric series, both of which have simple formulas, so the sum of all the factors of p a q b is pa+1 1 q b+1 1 p 1 q 1 This argumet is easily geeralized to show that if a umber has prime factorizatio p e 1 1 p e 2 2 p er r, the the sum of its factors is Biomials ad combiatorial proof (p e 1+1 1 1(p e 2+1 2 1 (p er+1 r 1 (p 1 1(p 2 1 (p r 1 6 (10 poits+5 bous Below are two combiatorial proofs (a (10 poits Usig combiatorial methods (ie showig both sides cout the same thig, prove that ( 2 1 We shall cosider two differet coutig methods for the followig structure: selectio of a sigle distiguished umber from {1,, } together with the selectio of ay subset of {1,, } ot cotaiig our distiguished umber Oe way we ca do this is to select our distiguished x i ay of differet ways, ad the select a subset S of {1,, } {x} i ay of 2 1 differet ways Thus, there are 2 1 ways to build this structure Coversely, we could build this structure by, for a size, cosiderig a subset A of {1,, } such that A, ad the selectig our distiguished x from A, ad pairig x with the subset S A {x} For each idividual, there are ( choices of A, ad the sice x is chose from A, there are choices of value for x Thus, for a specific value of, this procedure gives us ( ways to build this structure Sice ca tae o ay value from zero to, we add up all cases to get ( ways to build this structure Sice these two quatities are eumeratig the same set, it follows that ( 2 1 For your etertaimet although it s ot a aswer to the questio as ased here s a algebraic proof of the same result usig a bit of calculus ad the Page 3 of 5 February 3, 2012

biomial theorem: ( ( x 1 x1 ( d dx x x1 ( d ( x dx x1 ( x d dx x1 (1 + (1 + x 1 x1 2 1 (b (5 poit bous Geeralize your above result to argue that ( ( ( 2 l l l We shall cosider two differet coutig methods for the followig structure: selectio of a set S of l distiguished elemets of {1,, } together with the selectio of ay subset T of {1,, } disjoit from S Oe ( way we ca do this is to select our set S of l distiguished elemets i ay of l differet ways, ad the select the subset T of {1,, } S i ay of 2 l differet ways Thus, there are ( 2 l ways to build this structure Coversely, we could build this structure by, for a size, cosiderig a subset A of {1,, } such that A, ad the selectig S as a l-elemet subset of A, ad lettig T A S For each idividual, there are ( choices of A, ad the sice S is the result of choosig l elemets of A, from A, there are ( choices of subset S Thus, for a specific value of, this procedure gives us ( ( ways to build this structure Sice ca tae o ay value from zero to, we add up all cases to get ( ( ways to build this structure Sice these two quatities are eumeratig the same set, it follows that ( ( ( l 2 l A algebraic proof of this result is possible but quite ugly It is similar i spirit to the algebraic proof give for part (a but uses the fact that ( x l 1 d l x l! dx l 7 (5 poits Fid the umber of ways to wal from the lower left corer of the followig grid to the upper right corer with sequeces of up ad right moves: Page 4 of 5 February 3, 2012

This is a grid with a exclusio, so it is a matter of fidig the umber of gridwals from the lower left corer to the upper left which do ot visit the excluded poit That is, we wish to fid the umber of gridwals o the left grid below, ad subtract the illegal wals, which could be cosidered to be those o the right grid below: The umber of wals o the first grid is easily see to be ( 11 5, sice a wal o this grid is a sequece of 11 moves, exactly 5 of which are upwards ad 6 of which are rightwards A wal o the secod grid ca be costructed as a cocateatio of wals o two idividual grids: the lower left grid ca be traversed i ( 7 3 ways, ad the upper left is traversable i ay of ( ( 4 ways, so this grid has 7 4 3( possible traversals Sice our origial problem was aswerable by subtractig the umber of wals o the secod grid (all of which would have bee illegal o our origial grid from the umber of wals o the first grid, the aswer will be ( ( 11 5 7 4 3( 252 Ad NUH is the letter I use to spell Nutches Who live i small caves, ow as Nitches, for hutches These Nutches have troubles, the biggest of which is The fact there are may more Nutches tha Nitches Dr Seuss, O Beyod Zebra Page 5 of 5 February 3, 2012