DISCRETE MATHEMATICS HOMEWORK 3 SOLUTIONS

Similar documents
USA Mathematical Talent Search Round 1 Solutions Year 21 Academic Year

Problem Set 9. Figure 1: Diagram. This picture is a rough sketch of the 4 parabolas that give us the area that we need to find. The equations are:

Math 61CM - Solutions to homework 9

UNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3

(e) if x = y + z and a divides any two of the integers x, y, or z, then a divides the remaining integer

Physics 9 Fall 2011 Homework 2 - Solutions Friday September 2, 2011

Infinite Geometric Series

SOLUTIONS FOR ADMISSIONS TEST IN MATHEMATICS, COMPUTER SCIENCE AND JOINT SCHOOLS WEDNESDAY 5 NOVEMBER 2014

Riemann is the Mann! (But Lebesgue may besgue to differ.)

Summary: Method of Separation of Variables

20 MATHEMATICS POLYNOMIALS

Chapter 0. What is the Lebesgue integral about?

Advanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004

The Regulated and Riemann Integrals

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University

and that at t = 0 the object is at position 5. Find the position of the object at t = 2.

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007

Riemann Sums and Riemann Integrals

a a a a a a a a a a a a a a a a a a a a a a a a In this section, we introduce a general formula for computing determinants.

Riemann Sums and Riemann Integrals

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies

Math 1B, lecture 4: Error bounds for numerical methods

Solution to HW 4, Ma 1c Prac 2016

Things to Memorize: A Partial List. January 27, 2017

p-adic Egyptian Fractions

Name Solutions to Test 3 November 8, 2017

A-Level Mathematics Transition Task (compulsory for all maths students and all further maths student)

Notes on length and conformal metrics

Quadratic Forms. Quadratic Forms

Chapter 14. Matrix Representations of Linear Transformations

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

The area under the graph of f and above the x-axis between a and b is denoted by. f(x) dx. π O

Improper Integrals, and Differential Equations

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh

Harvard University Computer Science 121 Midterm October 23, 2012

Is there an easy way to find examples of such triples? Why yes! Just look at an ordinary multiplication table to find them!

Math Solutions to homework 1

4.4 Areas, Integrals and Antiderivatives

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite

8. Complex Numbers. We can combine the real numbers with this new imaginary number to form the complex numbers.

Exam 2, Mathematics 4701, Section ETY6 6:05 pm 7:40 pm, March 31, 2016, IH-1105 Instructor: Attila Máté 1

Physics 202H - Introductory Quantum Physics I Homework #08 - Solutions Fall 2004 Due 5:01 PM, Monday 2004/11/15

p(t) dt + i 1 re it ireit dt =

Recitation 3: More Applications of the Derivative

Lecture 3: Equivalence Relations

8 Laplace s Method and Local Limit Theorems

63. Representation of functions as power series Consider a power series. ( 1) n x 2n for all 1 < x < 1

Identify graphs of linear inequalities on a number line.

Theoretical foundations of Gaussian quadrature

Nondeterminism. Nondeterministic Finite Automata. Example: Moves on a Chessboard. Nondeterminism (2) Example: Chessboard (2) Formal NFA

ES.182A Topic 32 Notes Jeremy Orloff

Name Ima Sample ASU ID

CSCI FOUNDATIONS OF COMPUTER SCIENCE

REPRESENTATION THEORY OF PSL 2 (q)

1 Structural induction

Lecture 3 Gaussian Probability Distribution

Coalgebra, Lecture 15: Equations for Deterministic Automata

Bernoulli Numbers Jeff Morton

Math 426: Probability Final Exam Practice

Unit 1 Exponentials and Logarithms

State Minimization for DFAs

Lecture 13 - Linking E, ϕ, and ρ

Mathematics Extension 2

The First Fundamental Theorem of Calculus. If f(x) is continuous on [a, b] and F (x) is any antiderivative. f(x) dx = F (b) F (a).

1 Structural induction, finite automata, regular expressions

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

SUMMER KNOWHOW STUDY AND LEARNING CENTRE

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus

W. We shall do so one by one, starting with I 1, and we shall do it greedily, trying

Review of Riemann Integral

First Midterm Examination

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

We partition C into n small arcs by forming a partition of [a, b] by picking s i as follows: a = s 0 < s 1 < < s n = b.

MATH 185: COMPLEX ANALYSIS FALL 2009/10 PROBLEM SET 5 SOLUTIONS. cos t cos at dt + i

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

dx dt dy = G(t, x, y), dt where the functions are defined on I Ω, and are locally Lipschitz w.r.t. variable (x, y) Ω.

Vectors , (0,0). 5. A vector is commonly denoted by putting an arrow above its symbol, as in the picture above. Here are some 3-dimensional vectors:

1 Probability Density Functions

