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

Size: px
Start display at page:

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

Transcription

1 Coutig Methods CSE 191, Class Note 05: Coutig Methods Computer Sci & Eg Dept SUNY Buffalo c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 1 / 48 Need for Coutig The problem of coutig the umber of differet objects appears i may computer sciece applicatios. Some examples: All Java programs use idetifiers. Say, each idetifier is limited to 8 characters log, the first character must be a letter. How may possible idetifiers are there? I GPS map routig applicatio, we kow the startig locatio, the edig locatio, ad the itermediate locatios o the map, how may differet routes are there? (The routig program must select the best route from these routes. I Facebook applicatio, we are give three users A, B, C. We kow the set of the frieds of A, B, C. How do we cout the umber of users who are the fried of at least oe of A, B, C? We will discuss some commoly used coutig methods. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 2 / 48

2 Product Rule Product Rule Suppose that a procedure ca be broke ito a sequece of two tasks. If there are 1 ways to do the first task ad 2 ways to do the secod task, the there are 1 2 ways to do the procedure. Example 1: The chairs i a auditorium are labeled by upper case Eglish letters followed by a iteger betwee 0 ad 99. What s the largest umbers of chairs that ca be labeled this way? Solutio: There are 26 ways to pick letters. There are 100 ways to pick itegers. So, by Product Rule, there are = 2600 ways to label chairs. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 4 / 48 Product Rule The Product Rule ca be easily geeralized from 2 tasks to k tasks for ay iteger k. Example 2: How may differet bit strigs of legth 8 are there? Solutio: 2 8 = 256. Example 3: Suppose that Java program idetifiers cosist of oly upper ad lower cases Eglish letters ad digits. The first character must be a upper case letter. The last character must be a digit. (They are ot real requiremets, just a example. Cout the umber of possible idetifiers of legth exactly 6. Solutio: There are 26 choices for the 1st character. There are =62 choices for each of the 2d - 5th character. There are 10 choices for the last character. So the aswer is c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 5 / 48

3 Product Rule Notatio: A deotes the umber of elemets i the set A. Product Rule: A 1 A 2... A m = A 1 A 2... A m. Example 4: Show that the umber of differet subsets of a fiite set S is 2 S. Let S = {s 1, s 2,... s } be a fiite set cotaiig S = elemets. To describe a subset A S, we eed to make the followig choices: whether to iclude s 1 or ot; (2 choices; whether to iclude s 2 or ot; (2 choices;... whether to iclude s or ot; (2 choices; The differet choices i each step ( steps i total will result i differet subsets. So the umber of differet subsets of S is 2 = 2 S. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 6 / 48 Sum Rule Sum Rule Let A 1, A 2,..., A m be differet sets such that A i A j = for all i j. The: A 1 A 2... A m = A 1 + A A m Example 5: I a high school, 32 studets take Frech class, 45 studets take Spaish. Assumig o studet take both Frech ad Spaish, how may studets take either Frech or Spaish? Solutio: Simple eough: 32+45= 77. It is simple because we assumed A i A j =. What if we drop this assumptio? c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 8 / 48

4 Iclusio-Exclusio Priciple Iclusio-Exclusio Priciple (with two sets Let A 1, A 2 be two sets. The: A 1 A 2 = A 1 + A 2 A 1 A 2 Example 5a: I a high school; 32 studets take Frech class, 45 studets take Spaish. 15 studet take both Frech ad Spaish. How may studets take either Frech or Spaish? Solutio: = 62. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 9 / 48 Iclusio-Exclusio Priciple Example 7: Determie the umber of 8-bits biary strigs such that: Either the first bit is 1; Or the last two bits are 00. Let A be the set of 8-bits biary strigs whose first bit is 1. Let B be the set of 8-bits biary strigs whose last two bits are 00. We wat to determie A B. A = 2 7 (because the first bit is fixed. B = 2 6 (because the last two bits are fixed. A B = 2 5 (because the first ad the last two bits are fixed. So A B = = 160. This priciple ca be geeralized to more tha two sets. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 10 / 48

5 Iclusio-Exclusio Priciple Iclusio-Exclusio Priciple (with three sets Let A 1, A 2, A 3 be three sets. The: A 1 A 2 A 3 = A 1 + A 2 + A 3 ( A 1 A 2 + A 1 A 3 + A 2 A 3 + A 1 A 2 A 3 Example 6: I a high school, 32 studets take Frech class, 45 studets take Spaish, 20 take Germa. 15 studets take both Frech ad Spaish; 12 studets take both Germa ad Spaish; 10 studets take both Frech ad Germa; 6 studets take all three foreig laguages. How may studets take at least oe foreig laguage? Solutio: ( = 66. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 11 / 48 Iclusio-Exclusio Priciple Iclusio-Exclusio Priciple (geeral case: Let A 1, A 2,... A m be m sets. The: A 1... A m = A 1 + A A m (sum of A i A j for all possible i j +(sum of A i A j A k for all possible i j k (sum of A i A j A k A l for all possible i j k l... +( 1 m 1 A 1 A 2... A m Exercise: Write the geeral formula for the case m = 4. Note: For m > 4, this formula is too complicated to be useful. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 12 / 48

6 Permutatios Defiitio A permutatio of a set of distict objects is a ordered arragemet of these objects. A ordered arragemet of r elemets of a set is called a r-permutatio. The umber of r-permutatios of a set with elemets is deoted by P(, r. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 14 / 48 Permutatios Example 1: I how may ways ca we select 3 studets from a group of 5 studets to stad i lie for a picture? Solutio: We ca select ay of the 5 studets for the first positio. After the first positio is selected, we ca choose ay of the 4 remaiig studets for the 2d positio. After the 1st ad the 2d positios are selected, we ca choose ay of the 3 remaiig studets for the 3rd positio. So, the aswer is: = 60. I this example, we are coutig the umber of distict 3-permutatios i a set of 5 elemets. What we have show is: P(5, 3 = = 60 c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 15 / 48

7 Permutatios Defiitio: The factorial of is deoted by! ad defied by:! = ( 1 ( Note: For coveiece, we defie: 0!=1. Theorem 1: P(, r = ( 1 ( r + 1 = }{{} r terms P(, = ( =!! ( r! c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 16 / 48 Permutatios Example 2: How may ways are there to select a first-prize wier; a secod-prize wier; ad a third-prize wier from 100 differet people? Solutio: P(100, 3 = = Example 3: A salesma must visit eight differet cities. He must begi his trip from a specific city (his home, but he ca visit other seve cities i ay order, the he must retur to his home city. How may possible orders ca he use? Solutio: 7! = c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 17 / 48

8 Permutatios Example 3: How may permutatios of the letters i {A, B, C, D, E, F, G} cotai the strig ABC. Solutio: There are 7 letters. Is 7! the solutio? No. Sice the strig ABC must appear as a block, it is like a sigle symbol. So we are really askig the umber of permutatios from 5 symbols. So the solutio is 5! = 120. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 18 / 48 Combiatios Defiitio A r-combiatio of elemets of a set is a uordered selectio of r elemets from the set. So a r-combiatio is simply a subset with r elemets. The umber ( of r-combiatios of a set with elemets is deoted by C(, r or. r Example 1: How may differet ways to select a committee of three members from 10 studets? Solutio: Each committee is just a subset of three elemets. So the aswer is simply C(10, 3. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 20 / 48

9 Combiatios Theorem 2: For ay o-egative iteger ad r such that 0 r : C(, r =! r!( r! = ( 1 ( r + 1 r (r Proof: Cosider ay r-combiatio, which is just a r elemet set A. There are r! differet orderigs of the elemets i A. Each of which is a r-permutatio of the set. Thus: Sice P(, r =! ( r!, we have: C(, r = P(, r r! = P(, r = C(, r r!! r!( r! = r terms {}}{ ( 1 ( r + 1 r! c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 21 / 48 Combiatios Example 1: How may differet ways to select a committee of three members from 10 studets? Solutio: C(10, 3 = = 120. Example 2: (a How may poker hads of 5 cards ca be selected from a stadard 52 cards? (b How may hads of 47 cards ca be selected from a stadard 52 cards? Solutio: (a C(52, 5 = = 2, 598, 960. (b C(52, 47 = Is there a better way? c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 22 / 48

10 Combiatios Corollary Proof: Both of them equal to! r!( r!. C(, r = C(, r c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 23 / 48 Combiatios Example 3: I CSE departmet, there are 8 full professors, 7 associate professors, ad 11 assistat professors. We wat to form a committee to evaluate BS degree program. The committee must cosist of 4 full professors, 3 associate professors ad 3 assistat professors. How may differet ways to select the committee? The umber of ways to select full professors: C(8, 4 The umber of ways to select associate professors: C(7, 3 The umber of ways to select assistat professors: C(11, 3 By product rule, the solutio is: C(8, 4 C(7, 3 C(11, 3 = 8! 4!4! 7! 3!4! 11! 3!8! = c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 24 / 48

11 Biomial Coefficiets ad Idetities ( r is also called a biomial coefficiet. Why? Example: ( 0 (x + y 0 = 1 = 0 ( ( 1 1 (x + y 1 = x + y = x + y 0 1 ( ( ( (x + y 2 = x 2 + 2xy + y 2 = x xy + y ( ( ( ( (x + y 3 = x 3 + 3x 2 y + 3xy 2 + y 3 = x x 1 2 y + xy y ( (x + y is called a biomial. is a coefficiet i the expasio of the r biomial. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 26 / 48 Biomial Coefficiets ad Idetities The Biomial Theorem: Let x ad y be variables ad be a o-egative iteger. The: (x + y = ( j=0 x j j y j = ( ( ( ( ( x 0 + x 1 1 y + x 2 2 y xy y Proof: The geeral terms i the product are of the forms x j y j for 0 j. We eed to cout the umber of the terms of the form x j y j. To get such a term, we must pick j x s (so that the remaiig j terms i the product are y s. ( ( So the umber of the terms x j y j is, which is also. j j c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 27 / 48

12 Biomial Idetities Corollary 1: j=0 ( j = 2. Proof: Let x = 1 ad y = 1 i the Biomial Theorem, we have: 2 = (1 + 1 = ( j j=0 1 j 1 j = ( j j=0 Corollary 2: j=0 ( 1j ( j = 0. Proof: Let x = 1 ad y = 1 i the Biomial Theorem, we have: 0 = (1 1 = j=0 ( j 1 j ( 1 j = ( ( 1 j j j=0 c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 28 / 48 Pascal Idetity Pascal Idetity: Let ad k be positive itegers ad k. The ( ( ( + 1 = + k k 1 k ( + 1 Proof: Recall that is the # of k-elemet subsets of a set S with k + 1 elemets. Fix a elemet a S. These k-elemet subsets ca be divided ito two groups: 1. The subsets that cotai ( a. So we are choosig other k 1 elemets from S {a}. So there are such subsets. k 1 2. The subsets that do ot cotai ( a. So we are choosig other k elemets from S {a}. So there are such subsets. k So the sum of the two groups equals to LHS. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 29 / 48

13 Pascal Triagle Pascal s Triagle ( 0 0 ( 1 0 ( 1 1 ( 2 0 ( 2 1 ( 2 2 ( 3 0 ( 3 1 ( 3 2 ( 3 3 ( 4 0 ( 4 1 ( 4 2 ( 4 3 ( 4 4 It s values: Note: The left- ad the right-most umbers are always 1. Ay other umber is the sum of the two umbers o its shoulder. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 30 / 48 Pigeohole Priciple The idea of Pigeohole Priciple is very simple. But whe used properly, we ca get very iterestig results. Pigeohole Priciple (Versio 1: If you put pigeos ito m pigeoholes with > m, the at least oe pigeohole cotais at least two pigeos. Pigeohole Priciple (Versio 1, equivalet statemet: If k is a positive iteger ad k + 1 or more objects are put ito k boxes, the at least oe box cotais two or more objects. Proof: This statemet is so obvious that really eeds o formal proof. But for completeess, here is a proof by cotrapositio. Suppose that oe of k boxes cotais more tha oe object. The the total umber of objects i all boxes is at most k. This is a cotradictio, because there are k + 1 objects. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 32 / 48

14 Pigeohole Priciple Pigeohole Priciple (Versio 2: If you put N pigeos ito k pigeoholes, the at least oe pigeohole cotais at least N/k pigeos. x deotes the smallest iteger that is x. For example: 0.6 = 1; 3 = 3; = 5. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 33 / 48 Pigeohole Priciple examples Example 1: At lease two people i NYC have the same umber of hairs. Example 2: At lease 16 people i NYC have the same umber of hairs. There are 8 millio people i NYC. It is kow that the maximum umber of hairs a perso ca have is 500,000. Each perso is a pigeo. The ith pigeohole holds the people with i hairs. So there are 500,001 pigeoholes. So at least oe pigeohole cotais at least / = = 16 people. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 34 / 48

15 Pigeohole Priciple examples Example 3: At ay momet, at least 1574 ATT cell phoes are coected to a ATT cell phoe tower i US. There are 40,032 ATT towers, ad 63,000,000 ATT cell phoes (the umbers are ot curret, just example So at least /40032 = 1574 cell phoes are coected to a tower. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 35 / 48 Pigeohole Priciple examples Example 4: How may cards must be selected from a stadard deck of 52 cards to esure that at least three cards of the same suit are chose? Example 5: How may cards must be selected from a stadard deck of 52 cards to esure that at least three hearts are selected? Example 6: If we pick 5 umbers from the itegers 1,2,..., 8, the two of them must add up to 9. We will discuss these examples i class. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 36 / 48

16 More difficult examples Example: At least two people i this room have the same umber of frieds i this room. (Of course we must assume there are at least two people i this room. Proof: Let k be the umber of people who has at least oe fried i this room. Case 1 k = 0: The all people have 0 frieds. Case 2 k > 0: Amog these k people: the umbers of frieds they ca have are 1, 2,..., (k 1. These choices are k 1 pigeoholes. But there are k people, each is a pigeo. So at least oe pigeohole cotais at least two pigeos. I other words, at least two people have the same umber of frieds. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 37 / 48 More difficult examples Example: Durig a moth of 30 days, a baseball team plays at least oe game per day. They played exactly 45 games durig these 30 days. Show that there must be a period of cosecutive days durig which the team must play exactly 14 games. A equivalet descriptio: We have arbitrary 30 itegers a 1,..., a 30. Each iteger a i (1 i 30 satisfies 1 a i. The sum of the 30 itegers is 45. Show that there is always a cotiuous sectio of itegers that add up to exactly 14. We will discuss this problem i class. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 38 / 48

17 More difficult examples Theorem: Approximate irratioal umber by ratioal umbers with small errors: For ay real umber a, there exist ifiitely may ratioal umbers p/q (p ad q are itegers such that a p/q < 1 q 2. What we are tryig to do? Computer ca oly store fiite precisio umbers. Whe we store π = , we are sayig: π 31416/10000 with error at most 1/ I geeral, we wat to approximate a irratioal umber a by a ratioal umber p/q with error as small as possible. If we isist o that the deomiator q must be a power of 10, we ca oly guaratee the error 1 q. This theorem shows that if we allow arbitrary iteger q as the deomiator, we ca double the accuracy: error < 1 q 2. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 39 / 48 More difficult examples Example: π 3/1 = 3 22/7 = /71 = /106 = Proof: For ay umber x, let {x} deote the fractioal part of x, (i.e. the part after the decimal poit. Example: {0.34} = {100.28} = {π} = [c, d deotes the iterval of real umbers x such that c x < d c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 40 / 48

18 More difficult examples Let a be the real umber we try to approximate by ratioal umbers. Cosider ay positive iteger Q. Cosider the fractioal parts of the umbers: {0}, {a 1}, {a 2},... {a Q} (these are Q + 1 pigeos. Cosider the Q itervals: [0, 1 Q, [ 1 Q, 2 Q 1 Q,..., [ Q, 1. (These are the Q pigeoholes. By pigeohole priciple, at least oe pigeohole cotais at least two pigeos. I other words, there are q 1 ad q 2 (0 q 1, q 2 Q such that {a q 1 } ad {a q 2 } are i the same iterval. The {a q 1 } {a q 2 } < 1 Q. Suppose: a q 1 = x 1.{a q 1 } ad a q 2 = x 2.{a q 2 }. (Here x 1 is the iteger part of a q 1 ad x 2 is the iteger part of a q 2. Let q = q 1 q 2 ad p = x 1 x 2. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 41 / 48 More difficult examples q a p = (q 1 q 2 a (x 1 x 2 = q 1 a q 2 a (x 1 x 2 = x 1.{q 1 a} x 2.{q 2 a} (x 1 x 2 = (x 1 x 2 + {q 1 a} {q 2 a} (x 1 x 2 = {q 1 a} {q 2 a} < 1 Q This implies: a p/q < 1 Q q 1 q 2 This completes the proof. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 42 / 48

19 More difficult examples Example: Let a = π ad Q = 8. 0 π = 0. 1 π = π = π = π = π = π = π = π = Note that {1 π} = ad {8 π} = are i the same iterval [1/8, 2/8. So we pick q 1 = 8, q 2 = 1. The p = 25 3 = 22 ad q = 8 1 = 7. We have π 22/7. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 43 / 48 Proofs based o parity argumet. Defiitio The parity of a iteger specifies whether it is eve or odd. Example: the parity of 8 ad 0 are eve. the parity of 1 ad 7 are odd. The parity of itegers is a simple cocept. But based o parity, sometimes we ca prove iterestig or eve surprisig results. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 45 / 48

20 Proofs based o parity argumet. Example: We are give a 8 8 checkerboard (each square is paited white ad black alterately. If we remove the top-left ad the bottom-right white squares, ca we cover the remaiig 62 squares by usig 1 2 domioes? No. Because: Each domio covers 1 white ad 1 black square. So the portio of the checkerboard covered by domioes must have the same umber of white ad black squares. If we remove two white squares, there are 32 black ad 30 white squares left. So it is impossible to cover them all. Example: If we remove the top-left ad the bottom-left squares, ca we cover the remaiig 62 squares by usig 1 2 domioes? c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 46 / 48 Proofs based o parity argumet. A umber game: Ask a fried do the followig: (He does these steps while you are NOT watchig. Pick ay odd iteger. Write the umbers 1, 2, 3,..., 2 o a piece of paper. Pick ay two umbers i ad j o the paper. Erase i ad j. Write i j o the paper. Repeat these steps, util oly oe umber remais. At this poit, you will guess the parity of the remaiig umber. Hit: You always say odd. Why you are always right? Try to make this game more iterestig. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 47 / 48

21 Proofs based o parity argumet. Fact: The umber of people (i this room who has a odd umber of frieds (i this room must be eve. We will proof this fact by usig parity argumets. Fact: Amog ay 6 people, there must be: Either three mutual frieds. Or three mutual stragers. Try to prove this fact. (Not by parity argumet. c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 48 / 48

Section 5.1 The Basics of Counting

Section 5.1 The Basics of Counting 1 Sectio 5.1 The Basics of Coutig Combiatorics, the study of arragemets of objects, is a importat part of discrete mathematics. I this chapter, we will lear basic techiques of coutig which has a lot of

More information

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

Counting Methods. CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo Counting Methods CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo c Xin He (University at Buffalo) CSE 191 Discrete Structures 1 / 48 Need for Counting The problem of counting

More information

3.1 Counting Principles

3.1 Counting Principles 3.1 Coutig Priciples Goal: Cout the umber of objects i a set. Notatio: Whe S is a set, S deotes the umber of objects i the set. This is also called S s cardiality. Additio Priciple: Whe you wat to cout

More information

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

Lecture Overview. 2 Permutations and Combinations. n(n 1) (n (k 1)) = n(n 1) (n k + 1) = COMPSCI 230: Discrete Mathematics for Computer Sciece April 8, 2019 Lecturer: Debmalya Paigrahi Lecture 22 Scribe: Kevi Su 1 Overview I this lecture, we begi studyig the fudametals of coutig discrete objects.

More information

Intermediate Math Circles November 4, 2009 Counting II

Intermediate Math Circles November 4, 2009 Counting II Uiversity of Waterloo Faculty of Mathematics Cetre for Educatio i Mathematics ad Computig Itermediate Math Circles November 4, 009 Coutig II Last time, after lookig at the product rule ad sum rule, we

More information

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

Permutations & Combinations. Dr Patrick Chan. Multiplication / Addition Principle Inclusion-Exclusion Principle Permutation / Combination Discrete Mathematic Chapter 3: C outig 3. The Basics of Coutig 3.3 Permutatios & Combiatios 3.5 Geeralized Permutatios & Combiatios 3.6 Geeratig Permutatios & Combiatios Dr Patrick Cha School of Computer

More information

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

(ii) Two-permutations of {a, b, c}. Answer. (B) P (3, 3) = 3! (C) 3! = 6, and there are 6 items in (A). ... Answer. SOLUTIONS Homewor 5 Due /6/19 Exercise. (a Cosider the set {a, b, c}. For each of the followig, (A list the objects described, (B give a formula that tells you how may you should have listed, ad (C verify

More information

Permutations, Combinations, and the Binomial Theorem

Permutations, Combinations, and the Binomial Theorem Permutatios, ombiatios, ad the Biomial Theorem Sectio Permutatios outig methods are used to determie the umber of members of a specific set as well as outcomes of a evet. There are may differet ways to

More information

Lecture 10: Mathematical Preliminaries

Lecture 10: Mathematical Preliminaries Lecture : Mathematical Prelimiaries Obective: Reviewig mathematical cocepts ad tools that are frequetly used i the aalysis of algorithms. Lecture # Slide # I this

More information

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

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 Homewor 3 Chapter 5 pp53: 3 40 45 Chapter 6 p85: 4 6 4 30 Use combiatorial reasoig to prove the idetity 3 3 Proof Let S be a set of elemets ad let a b c be distict elemets of S The umber of -subsets of

More information

Math 155 (Lecture 3)

Math 155 (Lecture 3) Math 55 (Lecture 3) September 8, I this lecture, we ll cosider the aswer to oe of the most basic coutig problems i combiatorics Questio How may ways are there to choose a -elemet subset of the set {,,,

More information

Chapter 1 : Combinatorial Analysis

Chapter 1 : Combinatorial Analysis STAT/MATH 394 A - PROBABILITY I UW Autum Quarter 205 Néhémy Lim Chapter : Combiatorial Aalysis A major brach of combiatorial aalysis called eumerative combiatorics cosists of studyig methods for coutig

More information

Injections, Surjections, and the Pigeonhole Principle

Injections, Surjections, and the Pigeonhole Principle 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

More information

Foundations of Computer Science Lecture 13 Counting

Foundations of Computer Science Lecture 13 Counting Foudatios of Computer Sciece Lecture 3 Coutig Coutig Sequeces Build-Up Coutig Coutig Oe Set by Coutig Aother: Bijectio Permutatios ad Combiatios Last Time Be careful of what you read i the media: sex i

More information

(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

(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 337 Sequeces Dr. Neal, WKU Let X be a metric space with distace fuctio d. We shall defie the geeral cocept of sequece ad limit i a metric space, the apply the results i particular to some special

More information

Math 475, Problem Set #12: Answers

Math 475, Problem Set #12: Answers Math 475, Problem Set #12: Aswers A. Chapter 8, problem 12, parts (b) ad (d). (b) S # (, 2) = 2 2, sice, from amog the 2 ways of puttig elemets ito 2 distiguishable boxes, exactly 2 of them result i oe

More information

What is Probability?

What is Probability? Quatificatio of ucertaity. What is Probability? Mathematical model for thigs that occur radomly. Radom ot haphazard, do t kow what will happe o ay oe experimet, but has a log ru order. The cocept of probability

More information

CIS Spring 2018 (instructor Val Tannen)

CIS Spring 2018 (instructor Val Tannen) CIS 160 - Sprig 2018 (istructor Val Tae) Lecture 5 Thursday, Jauary 25 COUNTING We cotiue studyig how to use combiatios ad what are their properties. Example 5.1 How may 8-letter strigs ca be costructed

More information

Math 2112 Solutions Assignment 5

Math 2112 Solutions Assignment 5 Math 2112 Solutios Assigmet 5 5.1.1 Idicate which of the followig relatioships are true ad which are false: a. Z Q b. R Q c. Q Z d. Z Z Z e. Q R Q f. Q Z Q g. Z R Z h. Z Q Z a. True. Every positive iteger

More information

Topic 5: Basics of Probability

Topic 5: Basics of Probability Topic 5: Jue 1, 2011 1 Itroductio Mathematical structures lie Euclidea geometry or algebraic fields are defied by a set of axioms. Mathematical reality is the developed through the itroductio of cocepts

More information

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs CSE 1400 Applied Discrete Mathematics Number Theory ad Proofs Departmet of Computer Scieces College of Egieerig Florida Tech Sprig 01 Problems for Number Theory Backgroud Number theory is the brach of

More information

Combinatorially Thinking

Combinatorially Thinking Combiatorially Thiig SIMUW 2008: July 4 25 Jeifer J Qui jjqui@uwashigtoedu Philosophy We wat to costruct our mathematical uderstadig To this ed, our goal is to situate our problems i cocrete coutig cotexts

More information

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

In number theory we will generally be working with integers, though occasionally fractions and irrationals will come into play. Number Theory Math 5840 otes. Sectio 1: Axioms. I umber theory we will geerally be workig with itegers, though occasioally fractios ad irratioals will come ito play. Notatio: Z deotes the set of all itegers

More information

Bertrand s Postulate

Bertrand s Postulate Bertrad s Postulate Lola Thompso Ross Program July 3, 2009 Lola Thompso (Ross Program Bertrad s Postulate July 3, 2009 1 / 33 Bertrad s Postulate I ve said it oce ad I ll say it agai: There s always a

More information

Math 220A Fall 2007 Homework #2. Will Garner A

Math 220A Fall 2007 Homework #2. Will Garner A Math 0A Fall 007 Homewor # Will Garer Pg 3 #: Show that {cis : a o-egative iteger} is dese i T = {z œ : z = }. For which values of q is {cis(q): a o-egative iteger} dese i T? To show that {cis : a o-egative

More information

Seunghee Ye Ma 8: Week 5 Oct 28

Seunghee Ye Ma 8: Week 5 Oct 28 Week 5 Summary I Sectio, we go over the Mea Value Theorem ad its applicatios. I Sectio 2, we will recap what we have covered so far this term. Topics Page Mea Value Theorem. Applicatios of the Mea Value

More information

ARRANGEMENTS IN A CIRCLE

ARRANGEMENTS IN A CIRCLE ARRANGEMENTS IN A CIRCLE Whe objects are arraged i a circle, the total umber of arragemets is reduced. The arragemet of (say) four people i a lie is easy ad o problem (if they liste of course!!). With

More information

Chapter 6. Advanced Counting Techniques

Chapter 6. Advanced Counting Techniques Chapter 6 Advaced Coutig Techiques 6.: Recurrece Relatios Defiitio: A recurrece relatio for the sequece {a } is a equatio expressig a i terms of oe or more of the previous terms of the sequece: a,a2,a3,,a

More information

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

2.1. The Algebraic and Order Properties of R Definition. A binary operation on a set F is a function B : F F! F. CHAPTER 2 The Real Numbers 2.. The Algebraic ad Order Properties of R Defiitio. A biary operatio o a set F is a fuctio B : F F! F. For the biary operatios of + ad, we replace B(a, b) by a + b ad a b, respectively.

More information

Infinite Sequences and Series

Infinite Sequences and Series Chapter 6 Ifiite Sequeces ad Series 6.1 Ifiite Sequeces 6.1.1 Elemetary Cocepts Simply speakig, a sequece is a ordered list of umbers writte: {a 1, a 2, a 3,...a, a +1,...} where the elemets a i represet

More information

Math F215: Induction April 7, 2013

Math F215: Induction April 7, 2013 Math F25: Iductio April 7, 203 Iductio is used to prove that a collectio of statemets P(k) depedig o k N are all true. A statemet is simply a mathematical phrase that must be either true or false. Here

More information

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

Putnam Training Exercise Counting, Probability, Pigeonhole Principle (Answers) Putam Traiig Exercise Coutig, Probability, Pigeohole Pricile (Aswers) November 24th, 2015 1. Fid the umber of iteger o-egative solutios to the followig Diohatie equatio: x 1 + x 2 + x 3 + x 4 + x 5 = 17.

More information

Basic Counting. Periklis A. Papakonstantinou. York University

Basic Counting. Periklis A. Papakonstantinou. York University Basic Coutig Periklis A. Papakostatiou York Uiversity We survey elemetary coutig priciples ad related combiatorial argumets. This documet serves oly as a remider ad by o ways does it go i depth or is it

More information

Summer High School 2009 Aaron Bertram

Summer High School 2009 Aaron Bertram Summer High School 009 Aaro Bertram 3 Iductio ad Related Stuff Let s thik for a bit about the followig two familiar equatios: Triagle Number Equatio Square Number Equatio: + + 3 + + = ( + + 3 + 5 + + (

More information

MATH 324 Summer 2006 Elementary Number Theory Solutions to Assignment 2 Due: Thursday July 27, 2006

MATH 324 Summer 2006 Elementary Number Theory Solutions to Assignment 2 Due: Thursday July 27, 2006 MATH 34 Summer 006 Elemetary Number Theory Solutios to Assigmet Due: Thursday July 7, 006 Departmet of Mathematical ad Statistical Scieces Uiversity of Alberta Questio [p 74 #6] Show that o iteger of the

More information

A Combinatorial Proof of a Theorem of Katsuura

A Combinatorial Proof of a Theorem of Katsuura Mathematical Assoc. of America College Mathematics Joural 45:1 Jue 2, 2014 2:34 p.m. TSWLatexiaTemp 000017.tex A Combiatorial Proof of a Theorem of Katsuura Bria K. Miceli Bria Miceli (bmiceli@triity.edu)

More information

The Random Walk For Dummies

The Random Walk For Dummies The Radom Walk For Dummies Richard A Mote Abstract We look at the priciples goverig the oe-dimesioal discrete radom walk First we review five basic cocepts of probability theory The we cosider the Beroulli

More information

} is said to be a Cauchy sequence provided the following condition is true.

} is said to be a Cauchy sequence provided the following condition is true. Math 4200, Fial Exam Review I. Itroductio to Proofs 1. Prove the Pythagorea theorem. 2. Show that 43 is a irratioal umber. II. Itroductio to Logic 1. Costruct a truth table for the statemet ( p ad ~ r

More information

MAT1026 Calculus II Basic Convergence Tests for Series

MAT1026 Calculus II Basic Convergence Tests for Series MAT026 Calculus II Basic Covergece Tests for Series Egi MERMUT 202.03.08 Dokuz Eylül Uiversity Faculty of Sciece Departmet of Mathematics İzmir/TURKEY Cotets Mootoe Covergece Theorem 2 2 Series of Real

More information

( ) GENERATING FUNCTIONS

( ) GENERATING FUNCTIONS GENERATING FUNCTIONS Solve a ifiite umber of related problems i oe swoop. *Code the problems, maipulate the code, the decode the aswer! Really a algebraic cocept but ca be eteded to aalytic basis for iterestig

More information

As stated by Laplace, Probability is common sense reduced to calculation.

As stated by Laplace, Probability is common sense reduced to calculation. Note: Hadouts DO NOT replace the book. I most cases, they oly provide a guidelie o topics ad a ituitive feel. The math details will be covered i class, so it is importat to atted class ad also you MUST

More information

P1 Chapter 8 :: Binomial Expansion

P1 Chapter 8 :: Binomial Expansion P Chapter 8 :: Biomial Expasio jfrost@tiffi.kigsto.sch.uk www.drfrostmaths.com @DrFrostMaths Last modified: 6 th August 7 Use of DrFrostMaths for practice Register for free at: www.drfrostmaths.com/homework

More information

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

Randomized Algorithms I, Spring 2018, Department of Computer Science, University of Helsinki Homework 1: Solutions (Discussed January 25, 2018) Radomized Algorithms I, Sprig 08, Departmet of Computer Sciece, Uiversity of Helsiki Homework : Solutios Discussed Jauary 5, 08). Exercise.: Cosider the followig balls-ad-bi game. We start with oe black

More information

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

UNIVERSITY OF NORTHERN COLORADO MATHEMATICS CONTEST. First Round For all Colorado Students Grades 7-12 November 3, 2007 UNIVERSITY OF NORTHERN COLORADO MATHEMATICS CONTEST First Roud For all Colorado Studets Grades 7- November, 7 The positive itegers are,,, 4, 5, 6, 7, 8, 9,,,,. The Pythagorea Theorem says that a + b =

More information

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

It is always the case that unions, intersections, complements, and set differences are preserved by the inverse image of a function. MATH 532 Measurable Fuctios Dr. Neal, WKU Throughout, let ( X, F, µ) be a measure space ad let (!, F, P ) deote the special case of a probability space. We shall ow begi to study real-valued fuctios defied

More information

page Suppose that S 0, 1 1, 2.

page Suppose that S 0, 1 1, 2. page 10 1. Suppose that S 0, 1 1,. a. What is the set of iterior poits of S? The set of iterior poits of S is 0, 1 1,. b. Give that U is the set of iterior poits of S, evaluate U. 0, 1 1, 0, 1 1, S. The

More information

COMP 2804 Solutions Assignment 1

COMP 2804 Solutions Assignment 1 COMP 2804 Solutios Assiget 1 Questio 1: O the first page of your assiget, write your ae ad studet uber Solutio: Nae: Jaes Bod Studet uber: 007 Questio 2: I Tic-Tac-Toe, we are give a 3 3 grid, cosistig

More information

PUTNAM TRAINING PROBABILITY

PUTNAM TRAINING PROBABILITY PUTNAM TRAINING PROBABILITY (Last udated: December, 207) Remark. This is a list of exercises o robability. Miguel A. Lerma Exercises. Prove that the umber of subsets of {, 2,..., } with odd cardiality

More information

Essential Question How can you recognize an arithmetic sequence from its graph?

Essential Question How can you recognize an arithmetic sequence from its graph? . Aalyzig Arithmetic Sequeces ad Series COMMON CORE Learig Stadards HSF-IF.A.3 HSF-BF.A. HSF-LE.A. Essetial Questio How ca you recogize a arithmetic sequece from its graph? I a arithmetic sequece, the

More information

Math 299 Supplement: Real Analysis Nov 2013

Math 299 Supplement: Real Analysis Nov 2013 Math 299 Supplemet: Real Aalysis Nov 203 Algebra Axioms. I Real Aalysis, we work withi the axiomatic system of real umbers: the set R alog with the additio ad multiplicatio operatios +,, ad the iequality

More information

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

Let us consider the following problem to warm up towards a more general statement. Lecture 4: Sequeces with repetitios, distributig idetical objects amog distict parties, the biomial theorem, ad some properties of biomial coefficiets Refereces: Relevat parts of chapter 15 of the Math

More information

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

Combinatorics II. Combinatorics. Product Rule. Sum Rule II. Theorem (Product Rule) Theorem (Sum Rule) Combiatorics Combiatorics I Slides by Christopher M. Bourke Istructor: Berthe Y. Choueiry Fall 27 Computer Sciece & Egieerig 235 to Discrete Mathematics Sectios 5.-5.6 & 7.5-7.6 of Rose cse235@cse.ul.edu

More information

and each factor on the right is clearly greater than 1. which is a contradiction, so n must be prime.

and each factor on the right is clearly greater than 1. which is a contradiction, so n must be prime. MATH 324 Summer 200 Elemetary Number Theory Solutios to Assigmet 2 Due: Wedesday July 2, 200 Questio [p 74 #6] Show that o iteger of the form 3 + is a prime, other tha 2 = 3 + Solutio: If 3 + is a prime,

More information

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

Chapter 7 COMBINATIONS AND PERMUTATIONS. where we have the specific formula for the binomial coefficients: Chapter 7 COMBINATIONS AND PERMUTATIONS We have see i the previous chapter that (a + b) ca be writte as 0 a % a & b%þ% a & b %þ% b where we have the specific formula for the biomial coefficiets: '!!(&)!

More information

Commutativity in Permutation Groups

Commutativity in Permutation Groups Commutativity i Permutatio Groups Richard Wito, PhD Abstract I the group Sym(S) of permutatios o a oempty set S, fixed poits ad trasiet poits are defied Prelimiary results o fixed ad trasiet poits are

More information

CSE 21 Mathematics for

CSE 21 Mathematics for CSE 2 Mathematics for Algorithm ad System Aalysis Summer, 2005 Outlie What a geeratig fuctio is How to create a geeratig fuctio to model a problem Fidig the desired coefficiet Partitios Expoetial geeratig

More information

1 Summary: Binary and Logic

1 Summary: Binary and Logic 1 Summary: Biary ad Logic Biary Usiged Represetatio : each 1-bit is a power of two, the right-most is for 2 0 : 0110101 2 = 2 5 + 2 4 + 2 2 + 2 0 = 32 + 16 + 4 + 1 = 53 10 Usiged Rage o bits is [0...2

More information

4.1 Sigma Notation and Riemann Sums

4.1 Sigma Notation and Riemann Sums 0 the itegral. Sigma Notatio ad Riema Sums Oe strategy for calculatig the area of a regio is to cut the regio ito simple shapes, calculate the area of each simple shape, ad the add these smaller areas

More information

CALCULATION OF FIBONACCI VECTORS

CALCULATION OF FIBONACCI VECTORS CALCULATION OF FIBONACCI VECTORS Stuart D. Aderso Departmet of Physics, Ithaca College 953 Daby Road, Ithaca NY 14850, USA email: saderso@ithaca.edu ad Dai Novak Departmet of Mathematics, Ithaca College

More information

Induction: Solutions

Induction: Solutions Writig Proofs Misha Lavrov Iductio: Solutios Wester PA ARML Practice March 6, 206. Prove that a 2 2 chessboard with ay oe square removed ca always be covered by shaped tiles. Solutio : We iduct o. For

More information

Computability and computational complexity

Computability and computational complexity Computability ad computatioal complexity Lecture 4: Uiversal Turig machies. Udecidability Io Petre Computer Sciece, Åbo Akademi Uiversity Fall 2015 http://users.abo.fi/ipetre/computability/ 21. toukokuu

More information

Zeros of Polynomials

Zeros of Polynomials Math 160 www.timetodare.com 4.5 4.6 Zeros of Polyomials I these sectios we will study polyomials algebraically. Most of our work will be cocered with fidig the solutios of polyomial equatios of ay degree

More information

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018 CSE 353 Discrete Computatioal Structures Sprig 08 Sequeces, Mathematical Iductio, ad Recursio (Chapter 5, Epp) Note: some course slides adopted from publisher-provided material Overview May mathematical

More information

Books Recommended for Further Reading

Books Recommended for Further Reading Books Recommeded for Further Readig by 8.5..8 o 0//8. For persoal use oly.. K. P. Bogart, Itroductory Combiatorics rd ed., S. I. Harcourt Brace College Publishers, 998.. R. A. Brualdi, Itroductory Combiatorics

More information

Sets. Sets. Operations on Sets Laws of Algebra of Sets Cardinal Number of a Finite and Infinite Set. Representation of Sets Power Set Venn Diagram

Sets. Sets. Operations on Sets Laws of Algebra of Sets Cardinal Number of a Finite and Infinite Set. Representation of Sets Power Set Venn Diagram Sets MILESTONE Sets Represetatio of Sets Power Set Ve Diagram Operatios o Sets Laws of lgebra of Sets ardial Number of a Fiite ad Ifiite Set I Mathematical laguage all livig ad o-livig thigs i uiverse

More information

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

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence Sequeces A sequece of umbers is a fuctio whose domai is the positive itegers. We ca see that the sequece 1, 1, 2, 2, 3, 3,... is a fuctio from the positive itegers whe we write the first sequece elemet

More information

What is Probability?

What is Probability? Quatificatio of ucertaity. What is Probability? Mathematical model for thigs that occur radomly. Radom ot haphazard, do t ow what will happe o ay oe experimet, but has a log ru order. The cocept of probability

More information

Math 61CM - Solutions to homework 3

Math 61CM - Solutions to homework 3 Math 6CM - Solutios to homework 3 Cédric De Groote October 2 th, 208 Problem : Let F be a field, m 0 a fixed oegative iteger ad let V = {a 0 + a x + + a m x m a 0,, a m F} be the vector space cosistig

More information

1 Introduction. 1.1 Notation and Terminology

1 Introduction. 1.1 Notation and Terminology 1 Itroductio You have already leared some cocepts of calculus such as limit of a sequece, limit, cotiuity, derivative, ad itegral of a fuctio etc. Real Aalysis studies them more rigorously usig a laguage

More information

Combinatorics and Newton s theorem

Combinatorics and Newton s theorem INTRODUCTION TO MATHEMATICAL REASONING Key Ideas Worksheet 5 Combiatorics ad Newto s theorem This week we are goig to explore Newto s biomial expasio theorem. This is a very useful tool i aalysis, but

More information

4 The Sperner property.

4 The Sperner property. 4 The Sperer property. I this sectio we cosider a surprisig applicatio of certai adjacecy matrices to some problems i extremal set theory. A importat role will also be played by fiite groups. I geeral,

More information

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

NICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) = AN INTRODUCTION TO SCHRÖDER AND UNKNOWN NUMBERS NICK DUFRESNE Abstract. I this article we will itroduce two types of lattice paths, Schröder paths ad Ukow paths. We will examie differet properties of each,

More information

Lecture Notes for Analysis Class

Lecture Notes for Analysis Class Lecture Notes for Aalysis Class Topological Spaces A topology for a set X is a collectio T of subsets of X such that: (a) X ad the empty set are i T (b) Uios of elemets of T are i T (c) Fiite itersectios

More information

Discrete Math Class 5 ( )

Discrete Math Class 5 ( ) Discrete Math 37110 - Class 5 (2016-10-11 Istructor: László Babai Notes tae by Jacob Burroughs Revised by istructor 5.1 Fermat s little Theorem Theorem 5.1 (Fermat s little Theorem. If p is prime ad gcd(a,

More information

Solutions to Final Exam

Solutions to Final Exam Solutios to Fial Exam 1. Three married couples are seated together at the couter at Moty s Blue Plate Dier, occupyig six cosecutive seats. How may arragemets are there with o wife sittig ext to her ow

More information

distinct distinct n k n k n! n n k k n 1 if k n, identical identical p j (k) p 0 if k > n n (k)

distinct distinct n k n k n! n n k k n 1 if k n, identical identical p j (k) p 0 if k > n n (k) THE TWELVEFOLD WAY FOLLOWING GIAN-CARLO ROTA How ay ways ca we distribute objects to recipiets? Equivaletly, we wat to euerate equivalece classes of fuctios f : X Y where X = ad Y = The fuctios are subject

More information

Ma 530 Introduction to Power Series

Ma 530 Introduction to Power Series Ma 530 Itroductio to Power Series Please ote that there is material o power series at Visual Calculus. Some of this material was used as part of the presetatio of the topics that follow. What is a Power

More information

MA131 - Analysis 1. Workbook 3 Sequences II

MA131 - Analysis 1. Workbook 3 Sequences II MA3 - Aalysis Workbook 3 Sequeces II Autum 2004 Cotets 2.8 Coverget Sequeces........................ 2.9 Algebra of Limits......................... 2 2.0 Further Useful Results........................

More information

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

Homework 1 Solutions. The exercises are from Foundations of Mathematical Analysis by Richard Johnsonbaugh and W.E. Pfaffenberger. Homewor 1 Solutios Math 171, Sprig 2010 Hery Adams The exercises are from Foudatios of Mathematical Aalysis by Richard Johsobaugh ad W.E. Pfaffeberger. 2.2. Let h : X Y, g : Y Z, ad f : Z W. Prove that

More information

The Binomial Theorem

The Binomial Theorem The Biomial Theorem Robert Marti Itroductio The Biomial Theorem is used to expad biomials, that is, brackets cosistig of two distict terms The formula for the Biomial Theorem is as follows: (a + b ( k

More information

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

CS 336. of n 1 objects with order unimportant but repetition allowed. CS 336. The importat issue is the logic you used to arrive at your aswer.. Use extra paper to determie your solutios the eatly trascribe them oto these sheets. 3. Do ot submit the scratch sheets. However,

More information

Math 105 TOPICS IN MATHEMATICS REVIEW OF LECTURES VII. 7. Binomial formula. Three lectures ago ( in Review of Lectuires IV ), we have covered

Math 105 TOPICS IN MATHEMATICS REVIEW OF LECTURES VII. 7. Binomial formula. Three lectures ago ( in Review of Lectuires IV ), we have covered Math 5 TOPICS IN MATHEMATICS REVIEW OF LECTURES VII Istructor: Lie #: 59 Yasuyuki Kachi 7 Biomial formula February 4 Wed) 5 Three lectures ago i Review of Lectuires IV ) we have covered / \ / \ / \ / \

More information

University of Colorado Denver Dept. Math. & Stat. Sciences Applied Analysis Preliminary Exam 13 January 2012, 10:00 am 2:00 pm. Good luck!

University of Colorado Denver Dept. Math. & Stat. Sciences Applied Analysis Preliminary Exam 13 January 2012, 10:00 am 2:00 pm. Good luck! Uiversity of Colorado Dever Dept. Math. & Stat. Scieces Applied Aalysis Prelimiary Exam 13 Jauary 01, 10:00 am :00 pm Name: The proctor will let you read the followig coditios before the exam begis, ad

More information

Combinatorics I Introduction. Combinatorics. Combinatorics I Motivating Example. Combinations. Product Rule. Permutations. Theorem (Product Rule)

Combinatorics I Introduction. Combinatorics. Combinatorics I Motivating Example. Combinations. Product Rule. Permutations. Theorem (Product Rule) Combiatorics I Itroductio Combiatorics Computer Sciece & Egieerig 235: Discrete Mathematics Christopher M. Bourke cbourke@cse.ul.edu Combiatorics is the study of collectios of objects. Specifically, coutig

More information

Discrete Mathematics and Probability Theory Summer 2014 James Cook Note 15

Discrete Mathematics and Probability Theory Summer 2014 James Cook Note 15 CS 70 Discrete Mathematics ad Probability Theory Summer 2014 James Cook Note 15 Some Importat Distributios I this ote we will itroduce three importat probability distributios that are widely used to model

More information

MT5821 Advanced Combinatorics

MT5821 Advanced Combinatorics MT5821 Advaced Combiatorics 1 Coutig subsets I this sectio, we cout the subsets of a -elemet set. The coutig umbers are the biomial coefficiets, familiar objects but there are some ew thigs to say about

More information

REVIEW FOR CHAPTER 1

REVIEW FOR CHAPTER 1 REVIEW FOR CHAPTER 1 A short summary: I this chapter you helped develop some basic coutig priciples. I particular, the uses of ordered pairs (The Product Priciple), fuctios, ad set partitios (The Sum Priciple)

More information

The Binomial Theorem

The Binomial Theorem The Biomial Theorem Lecture 47 Sectio 9.7 Robb T. Koether Hampde-Sydey College Fri, Apr 8, 204 Robb T. Koether (Hampde-Sydey College The Biomial Theorem Fri, Apr 8, 204 / 25 Combiatios 2 Pascal s Triagle

More information

1 Generating functions for balls in boxes

1 Generating functions for balls in boxes Math 566 Fall 05 Some otes o geeratig fuctios Give a sequece a 0, a, a,..., a,..., a geeratig fuctio some way of represetig the sequece as a fuctio. There are may ways to do this, with the most commo ways

More information

Random Models. Tusheng Zhang. February 14, 2013

Random Models. Tusheng Zhang. February 14, 2013 Radom Models Tusheg Zhag February 14, 013 1 Radom Walks Let me describe the model. Radom walks are used to describe the motio of a movig particle (object). Suppose that a particle (object) moves alog the

More information

Week 5-6: The Binomial Coefficients

Week 5-6: The Binomial Coefficients Wee 5-6: The Biomial Coefficiets March 6, 2018 1 Pascal Formula Theorem 11 (Pascal s Formula For itegers ad such that 1, ( ( ( 1 1 + 1 The umbers ( 2 ( 1 2 ( 2 are triagle umbers, that is, The petago umbers

More information

MATH 304: MIDTERM EXAM SOLUTIONS

MATH 304: MIDTERM EXAM SOLUTIONS MATH 304: MIDTERM EXAM SOLUTIONS [The problems are each worth five poits, except for problem 8, which is worth 8 poits. Thus there are 43 possible poits.] 1. Use the Euclidea algorithm to fid the greatest

More information

Axioms of Measure Theory

Axioms of Measure Theory MATH 532 Axioms of Measure Theory Dr. Neal, WKU I. The Space Throughout the course, we shall let X deote a geeric o-empty set. I geeral, we shall ot assume that ay algebraic structure exists o X so that

More information

TEACHER CERTIFICATION STUDY GUIDE

TEACHER CERTIFICATION STUDY GUIDE COMPETENCY 1. ALGEBRA SKILL 1.1 1.1a. ALGEBRAIC STRUCTURES Kow why the real ad complex umbers are each a field, ad that particular rigs are ot fields (e.g., itegers, polyomial rigs, matrix rigs) Algebra

More information

International Contest-Game MATH KANGAROO Canada, Grade 11 and 12

International Contest-Game MATH KANGAROO Canada, Grade 11 and 12 Part A: Each correct aswer is worth 3 poits. Iteratioal Cotest-Game MATH KANGAROO Caada, 007 Grade ad. Mike is buildig a race track. He wats the cars to start the race i the order preseted o the left,

More information

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

18th Bay Area Mathematical Olympiad. Problems and Solutions. February 23, 2016 18th Bay Area Mathematical Olympiad February 3, 016 Problems ad Solutios BAMO-8 ad BAMO-1 are each 5-questio essay-proof exams, for middle- ad high-school studets, respectively. The problems i each exam

More information

The Pigeonhole Principle 3.4 Binomial Coefficients

The Pigeonhole Principle 3.4 Binomial Coefficients Discete M athematic Chapte 3: Coutig 3. The Pigeohole Piciple 3.4 Biomial Coefficiets D Patic Cha School of Compute Sciece ad Egieeig South Chia Uivesity of Techology Ageda Ch 3. The Pigeohole Piciple

More information

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

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence Sequeces A sequece of umbers is a fuctio whose domai is the positive itegers. We ca see that the sequece,, 2, 2, 3, 3,... is a fuctio from the positive itegers whe we write the first sequece elemet as

More information

Different kinds of Mathematical Induction

Different kinds of Mathematical Induction Differet ids of Mathematical Iductio () Mathematical Iductio Give A N, [ A (a A a A)] A N () (First) Priciple of Mathematical Iductio Let P() be a propositio (ope setece), if we put A { : N p() is true}

More information

LINEAR ALGEBRAIC GROUPS: LECTURE 6

LINEAR ALGEBRAIC GROUPS: LECTURE 6 LINEAR ALGEBRAIC GROUPS: LECTURE 6 JOHN SIMANYI Grassmaias over Fiite Fields As see i the Fao plae, fiite fields create geometries that are uite differet from our more commo R or C based geometries These

More information