Math 1102: Calculus I (Math/Sci majors) MWF 3pm, Fulton Hall 230 Homework 2 solutions

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS.

along the vector 5 a) Find the plane s coordinate after 1 hour. b) Find the plane s coordinate after 2 hours. c) Find the plane s coordinate

38 Riemann sums and existence of the definite integral.

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1

MATH 101A: ALGEBRA I PART B: RINGS AND MODULES 35

Log1 Contest Round 3 Theta Individual. 4 points each 1 What is the sum of the first 5 Fibonacci numbers if the first two are 1, 1?

Chapter 5. Numerical Integration

Ph2b Quiz - 1. Instructions

Math 120 Answers for Homework 13

UniversitaireWiskundeCompetitie. Problem 2005/4-A We have k=1. Show that for every q Q satisfying 0 < q < 1, there exists a finite subset K N so that

Discrete Random Variables Class 4, Jeremy Orloff and Jonathan Bloom

USA Mathematical Talent Search Round 1 Solutions Year 25 Academic Year

7. Indefinite Integrals

approaches as n becomes larger and larger. Since e > 1, the graph of the natural exponential function is as below

MATH 573 FINAL EXAM. May 30, 2007

MATH 253 WORKSHEET 24 MORE INTEGRATION IN POLAR COORDINATES. r dr = = 4 = Here we used: (1) The half-angle formula cos 2 θ = 1 2

Math& 152 Section Integration by Parts

1.9 C 2 inner variations

Read section 3.3, 3.4 Announcements:

Classification of Spherical Quadrilaterals

Transcription:

DISCRETE MATHEMATICS 21228 HOMEWORK 3 SOLUTIONS JC Due in clss Wednesdy September 17. You my collborte but must write up your solutions by yourself. Lte homework will not be ccepted. Homework must either be typed or written legibly in blue or blck ink on lternte lines, illegible homework will be returned ungrded (so you cn rewrite it legibly. Plese write the nme of your recittion instructor nd the time nd plce of your recittion t the top of your homework. (1 Consider the experiment in which bised coin with probbility p of coming up heds is tossed N times. Write down formul for the expecttion vlue of the number of times the coin comes up heds. Prove tht this expecttion vlue is Np (why might we hve expected this nswer? As we sy in clss, the probbility of n outcome with heds is p (1 p N. There re ( N mny such outcomes, nd so esily the expecttion vlue of the number of heds is p (1 p N. =0 There re vrious tricks we might use to evlute this expecttion. Here is nice one. Let q = 1 p nd consider the expnsion of (x + q N by the Binomil theorem, tht is (x + q N = =0 x q N. Differentite both sides with respect to x nd get N(x + q N 1 = ( N =0 1 x 1 q N.

2 JC Multiply by x, set x = p, note tht p + q = 1 nd conclude Np = p q N =0 s required. We might hve expected this nswer becuse ech time we toss the coin there is probbility p tht it comes up heds, so tht ech of the N tosses mkes contribution p to the totl expecttion. Here is nother proof which mkes this ide precise. For ech let f be the function on the probbility spce of outcomes (strings of N mny H s nd T s which is 1 if toss yields hed nd 0 otherwise. Clerly if f is the function which gives the number of heds then f = f 1 +... f N, nd so by n esy clcultion E(f = E(f 1 +... E(f N. Now esily E(f is excty the probbility of the event coin comes up hed on toss, nd this probbility is p. So E(f = Np. I gve yet nother proof in clss, which involved using the identity = N! ( 1!(N! = N 1 to rerrnge the sum. (2 Consider the experiment in which the bised coin with probbility p of coming up heds is tossed repetedly until it comes up tils. Find formul for p n, the probbility tht the coin is tossed exctly n times. For given vlue of p, wht is the lest N such tht the probbility we toss the coin t most N times is t lest 0.99? To be tossed exctly n times, we must hve n 1 heds then til, so p n = p n 1 (1 p. The probbility tht we toss the coin t most N times is p 1 +... p N = (1 p(1 +... p N 1 = 1 p N. Alterntive rgument: we do not toss the coin t most N times if nd only if we come up heds on the first N tries, nd this hs probbility p N. Now 1 p N 0.99 if nd only if p N 0.01, so esily the lest N tht works is the lest integer such tht N ln(0.01/ ln(p. (3 Consider the 3D generlistion of the notion of pth: pth is sequence (x 0, y 0, z 0, (x 1, y 1, z 1,... (x n, y n, z n where t ech

DISCRETE MATHEMATICS 21228 HOMEWORK 3 SOLUTIONS 3 step one of the three coordintes increses by one while the other two remin constnt. If, b, c re nturl numbers show tht the number of pths from (0, 0, 0 to (, b, c is ( + b + c!!b!c! Clerly the set of pths cn be put in bijective correspondence with the set of strings of length +b+c from the lphbet {x, y, z} contining mny x s, b mny y s nd c mny z s. To count these strings, note tht if N = + b + c then there re ( ( N wys of plcing the x s nd then N b wys of plcing the y s, fter which the plcing of the z s is determined. This gives N!!(N! (N! b!(n b! = N!!b!c! possibilities. (4 If, b, c re nturl numbers with c > + b, find n expression for the number of pths from (0, 0, 0 to (, b, c such tht z > x + y for every point (x, y, z on the pth except for (0, 0, 0. (Geometricl picture: we re looking t pths which sty bove the plne z = x + y. (Sketchy, you should give bit more detil Given pth W from (0, 0, 0 to (, b, c such tht z > x + y t ll but the first point, we define pth W from (0, 0 to ( + b, c s follows: ech point (x i, y i, z i on W corresponds to point (x i + y i, z i on W. It is esy to see tht the pth W stys bove the digonl. The key question is now how mny vlues for W correspond to given vlue for W, tht is given pth from (0, 0 to ( + b, c which stys bove the digonl? Suppose W is the pth (s 0, z 0,... (s N, z N where N = + b + c. At one of the c steps where z i+1 = z i + 1 we must hve x i+1 = x i nd y i+1 = y i + 1, while t one of the + b steps where z i+1 = z i we must hve either x i+1 = x i + 1 or y i+1 = y i + 1. If we focus on the ltter clss of steps, we see tht we re trcing out pth from (0, 0 to (, b, nd tht in fct ny such pth corresponds to suitble W. So we get totl of c b c + + b ( ( + b + c + b c b.

4 JC (5 We re given n letters L 1,... L n nd n envelopes E 1,... E n. How mny wys re there of putting the letters in the envelopes so tht exctly one letter goes in ech envelope? How mny wys re there such tht for every i, letter L i does not go into envelope E i? There re n! wys of putting the letters in the envelopes. Let d n be the number of such wys in which every letter goes in the wrong envelope. Permuttions of set X which move every x X re clled derngements of X so we re counting the number of derngements of n n-element set. Solution one: let π be some derngement of {1,... n} nd suppose tht π(1 = i. If π(i = 1 then π gives derngement of {1,... n} \ {1, i}, nd there re d n 2 such derngements. We clim tht the set of derngements with π(1 = i nd π(i 1 is in bijection with the set of derngements of {2,... n}. Given derngement ρ of {2,... n} define ρ s follows: ρ (1 = i, ρ (ρ 1 (i = i, ρ (x = ρ(x for ll other x. We conclude tht d n = (n 1(d n 1 + d n 2 for ll n > 2. Clerly d 1 = 0 nd d 2 = 1, so this determines d n. Note : to get closed form expression rther thn recurrence we notice tht if e n = d n nd n 1 then from the recurrence e n = e n 1. Also e 2 = 1 so by n esy induction e n = ( 1 n. So we get d n = nd n 1 + ( 1 n, nd then esily d n = n! n!/2! + n!/3! +... n!/n!. Culturl remrk: it is musing to note tht d n /n! tends to 1/e for n lrge. Solution 2: use the inclusion exclusion formul s in the online notes. (6 (Chllenging Recll tht in clss we defined the n th Ctln number to be C n = 1 n + 1 ( 2n, n or equivlently the number of pths from (0, 0 to (n, n which do not go below the line y = x. ( Show tht C n is the number of sequences (1, 1,... n with i N nd i i nd 1 1... i. Argument one (sketch, you should give bit more detil: consider pth from (0, 0 to (n, n which does not go below the line y = x. This pth must contin n verticl segments, nd the x-coordinte of the n th segment is t most n 1 becuse we re stying bove the digonl. If

DISCRETE MATHEMATICS 21228 HOMEWORK 3 SOLUTIONS 5 we let i equl the x-coordinte for segment i plus 1 then we cn set up bijection between sequences nd pths, so the number of sequences equls the number of pths equls C n. (b Given 2n distinct points on the circumference of circle, C n is the number of wys of joining them in pirs by drwing n chords of the circle, no two of which intersect. Here is picture for the cse n = 2. Let D n be the number of wys of drwing the chords nd note D 0 = D 1 = 1. Lbel the points with lbels from 0 to 2n 1. It is cler tht 0 must be joined to point with n odd lbel 2i + 1, becuse there must be n even number of points on ech side s the chords re non-intersecting. It is lso cler tht there re D i wys of drwing the chords which connect the 2i points {1,... 2i} on one side of the chord joining 0 nd 2i + 1, nd D n i 1 wys of drwing the chords connecting the 2(n i 1 points {2i + 2, 2n 1} on the other side. So D n = i<n D i D n i 1, nd since this is the recurrence stisfied by the Ctln numbers we hve D n = C n.