Discrete Mathematics. Silvia Marcaida Bengoechea

Size: px
Start display at page:

Download "Discrete Mathematics. Silvia Marcaida Bengoechea"

Transcription

1 Discrete Mathematics Silvia Marcaida Begoechea

2

3 Cotets Basic combiatorics 7 Combiatorics 7 Lists 8 3 Floor ad ceilig fuctios 9 4 Tree diagrams 4 Rule of product 4 Samples 3 43 Combiatios 6 44 Permutatios 8 45 Combiatios with repetitios 9 5 Factorial powers 6 Classificatios 7 The priciple of iclusio ad exclusio 5 7 Euler s totiet or phi (φ fuctio 8 8 Traslatios 9 9 The Dirichlet pigeohole priciple ad the salutes lemma 3 Combiatorial idetities 33 3

4 4 CONTENTS Combiatorial idetities 33 Combiatorial idetities ad proofs 33 Basic idetities of combiatorial umbers 35 3 Pascal s triagle 35 4 Vadermode s formula ad other idetities 36 Biomial formula 38 3 Multiomial coefficiets 4 3 Multiomial coefficiets 4 3 Combiatorial meaig Multiomial formula Some applicatios 44 4 Geeralized biomial formula 45 3 Geeratig fuctios ad recurrece relatios 49 3 Geeratig fuctios 49 3 Power series 49 3 Geeratig fuctio of a sequece of umbers 5 33 Examples (direct problems 5 34 Examples (iverse problems Operatios with geeratig fuctios 53 3 Geeratig fuctios ad combiatorial problems 54 3 Number of solutios of a equatio 54 3 Applicatios ad examples Recurrece relatios 57

5 CONTENTS 5 33 Combiatorial problems ad recurrece relatios Examples Geeratig fuctios ad recurrece relatios Other methods (algebraic method 6 4 Mai families of umbers 63 4 Fiboacci umbers 63 4 Catala umbers Partitios of atural umbers Defiitio Ordered partitios Partitios ad restricted partitios Partitios of differet summads Partitios with odd umber of summads Ferrers diagrams 7 44 Bell umbers 7 45 Stirlig umbers of the first id Stirlig umbers of the secod id 76 5 Graphs 79 5 Basic cocepts 79 5 Paths Trees Plaarity Colorigs 87

6 6 CONTENTS

7 Chapter Basic combiatorics Combiatorics Combiatorial theory is the study of methods of coutig how may objects there are of a give descriptio, or of coutig i how may ways somethig ca be doe, or of coutig how may ways a certai evet ca occur For example, the followig are some questios for combiatorial theory to aswer: How may objects are there of a give descriptio? (a How may pairs of atural umbers (x, y are there such that x + y 0 or x + y? (b How may teis matches will be played i a touramet i which there are 37 teis players? I how may differet ways ca somethig be doe? (a I how may differet ways ca four people be seated at a circular table? 3 I how may differet ways ca a certai evet occur? (a I how may ways ca 5 poits be obtaied after throwig a die four times?

8 8 Basic combiatorics I geeral, let A be the fiite set of elemets that satisfy a property calculate the umber of elemets of A, that is, the cardiality of A Our aim is to A {x : x satisfies a property P } Calculate A Lists I order to cout the umber of the elemets of a set a first idea is to mae a list of the elemets For example, Solutios of a equatio: (a A {(x, y N N : x + y 5} List: {(0, 5, (, 4, (, 3, (3,, (4,, (5, 0} Therefore, A 6 (b (Geeralizatio A {(x, y N N : x + y, N } List: {(0,, (,, (,, (3, 3,, (,, (, 0} Therefore, A + (c (Variatio A {(x, y N N : x + y, N, x, y }, that is, A is the set of solutios of x + y with x, y itegers If 3, A 0 If 4, list: {(,, (3, 3,, (, } A 3 (d (Geeralizatio A {(x, y, z N N N : x + y + z, N }, that is, A is the set of solutios of x + y + z, x, y, z o-egative itegers List: x y z } {{ } } {{ } x y z 0 } {{ 0 } + Hece, A ( A ( } {{ } 0 0 }{{}

9 3 Floor ad ceilig fuctios 9 A ( + ( + A ( + ( + (e (Geeralizatio A {(x, x,, x m N N N : x + x + + x m, N }, that is, A is the set of solutios of x +x + +x m, x, x,, x m o-egative itegers Remars: Would you try to build the list i this case? (a Buildig the list may be easy, less easy or impracticable (b A list caot have repetitios or abseces (all the elemets must be i the list ad without repetitios (c Before tryig to solve a problem it may be coveiet to aalyze a particular case Multiples of a iteger: (a A set of multiples of 4 amog the 87 first atural umbers A {x : x 87, x 0 ( (mod 4} {4, 8,, 6,, 868} A {4, 4, 4 3, 4 4,, 4 467} A 467 (b A set of multiples of 4 amog the first atural umbers A {4, 4, 4 3, 4 4,, 4 c} where c is the quotiet of dividig by 4 ( 4c + r, 0 r < 4 Thus, A c, that is, c is the iteger part of 4 (c [ 4 ] (c a N, A,a set of multiples of a amog the first atural umbers A,a {a, a, a 3, a 4,, a c} ad A,a c [ a ] 3 Floor ad ceilig fuctios Defiitio 3 Let x R x floor fuctio of x iteger part of x the largest iteger ot greater tha x Defiitio 3 Let x R x ceilig fuctio of x the smallest iteger ot less tha x

10 0 Basic combiatorics Remar 33 These ames ad otatio were itroduced by Keeth E Iverso i 96 Figura: Properties: i x x x Z ii x x + x / Z iii x x, x R iv x x, x R v x x x, x R Defiitio 34 Let x R {x} fractioal part of x x x Defiitio 35 Let x R < x > pseudofractioal part of x x x Remar 36 {x}, < x > [0, Example 37 Recall that A,a c [ a i {,,, } is A,a a { } a a (Notice that { } [0, a ] Notice that the ratio of multiples of a a a { a } a Example 38 Iteger coordiates i a circle Let A be the set of poits whose atural coordiates are i a circle of radius Therefore, A {(x, y N N : x + y } How much is A? Figura First colum: (,, (,,, (, where is the largest iteger such that + Therefore,

11 3 Floor ad ceilig fuctios Secod colum: (,, (,,, (, l where l is the largest iteger such that + l Therefore, j colum: (j,, (j,,, (j, r where r is the largest iteger such that j + r r j r j Therefore, r j Thus, A j j Example 39 Let A be the set of squares of area u i a fourth of a circle How much is A? Figura Area covered by the squares A u area of the fourth of the circle π Hece, 4 A π 4 O the other had, if we move the squares oe up ad oe to the right the circle is covered but the part paited i orage Therefore, π A 4 + Thus, π 4 A π 4 π 4 A π 4 Sice π 4 0 whe, by the sadwich rule, A π 4 whe Thus, A π 4 Example 30 Number of digits i the decimal system Give N calculate the umber of digits of i the decimal system For example, 34 d( 4; 300 d( abcd 9999 < abcd < d( < 0 d( log 0 (0 d( log 0 ( < log 0 (0 d( d( log 0 ( < d( d( log 0 ( d( log 0 ( + Example 3 Number of itegers i (α, β, α, β R Let A α,β set of itegers i the iterval (α, β, α, β R How much is A α,β? For example: α 5, β 47 A α,β α 5, β 8 A α,β 0 Figura

12 Basic combiatorics Remar: Why is the first iteger α + istead of α? If α were iteger the α α But the iterval is ope i α! Therefore, A α,β { α +, α +,, β } { α +, α +,, α + β α } Thus, A α,β β α For example, α 5, β 47 A α,β 5 α 5, β 8 A α,β Tree diagrams 4 Rule of product Rule of product: If a evet X ca happe i x ways ad a distict evet Y i y ways the X ad Y ca happe i xy ways Example 4 If we ca go from Bosto to Chicago i 3 ways (x, y, z ad from Chicago to Dallas i 5 ways (,,3,4,5 the the umber of ways i which we ca go from Bosto to Chicago to Dallas is 5 Figura Figura There are r braches startig from 0 (first geeratio There are r braches startig from each brach of the first geeratio (secod geeratio Ad so o Fially, there are r braches startig from each brach of the geeratio ( geeratio Let R be the total umber of braches i the geeratio, that is, R is the umber of ways from 0 to the top of the tree R r ; R R r r r ; ; R R r i r i Aother versio: Pigeohole

13 4 Tree diagrams 3 If there are c ways of fillig hole, c ways of fillig hole,, c ways of fillig hole the there are c c c ways of fillig the pigeohole Example 4 I order to mae up a meu we ca select amog two differet first dishes: A or B, three differet secod dishes: a,b or c ad two differet desserts: α or β How may differet meus ca we mae up? 3 meus 4 Samples Defiitio 43 A set is a uordered collectio of distict objects The objects are called elemets of the set We use braces to deote a set For example, the set with elemets, ad 3 is deoted {,, 3} Sice the elemets are ot ordered, {,, 3} ad {, 3, } are the same set Defiitio 44 A sequece is a ordered collectio of ot ecessarily distict objects We use bracets to deote a sequece For example, (,, Sice the etries are ordered, (,, ad (,, are differet sequeces Defiitio 45 Let Ω {a,, a } be a set of elemets ad A -sample without repetitio of Ω is a arragemet of the elemets of Ω tae at a time, where two arragemets are regarded as differet if they differ i compositio or i the order of their elemets I other words, a -sample without repetitio of Ω is a sequece of legth that ca be formed with the elemets i Ω without repeatig them Let V, deote the umber of -samples without repetitio give distict objects How much is V,? We ote that we ca choose the first elemet i ways, the secod elemet i ways,, the th elemet i + ways By the rule of product, V, ( ( +! (! Example 46 A certai society has 5 members The members of the society are to elect a presidet, a vice presidet, a secretary, ad a treasurer I how may ways is it possible to select the 4 officers if o member of the society ca hold more tha oe office at a time? We are to fid the umber of samples (without repetitios of 5 members tae 4 at a time This umber is equal to V 5, , 600

14 4 Basic combiatorics Example 47 I a draw there are 3 prizes: a car, a trip ad a baset full of food 00 ticets have bee sold, umbered from to 00 For each ticet a ball has bee itroduced ito a drum The first umber draw wis the baset, the secod wis the trip ad the third, the car How may differet possibilities are there? Baset: 00 possible umbers, trip: 99 possible umbers, car: 98 possible umbers V 00, , 00 If I bought 5 ticets, how may possibilities would I have of wiig the car? Baset: 99 possible umbers, trip: 98 possible umbers, car: 5 possible umbers , 50 How may possibilities do I have of wiig the three prizes? Baset: 5 possible umbers, trip: 4 possible umbers, car: 3 possible umbers How may possibilities do I have of wiig at least oe prize? We study it later Defiitio 48 Let Ω {a,, a } be a set of elemets ad A -sample with repetitio of Ω is a sequece of legth that ca be formed with the elemets i Ω beig able to repeat them Let V R, deote the umber of -samples with repetitio give distict objects How much is V R,? We ote that we ca choose the first elemet i ways, the secod elemet i ways,, the th elemet i ways By the rule of product, Notice that it is ot ecessary V R, Example How may umbers of 3 digits ca be formed i the decimal system? V R 0,3 0 3, 000 How may of them are palidromic? 0 0 V R 0, 0 00

15 4 Tree diagrams 5 How may are eve? V R 0, Example 40 How may football pools coupos must we fill i order to be absolutely sure we wi? Notice that there are 5 matches ad 3 possible results V R 3, , 348, 907 Example 4 Let Ω {a, e, o, u, b, c, d} A set of words of 4 letters that ca be formed with the alphabet i Ω i such a way that the first is a cosoat ad the last a vowel A A set of words of 5 letters that ca be formed with the alphabet i Ω i such a way that there are ot equal cosecutive letters A , 07 Example 4 A is the set of umbers of 5 differet digits startig ad fiishig i a eve digit A , 70 Example 43 Calculate the umber of ways to place 4 distiguishable balls i 3 umbered boxes i such a way that oe of the boxes are empty First idea: Place balls,, 3 oe i each box ad the ball 4 This is ot a good idea because, 3 4 would t be couted Secod idea: Select three balls, place them oe i each box ad place the fourth ball This is ot a good idea because we are coutig, 4 3 ad 4, 3 but they are the same Good idea: Choose the box with two elemets (3, select the balls i that box (?, place the remaiig balls oe i each box ( We study it later

16 6 Basic combiatorics 43 Combiatios Defiitio 44 Let Ω {a,, a } be a set of elemets ad A - combiatio without repetitio of Ω is a arragemet of the elemets of Ω tae at a time, where two arragemets are regarded as differet oly if they differ i compositio I other words, a -combiatio without repetitio of Ω is a subset of elemets of Ω The umber of -combiatios without repetitio of elemets is deoted by the symbol C, There is a simple relatio betwee the umber C, of -combiatios of elemets ad the umber V, of -samples Let s see it with a example Example 45 Let Ω {a, b, c, d, e} Cout the 3-samples without repetitio: Oe way: V 5, Aother way: Choose the three elemets ad the order the elemets: V 5,3 C 5,3 3! C 5,3 V 5,3 3! !! 5! 3! 3! ( 5!3! 3 I geeral, C, V,! ( Example 46 Calculate the umber of ways to place 4 distiguishable balls i 3 umbered boxes i such a way that oe of the boxes are empty As we said i example 43 we ca choose the box with two elemets (3, select the balls i that box (C 4,, place the remaiig balls oe i each box ( Therefore, 3 (4 3 4! 36!! Example 47 (Geeralizatio Calculate the umber of ways to place + distiguishable balls i umbered boxes i such a way that oe of the boxes are empty First we choose the box with two elemets (, select the balls i that box (C +,, place the remaiig balls oe i each box (V, Therefore, C +, V,

17 4 Tree diagrams 7 Example 48 (Geeralizatio Calculate the umber of ways to place + distiguishable balls i umbered boxes i such a way that oe of the boxes are empty Two ways: oe box has three balls ad the remaiig boxes have oe ball each two boxes have balls ad the remaiig boxes have oe ball each Choose the box with tree elemets (, select the balls i that box (C +,3, place the remaiig balls oe i each box (V, Therefore, C +,3 V, Choose the double boxes (C,, select the balls i the first double box (C +,, select the balls i the secod double box (C,, place the remaiig balls oe i each box (V, Therefore, C, C +, C, V, Thus, the solutio is C +,3 V, + C, C +, C, V, Propositio 49 Basic properties of the biomial coefficiets C, ( V,! (! (!!! (!!!, 0,,!! ( (!!!(! ( (!(!, 0,, Choosig elemets amog is the same as rejectig amog 3 ( 0! 4 ( 5 (! ( 0!0!!!! (!!! ( + (,, 0,, ( 6 If, ( 7 If, ( ( Proof- 5 ( ( + (! [ (! + (!! [ + (! (! + ( (!(! (!! (!(! (!! ] (!! ( (!! (!! (!! ] 6 (! ( ( + (!! ( ( ( + ( (! ( ( (!(! 7 ( ( ( (

18 8 Basic combiatorics 44 Permutatios Defiitio 40 A permutatio of elemets or -permutatio is a -sample without repetitio of elemets, that is, a -permutatio is a sample without repetitio of elemets which cotais all the elemets I other words, permutatios of elemets are all the possible -arragemets each of which cotais every elemet oce, with two such arragemets differig oly i the order of their elemets The umber of -permutatios is deoted by P P V, (! Defiitio 4 A multiset is a geeralizatio of the otio of set i which elemets are allowed to appear more tha oce Defiitio 4 Let M be a multiset with elemets of the first type, elemets of the secod type,, elemets of the th type The differet arragemets of M are the permutatios with repetitio I other words, a permutatio with elemets of the first type, elemets of the secod type,, elemets of the th type is a sequece formed with elemets of the first type, elemets of the secod type,, elemets of the th type P (,,, deotes the umber of such permutatios How much is P (,,,? Example 43 Calculate the umber of sequeces that ca be formed with p zeros ad q oes p + q Choose where to place the zeros: C p+q,p ( p+q p We get the same choosig the places for the oes: C p+q,q ( p+q q Example 44 Calculate the umber of sequeces that ca be formed with p zeros, q oes, ad r twos Choose the places for the zeros ad the choose the places for the oes: C p+q+r,p C q+r,q ( p+q+r p ( q+r (p+q+r! q (q+r! (p+q+r! (p+q+r p!p! (q+r q!q! (q+r!p! (q+r! r!q! (p+q+r! p!q!r!

19 4 Tree diagrams 9 Notice that P (,,, is the umber of sequeces that ca be formed with elemets of the first type, elemets of the secod type,, elemets of the th type Let ( ( ( ( P (,,, 3! (! (!!(!!(! 3!( 3! (!!(!!!!!! 45 Combiatios with repetitios Defiitio 45 A -combiatio of elemets with repetitio is a multiset of elemets amog the The umber of -combiatios with repetitio of elemets is deoted by the symbol CR, How much is CR,? Example 46 How much is CR 5,3? Let Ω {a, a, a 3, a 4, a 5 } be a set of five elemets We wat to form multisets of 3 elemets Defie A {a α a α a α3 : α, α, α 3 {,, 3, 4, 5}, α α α 3 } This is the set of multisets of 3 elemets of Ω Thus, CR 5,3 A Defie Ω {b, b, b 3, b 4, b 5, b 6, b 7 } ad B {b β b β b β3 : β {,, 3, 4, 5}, β {, 3, 4, 5, 6}, β 3 {3, 4, 5, 6, 7}, β < β < β 3 } Defie the map φ : A B a α a α a α3 b α b α b α3 This is a bijectio Ijective: Let φ(a α a α a α3 φ(a γ a γ a γ3 The b α b α +b α3 + b γ b γ +b γ3 + α γ, α + γ +, α 3 + γ 3 + α γ, α γ, α 3 γ 3 a α a α a α3 a γ a γ a γ3 Surjective: Let b β b β b β3 with β {,, 3, 4, 5}, β {, 3, 4, 5, 6}, β 3 {3, 4, 5, 6, 7} ad β < β < β 3 Let α β, α β, α 3 β 3 Thus, α {,, 3, 4, 5}, α {,, 3, 4, 5}, α 3 {,, 3, 4, 5} ad α α α 3 Hece, there exists a α a α a α3 A such that φ(a α a α a α3 b β b β b β3 Therefore, the sets A ad B both have the same umber of elemets Sice B C 7,3, CR 5,3 A B C 7,3

20 0 Basic combiatorics Example 47 Let Ω {a, b, c, d} Therefore 4 Let 3 {a, a, a} 000 {a, a, b} 000 {a, a, c} 000 {a, b, b} 000 {a, b, c} 000 {c, c, d} 000 Therefore, CR 4,3 umber of sequeces that ca be formed with 3 zeros ad 3 oes This ca be calculated choosig three places out of 6, which is ( 6 3 For each multiset of elemets there is a sequece formed with zeros ad oes, ad coversely Therefore, CR, is the umber of sequeces formed with zeros ad oes Thus, CR, C +, V +,! ( +! ( +!! ( +! (!! ( + Example 48 Calculate the umber of sequeces that ca be formed with p zeros ad q oes CR q+,p ( ( q++p p p+q This is aother way of calculatig example 43 p Example 49 Calculate the umber of sequeces that ca be formed with zeros ad 3 oes such that there are ot cosecutive zeros Choose of the 4 possible places: C 4, ( 4 4! 6!! Example 430 (Geeralizatio Calculate the umber of sequeces that ca be formed with p zeros ad q oes such that there are ot two cosecutive zeros

21 5 Factorial powers Choose p of the possible q + places: C q+,p ( q+ p Example 43 Calculate the umber of sequeces that ca be formed with zeros, 3 oes ad 4 twos such that the zeros are ot cosecutive Choose a sequece formed by s ad s (place the s ad the isert the zeros (place the 0s i the holes: C 7,3 C 8, ( 7 3( 8 Example 43 (Geeralizatio Calculate the umber of sequeces that ca be formed with p zeros, q oes ad r twos such that there are ot two cosecutive zeros Choose a sequece of s ad s (place the s ad the isert the zeros (place the 0s i the holes: C q+r,q C q+r+,p ( ( q+r q+r+ q p 5 Factorial powers Defiitio 5 Let a C Its descedig or lower or fallig factorial (power of order, N, is { a(a (a + a 0 Defiitio 5 Let a C Its ascedig or upper or risig factorial (power of order, N, is { a(a + (a + a 0 Propositio 53 Some properties are the followig: (a ( a ( a (b ( a ( a Proof- ( a ( a( a ( a + ( a( (a + ( (a + ( a

22 Basic combiatorics (c ( a ( a Proof- ( a ( a( a + ( a + ( a( (a ( (a + ( a (a a +l a a l (b a +l a (a l Proof- a +l a(a (a + (a (a (a l + a (a l (c a +l a (a + l 3 a N {0} (a If 0 ( ( + ( ( +( ( ( (! (! (b If > 0 Proof- ( ( ( ( Classificatios Rule of sum: Let Ω be a set If {A,, A } is a partitio of Ω, that is, ia i Ω ad A i A j for all i j the Ω A + + A Classificatio is useful: sometimes there is o other solutio but to classify, we may fid iterestig idetities, 3 classificatio is the mai idea to get recurrece relatioships Example 6 We have already doe this A ways of placig 5 distiguishable balls i 3 umbered boxes such that oe of them is empty Defie A ways i which there are two boxes with two balls each, A ways i which there is a box with three balls Therefore, A A + A Example 6 Ω {a,, a } P(Ω collectio of subsets of Ω power set of Ω Subsets of Ω:

23 6 Classificatios 3 0 elemets: elemet: {a }, {a },, {a } elemets elemets: Ω P(Ω C,0 + C, + + C, i0 C,i i0 ( i Example 63 Let Ω {a,, a } How much is P(Ω? Set x P(Ω Subsets that cotai a : there are x P({a,, a } Subsets that do ot cotai a : there are x P({a,, a } Therefore, x x + x x x 3 x 3 x By example 6, i0 ( i Example 64 a umber of sequeces of legth formed with zeros ad oes i which there are ot two cosecutive zeros a (0, a 3 (0, 0, a 3 5 (00, 0, 0, 0, We classify by the first elemet: Startig with zero: the secod umber must be so there are a Startig with oe: there are a Hece, a a + a, 3 Example 65 (Recurrece relatioship of the biomial coefficiets

24 4 Basic combiatorics Let Ω {a,, a } ad Recall that -combiatios without repetitio of elemets are the subsets of Ω with elemets First type: those that cotai a There are C, Secod type: those that do ot cotai a There are C, Therefore, C, C, + C, ( ( ( + We get Pascal s triagle of the biomial coefficiets or combiatios: ( 0 ( 0 ( ( 0 ( ( ( 0 3 ( 3 ( 3 ( 3 ( 0 4 ( 4 ( 4 ( 4 3 ( Thus, Example 66 a umber of sequeces of legth formed with zeros, oes ad twos i which there are ot two cosecutive oes a 3 (0,, a 8 (00, 0, 0, 0,, 0,, For 3: Startig with 0: there are a Startig with 0: there are a Startig with : there are a Startig with : there are a Therefore, a a + a, 3 Example 67 There are two types of floor tiles: x, x Let a be the umber of ways to tile a rectagular floor of dimesio x

25 7 The priciple of iclusio ad exclusio 5 a a 3 We classify the ways to tile by the firs elemet: First elemet x: there are a First elemets x, x: there are a First elemet x: there are a Therefore, a a + a 3 7 The priciple of iclusio ad exclusio Notatio: A B AB for simplicity Example 7 Let A { : ad is divisible by or 3} { :, 0 (mod } { :, 0 (mod 3} Deote B { :, 0 (mod } ad C { :, 0 (mod 3} Is {B, C } a partitio of A? It is true that B C A but B C For example 6 B C So we caot deduce that A B + C But, is there ay relatioship? Let us cosider the Ve diagram Figura A B + C B C B, C 3, B C 6 Therefore, A Example 7 A { :, 0 (mod } B { :, 0 (mod 3} C { :, 0 (mod 5}

26 6 Basic combiatorics How much is D A B C? Ve diagram: Figura D A B C (A B C (A B + C (A B C A + B A B + C A C B C A + B A B + C ( A C + B C A B C A + B + C A B A C B C + A B C Thus, D Theorem 73 (The Priciple of Iclusio-Exclusio Let A,, A be subsets of a fiite set Ω The i A i A i A i A j + A i A j A + +( r i i <i < <i r i<j i<j< A i A i A ir + + ( i A i Proof- By iductio o We have already see it for Suppose it is true for ia i i A i A i A i + A ( i A ia i A i + A i A ia A i i ( i<j A i A i A i A j + +( r i<j i <i < <i r + A A i A j A + + ( r A i A i A ir + +( i A i + i <i < <i r + + ( i A ia A i A i A j + A i A j A + i +( r i<j i <i < <i r How may quatities appear i the formula? i<j< A i A i A ir + + ( i A i A i A i A ir A + ++C, +C,3 + +C,r + +C, 0 C, (Notice that the correspods to the quatity o the left

27 7 The priciple of iclusio ad exclusio 7 Example 74 Suppose that we have married couples (a ma ad a woma i a ball: (M, W,, (M, W I how may differet ways ca we pair the me off with the wome so that o ma daces with his wife? Let Ω {all the couples that ca be doe}, Ω {couples i which o ma daces with his wife} Notice that Ω P (M :, M :,, M or it ca be see as a arragemet of {,, } We wat to calculate Ω but it is easier to calculate Ω c Ω c {couples i which there is at least oe that is a married couple} Hece, Ω Ω Ω c Defie A {married couple daces together},,, Fix married couple i A i umber of ways to arrage the remaider couples P (! Fix married couples i, j A i A j umber of ways to arrage the remaider couples P (! Fix married couple i,, i r A i A ir umber of ways to arrage the remaider couples P r ( r! A A P 0 Thus, Ω c i A i i,j A ia j + + ( r i < <i r A i A ir + + ( A A (! C, (! + + ( r C,r ( r! + + ( i ( i C,i ( i! Therefore, Ω Ω Ω c! i ( i C,i ( i! i0 ( i C,i ( i! Remar 75 A simpler expressio for the priciple of iclusio-exclusio: Give I {,, } defie A I i I A i The, i A i ( I A I I {,,}

28 8 Basic combiatorics 7 Euler s totiet or phi (φ fuctio Let N Defie A { {,, } : is prime with } { {,, } : gcd(, } Euler s totiet or phi fuctio is defied as φ( A If, φ( If > ad p α p α p α l l is its prime decompositio the φ( ( ( p p ( pl l i ( pi Example 76 φ( φ( 3 ( ( Remar 77 Notice that φ( is a iteger Proof- We ca write A { {,, } : is ot divisible by ay p i } The A c { {,, } : is divisible by at least oe of the p i } Let B i { {,, } : is divisible by p i }, i,, l Thus, ( l B i i l i p i + i<j l i<j l φ( A A c l i B i B i B j + + ( r p i p j + + ( r i < <i r l i < <i r l B i B ir + + ( l B B l p i p ir + + ( l p p l

29 8 Traslatios 9 ( l i p i + i<j l p i p j + + ( r i < <i r l ( ( p p ( pl + + ( l p i p ir p p l l i ( pi 8 Traslatios Defiitio 8 To traslate a problem is to state a equivalet problem i other terms Example 8 Poits i R (x, y pairs of poits i R Lie ax + by c I this way we traslate a geometrical problem i a algebraic oe Example 83 Placemet of m distiguishable balls i umbered boxes Placemet without exclusio (several balls ca be placed i the same box mappig from {,, m} to {,, } Placemet with exclusio (each box has at most oe ball ijective mappig from {,, m} to {,, } Example 84 Placemet of m udistiguishable balls i umbered boxes Placemet without exclusio (several balls ca be placed i the same box sequece formed by m zeros ad oes Placemet with exclusio (each box has at most oe ball sequece formed by m zeros ad oes i which there are ot two cosecutive zeros Example 85 Let Ω {,, }

30 30 Basic combiatorics If Ω {,, 3, 4, 5}: {} 0000 {, 5} 000 Therefore, subset of Ω sequece of legth formed by zeros ad oes Example 86 Let Ω {,, } Subset of elemets of Ω sequece of legth formed by oes ad zeros Example 87 H-V trajectory a trajectory formed by flights of the followig types: (x, y + (x, y (x +, y, Therefore, this is a H-V trajectory: (x, y Figura Let T (p,q (0,0 set of H-V trajectories from (0, 0 to (p, q, with p, q N Put 0 for H ad for V, so we get a sequece of zeros ad oes H-V trajectory from (0, 0 to (p, q sequece of zeros ad oes Example 88 U-D trajectory a trajectory formed by flights of the followig types: (x, y (x +, y +, (x, y (x +, y Let Θ (p,q (0,0 set of U-D trajectories from (0, 0 to (p, q, with p, q N Let x umber of flights U, y umber of flights D Thus, x + y p ad x y q Thus, x p+q, y p q If p < q the y < 0, so there is t ay U-D trajectory from (0, 0 to (p, q If p ad q have differet parity the x ad y will ot be itegers, so there is t ay U-D trajectory from (0, 0 to (p, q If p q 0 ad p ad q have the same parity the U-D trajectory from (0, 0 to (p, q sequece formed by p+q zeros ad p q oes

31 9 The Dirichlet pigeohole priciple ad the salutes lemma 3 9 The Dirichlet pigeohole priciple ad the salutes lemma The Dirichlet Pigeohole Priciple: If m pigeos occupy pigeoholes ad m > the at least oe will house at least two pigeos I mathematical terms, if m > there is ot ay ijective mappig from {a,, a m } to {b,, b } Example 9 Let s prove that i New Yor there are at least two persos with the same umber of hairs o the head Suppose that a perso has at most hairs o the head ad that i New Yor more tha persos live By the Dirichlet Pigeohole Priciple it follows The Salutes Lemma: Let be the umber of guests i a party Suppose that if a perso says hello to aother perso, the latter always says hello to the former Thus, the umber of persos that say hello to a odd umber of persos is eve Therefore, if the umber of guests is odd the there is at least oe perso that says hello to a eve umber of guests

32 3 Basic combiatorics

33 Chapter Combiatorial idetities Combiatorial idetities Combiatorial idetities ad proofs A combiatorial idetity is a equality where there are combiatorial umbers For example, ( ( ( + + +, 0 0 A idetity ca be proved i differet ways: Aalytically: by iductio, reductio to aother ow equality, Combiatorially: by fidig a combiatorial problem ad two differet coutig methods whose results are each side of the equality Example ( + 0 ( + + (, 0

34 34 Combiatorial idetities Combiatorial proof: Let Ω be a set of elemets First coutig method: Subsets of Ω sequeces of legth formed with zeros ad oes There are Secod coutig method: Subsets of Ω of elemets: subsets of Ω (, 0,,, Therefore, there are 0 Aalytical proof: By iductio o : For 0, ( Let ad assume that the formula is true for Havig i mid that ( ( ( +, ( ( 0 [( 0 + ( + ] [( 0 + ( + ] [( + + ( + ( ] + ( ( 0 + ( + ( 0 + ( + ( + + ( + ( + ( ( ( ( + ( 0 ( Example ( 0 ( + ( ( + ( 0, Aalytical proof: Sice ( ( ( + (, ( 0 ( + ( + ( ( ( 0 ( ( 0 + ( + ( ( ( +( +( +( 0 Combiatorial proof: We have to prove ( 0 + ( + ( + ( 3 +, that is, the umber of subsets of {,, } with a eve umber of elemets is equal to the umber of subsets of {,, } with a odd umber of elemets Let P set of subsets of {,, } with a eve umber of elemets ad I set of subsets of {,, } with a odd umber of elemets Defie the map Sice it is a bijectio P I P { I A \ {} if A A A {} if / A Example 3 a ( + 0 ( +, b ( + ( + 3 By the two previous examples a + b ad a b Therefore a ad a

35 Combiatorial idetities 35 Basic idetities of combiatorial umbers Recall Propositio 49: (!, 0,,!(! ( (, 0,, ( ( 0 ( ( ( +,, 0,, ( (,,,,,,,, ( ( 3 Pascal s triagle Recall Pascal s triagle: ( 0 ( 0 ( ( 0 ( ( ( 0 3 ( 3 ( 3 ( 3 ( 0 4 ( 4 ( 4 ( 4 3 ( 4 ( ( 5 ( 5 ( 5 ( 5 4 ( 5 ( ( 6 ( 6 ( 6 ( 6 ( 6 5 ( 6 ( ( 7 ( 7 ( 7 ( 7 ( 7 ( 7 6 ( Thus, From the triagle we see, for example, that ( ( ( + 5 ( + 6 ( I geeral, ( ( ( ( ( r + r ,, r 0 0 r r

36 36 Combiatorial idetities Proof : ( ( ( ( ( ( + r + + r + r + r + r + r r r r r r r ( ( ( ( ( + r + r + r r r r 0 ( ( ( ( ( + r + r + r r r r 0 Proof (iductio o r: For r 0 ( ( Assume that it is true for r ad let s see it for r: ( ( ( ( ( ( ( r + r + r + r , 0 r r r r where the first equality is true by the iductio hypothesis ad the secod by oe of the basic combiatorial idetities 4 Vadermode s formula ad other idetities That is, ( ( m 0 r + ( ( m + + r r 0 Proof- (by iductio o ( ( m r ( r ( m 0 ( + m For 0, ( 0 0( m r ( m r, for all r, m N {0} r ( + m r,, m, r N {0},, m, r N {0} Assume that the formula is true for for ay r, m The ( ( ( ( ( ( m m m r r r 0 ( ( (( ( ( (( ( ( m m m r 0 r r r 0 (( ( ( ( ( ( m m m r r r 0 (( ( ( ( ( ( m m m r r r 0

37 Combiatorial idetities 37 ( ( ( + m + m + m + r r r Proof- (combiatorial Let Ω {a,, a, b,, b m }, A {a,, a }, B {b,, b m } The umber of subsets of Ω with r elemets is ( +m r ( O the other had, the umber of subsets of Ω with r elemets, of which are i A is m ( r, for 0,, r Thus, r ( ( m ( 0 r +m r Other idetities ( + 0 ( + + ( Proof- By Vadermode s formula whe m r: ( ( 0 + ( ( + + ( ( ( 0 ( Proof- (aalytical ( ( r r ( ( r, r 0! r! r!( r!!(r!! (!!( r!(r! (! ( ( r Proof- (combiatorial Let Ω {,, } umber of pairs (A, B where A is a subset of Ω with r elemets ad B is a ( ( r r subset of A with elemets Aother strategy is to choose B as a subset of Ω with elemets ad add r elemets i order to build A: ( ( r

38 38 Combiatorial idetities Biomial formula Theorem Let x, y C ad 0,,, The (x + y 0 ( x y ( Proof- (by iductio o For 0, (x + y 0 ad ( 0 0 x 0 y 0 For, (x + y x + y ad ( 0 x 0 y + x y 0 y + x Suppose it is true for ad let s see it for ( x 0 y + 0 ( x 0 y + 0 (x + y (x + y (x + y x(x + y + y(x + y ( ( x x y + y x y 0 ( ( x + y + x y 0 0 ( ( ( xy + x y + + x y ( ( ( + x 0 y + xy + + x y 0 (( ( (( ( + xy (( ( ( + + x y + x y 0 ( ( ( ( xy + x y + + x y + x y 0 0 x y ( x y Proof- (combiatorial Notice that (x + y(x + y xx + xy + yx + yy, (x+y(x+y(x+y (xx+xy+yx+yy(x+y xxx+xxy+xyx+xyy+yxx+yxy+yyx+yyy

39 Biomial formula 39 For : (x + y (x + y(x + y (x + y xx x + xx xy + sequeces of legth that ca be formed with x ad y 0 ( x y Corolary ( + x 0 ( x ( + 0 ( x + + ( x Corolary 3 ( x 0 ( ( x 0 ( ( x ( 0 ( ( x + + ( x Corolary 4 ( + 0 ( x + ( x 4 + ( + x + ( x 4 Proof- ( + x + ( x (( ( 0 + x + ( 4 x 4 + Corolary 5 ( x + ( x ( x 5 + ( + x ( x 5 Proof- ( + x ( x (( ( x + 3 x 3 + ( 5 x 5 + Some combiatorial idetities we obtai from the biomial formula: x : ( ( 0 + ( ( ( 0 ( + + (,

40 40 Combiatorial idetities ( 0 + ( + ( 4 + ( + ( 3 + ( 5 + x i: ( ( ( ( ( ( + i i + i + i + + i 0 0 ( ( ( ( ( ( r r (( ( ( ( ( +i ( r + A + Bi, r + ( ( ( ( (( ( (( ( A ( ( ( ( (( ( (( ( B Put ( ( S 0 + +, 0 4 ( ( S + +, 6 ( ( S + +, 5 ( ( S , + Notice that S j is the umber of subsets of {,,, } whose umber of elemets is j ( (mod 4, for j 0,,, 3 Therefore, ( + i (S 0 S + (S S 3 i We call r α re iα rcosα + ir si α With this otatio + i π e i π 4 ad 4 ( + i ( e i π 4 cos π + i si π Hece, 4 4 S 0 S cos π 4, S S 3 si π 4 Moreover, we ow that S 0 + S S + S 3 Thus, S 0 + cos π 4,

41 Biomial formula 4 S + si π 4 S cos π 4,, Derivig: For x : For x : Itegratig: t 0 For t : For t : ( + x ( + x dx Itegratig agai: x S 3 si π 4 ( x ( + x 0 (, 0 ( (, 0 ( t x dx 0 ( + t ( + t + dt + [ ( + x [ ( + t + ( + ( + t ] x ( x, ] t 0 ( t + + ( + ( + ( ( + 0 x 0 0 ( [ ] x + t + 0 t + dt ( [ t + ( + ( + ] x 0

42 4 Combiatorial idetities For x : For x : Other operatios: ( + x + ( + ( + x + + ( + ( + + ( + ( ( x + ( + ( + ( ( + ( + ( ( + ( + ( + ( + x ( + x m ( + x +m is a polyomial idetity, so both sides of the equality have the same coefficiets Therefore, r ( ( ( m + m, i r i r i0 which is Vadermode s formula A little bit more: x y (x + ( y ( (x + y x ( y For x y : ( ( ( 0 3 Multiomial coefficiets 3 Multiomial coefficiets Defiitio 3 Let N {0} ad r, r,, r m N {0} such that r +r + +r m (! r, r,, r m r!r! r m! Example 3 ( 6 6! 3,, 3!!!

43 3 Multiomial coefficiets 43 Propositio 33 ( ( r, r r ( ( ( ( ( r r r r r m r, r,, r m r r r 3 r m Proof- ( ( ( ( r r r r r m r r r 3 r m! ( r! ( r r! r!( r! r!( r r! r 3!( r r r 3! ( r r m! r m!r m!! r!r! r m! 3 Combiatorial meaig ( r,r,,r m! r!r! r m! is the umber of sequeces of legth that ca be formed with r symbols α,, r m symbols α m, which is also the umber of ways to place distiguishable balls i m umbered boxes so that there are r balls i the first box, r i the secod,, ad r m i the last oe Strategy: choose the places for the α s or choose the balls i the first box: ( r choose the places for the α s or choose the balls i the secod box: ( r r 3 4 choose the places for the α m s or choose the balls i the peultimate box: ( r r m r m 5 choose the places for the α m s or choose the balls i the last box:

44 44 Combiatorial idetities 33 Multiomial formula Theorem 34 Let x, x,, x m C ad 0 The, ( (x + x + + x m x r x r x rm m r, r,, r m r i N {0} r + r + + r m Proof- (x +x + +x m (x +x + +x m (x +x + +x m m m i i ( umber of sequeces x i x i x i i which there are r symbols x,, r m symbols x m x r ( x r x r x rm m r, r,, r m r i N {0} r + r + + r m m x i x i x i i x r x rm m 34 Some applicatios m r i N {0} r + r + + r m Proof- Multiomial formula whe x x m r i N {0} r + r + r 3 + r 4 ( r, r,, r m ( ( r 3+r 4 0, r, r, r 3, r 4 Proof- By the multiomial formula whe m 4 ( (a + b + c + d r, r, r 3, r 4 r i N {0} r + r + r 3 + r 4 a r b r c r 3 d r 4 Put a b, c d

45 4 Geeralized biomial formula 45 3 If r + + r m the r! r m! is a divisor of! Proof- Sice ( r,,r m is a iteger, r! r m! is a divisor of! 4 [[(m!]!] m [m!]! Proof- Put r r r m (m! ad r + + r m m(m! m! Thus r! r m! [[(m!]!] m divides [m!]! Defiitio 35 m!! is called semifactorial of m { m(m (m 4 if m 0 (mod m(m (m 4 if m (mod 4 Geeralized biomial formula Defiitio 4 Let α R, N {0} ( { α α! 0 α(α (α +! Propositio 4 If α N {0} the ( C, ; otherwise, if α / N {0} the ( α has o combiatorial meaig ( α + ( α ( α +, α R, N {0} 3 ( ( α α + ( Proof- ( ( α + α (α+ ( α+! α (! + α! α (! [ ] + α + α α+ (! (α+α(α (α +! 3 ( α ( α ( α ( α(α+ (α+ ( (α+ ( ( α+!!!! ad CR, ( + Notice that C, ( Recall ow Taylor s formula for a polyomial: ( (

46 46 Combiatorial idetities Theorem 43 Give a polyomial of degree at most, p(x c 0 +c x+c x + +c x 0 c x, it turs out that c p( (0, 0,, ad p(x p ( (0! 0 x! Proof- Sice p(x 0 c x, p(0 c 0 ad p (r (x r ( ( r + c x r r r c x r for r,, Therefore, p (r (0 r r c r r!c r ad c r p(r (0 r! Let s apply this theorem to p(x ( + x Note that p (r (x ( ( r + ( + x r r ( + x r Thus, c r p(r (0 r ( r! r! r Therefore, ( ( + x x r r This is a ew proof of Newto s biomial formula We are goig to geeralize this taig f(x ( + x α Notice that r0 If α the f(x +x ad D f R {} If α the f(x + x ad D f [, + If α the f(x +x ad D f (, + What is the domai of f? Lemma 44 Let f(x ( + x α For every α R, (, + D f Proof- Let x (, + Thus, x + > 0, x + e l(x+ ad ( + x α e α l(+x exist ad is fiite Therefore x D f Moreover, f(x is derivable i (, + It turs out that f (r α r ( + x α r, which is cotiuous for x (, +, ad f (r (0 α r By Taylor-Maclauri s Theorem f(x 0 Therefore, f(x lim 0 f ( (0 x + R (x with lim R (x 0 whe x <! f ( (0 x f ( (0! 0 ( + x α There are some especial cases: 0 ( α! x I our case, x for x <

47 4 Geeralized biomial formula 47 α N {0} ( + x is a polyomial of degree ad the geeralized biomial formula is already ow sice for > ( 0 α if x < Sice (+x 0 Thus, Cosequetly, α, x < ( + x Thus, Cosequetly, (+x α, N {0} ( + x (+x ( x for x <, +x 0 ( ( + x 0 ( x + x x + x x 3 + x 4 x + x + x + x 3 + x 4 + x + x + x 4 + x 6 + x 8 + x r + xr + x r + x 3r + x 4r + 0 ( x 0 ( ( + x 0 ( ( + x ( + x x + 3x 4x 3 + 5x 4 ( x + x + 3x + 4x 3 + 5x 4 + ( x r + xr + 3x r + 4x 3r + 5x 4r + 0 ( x 0 ( ( + x 0 CR,x Notice that C, is the coefficiet of x i the series ( + x 0 C,x ad CR, is the coefficiet of x i the series ( x 0 CR,x α ( + x +x ( 3 5 ( 0 ( 3 5 ( (!! (! x Now, ( ( ( ( +( + ( +! (!!! ( 3 ( ( (! 0! 4 6 ( (!( ( ( 3 ( ( (! ( ( ( (! 4!! 4 Thus, ( + x ( ( x + x 4!

48 48 Combiatorial idetities Some applicatios of the geeralized biomial formula are: Sice for α, β R ad x <, ( + x α ( + x β ( + x α+β the [( ( ( ] [( ( ( ] α α α β β β + x + x + + x + x [( ( ( ] α + β α + β α + β + x + x + 0 ( The coefficiets of x r o the left ad right had sides must be equal Therefore, α ( β ( 0 r + α β ( ( r + + α β ( r( 0 α+β r ad ( α + β r r 0 which is the geeralized Vadermode formula ( ( α β r Sice for α R ad x <, ( + x α ( x α ( x α the [( ( ( ] [( ( ( ] α α α α α α + x + x + x + x 0 0 [( ( ( ] α α α x + x 4 0 Therefore, ( ( ( α 0 ( r α r + α ( { ( ( r α r + + α α 0 r (mod r( 0 ( ( r α r r 0 (mod Thus, r ( ( { α α ( r r 0 0 r (mod r 0 (mod ( r ( α r

49 Chapter 3 Geeratig fuctios ad recurrece relatios 3 Geeratig fuctios 3 Power series Theorem 3 (Covergece Let (a 0 be a sequece of real or complex umbers, 0 a x a power series ad ρ lim sup a The, If ρ 0 the series coverges oly for x 0 If ρ > 0: For x < ρ the series is absolutely coverget For x > ρ the series diverges For x ρ othig ca be said (there are cases i which coverges ad cases i which it does t

50 50 Geeratig fuctios ad recurrece relatios ρ is called the radius of covergece of the series Let r (r 0 be a sequece of real umbers ad S r collectio of subsequeces of r with limit (fiite or ifiite Let L collectio of the limits of the subsequeces i S r It turs out that lim sup r max L ad lim if r mi L Example 3 r 0,, 0,,, r { 0 if eve if odd L {0, } ad lim sup r, lim if r 0 Propositio 33 Assume that r (r 0 has limit, l lim r The every subsequece has limit l Therefore L {l} ad lim sup r l, lim if r l lim if( r lim sup r ad lim sup( r lim if r If r r for all the lim if r lim if r ad lim sup r lim sup r If lim a a l the lim a l Example 34 Let a α, 0,,,, α C Let 0 (αx ρ lim sup α α lim sup α - If α the a for all ad the series is + x + x + which is the geometric series of ratio (ρ 3- If α 0 the the series is + 0x + 0x +, which coverges for all x (ρ 0 Example 35 Let a ( α, 0,,,, α R Notice that a ( a α a lim a α + lim ρ Hece, ( α α + ad, therefore, lim a Thus, lim sup a ad 0 ( α x coverges for x < Furthermore, if α is a positive iteger, α m: ( m 0, ( m,, ( m m, 0, 0, lim a 0 ad ρ m ( m 0 x coverges for all x

51 3 Geeratig fuctios 5 3 Geeratig fuctio of a sequece of umbers Defiitio 36 Let a (a 0 (a 0, a, a, be a sequece of real (complex umbers The geeratig fuctio of a is g a (x a x a 0 + a x + a x + 0 i the real (complex x i which the series coverges 33 Examples (direct problems Example 37 a (C, 0 (C,0, C,, C,,, C,, C,+, C,+, (( ( ( ( ( (,,,,,,, The geeratig fuctio is g a (x C, x 0 C, x 0 0 ( x ( + x, x R Example 38 g a (x CR, x 0 a (CR, 0 ( ( x ( x, x < 0 Example 39 g a (x 0 (( α a 0 ( α x ( + x α, x < Example 30 g a (x a,,, a x + x + x +, x < x 0

52 5 Geeratig fuctios ad recurrece relatios Example 3 a, 0,, 0,, 0, a { 0 (mod 0 (mod a ( + g a (x + x + x 4 + x, x < ( x < Example 3 a, 0, 0,, 0, 0,, 0, 0, a { 0 (mod 3 0 otherwise g a (x + x 3 + x 6 + x 3, x3 < ( x < Example 33 a, 5, 5, 5 3, 5 4, a 5 V R 5, g a (x +5x+5 x +5 3 x x+(5x +(5x 3 + 5x, 5x < ( x < 5 Example 34 a, r, r, r 3, r 4, a r V R r,, r 0 g a (x +rx+r x +r 3 x 3 + +rx+(rx +(rx 3 + rx, rx < ( x < r Example 35 a a 0, a,, a, 0, 0, g a (x a 0 +a x+a x + +a x +0x + +0x + + a 0 +a x+a x + +a x, x R Example 36 a 0!,!,!, 3!, a! g a (x 0! +! x +! x + 3! x3 + e x, x R

53 3 Geeratig fuctios Examples (iverse problems Example 37 g a (x ( + x m α, x < ( ( ( α α α g a (x ( + x m α + x m + 0 Thus, a x m + { ( α 0 (mod m m 0 otherwise ( α x 3m + 3 Example 38 g a (x e x ( x 0!! x +! x4 3! x6 + Thus, a { ( 0 (mod (! 0 otherwise Falta ejemplos 35 Operatios with geeratig fuctios Propositio 39 g ca (x cg a (x, ca (ca 0, ca, g a+b (x g a (x + g b (x 3 g a (xg b (x g c (x, c a 0 b + a b + + a b 0, 0,,, Proof- g ca (x 0 (ca x c 0 a x cg a (x g a (x + g b (x 0 a x + 0 b x 0 (a + b x g a+b (x Defiitio 30 I the last item of the previous propositio c is the covolutio of a ad b, which is writte c a b

54 54 Geeratig fuctios ad recurrece relatios Example 3 Let a (a 0 with geeratig fuctio g a (x defied for x < ρ Let c a 0 + a + + a, 0,,, The, c a b with b (,,, Thus, g c (x g a (xg b (x g a (x( + x + x + ga(x x Example 3 Let d a 0 + a a, 0,,, Let d a b with b ( 0,,, Thus, g b (x + x + (x + ( x ad g d (x ga(x x Example 33 Let r ( ( α 0 + α ( + + α This is a particular case of Example 3 whe a ( α Hece, gr (x ga(x (+xα x x Example 34 (Derivatives Let ρ > 0 ad g a (x 0 a x, x < ρ (radius of covergece The g a is idefiitely derivable i the iterval of covergece ad g a(x a x, g a(x ( a x,, g a (r (0 r r a r ad a r g(r a (0 g (r a r! (x r r a x r Taig x 0, Remar 35 If g a is the geeratig fuctio of a (a 0, a, a, the g (r a (x r r a r + (r + r a r+ x + (r + r a r+ x + is the geeratig fuctio of a (r (a (r 0, a (r, with a (r (r + r a r+ 3 Geeratig fuctios ad combiatorial problems 3 Number of solutios of a equatio Theorem 3 Let B {b, b, } N {0} Z +, C {c, c, } N {0} Z +,, H {h, h, } N {0} Z + be subsets of N {0} Z + Let a umber of solutios of x + x + + x where x B, x C,, x H The the geeratig fuctio of (a 0 is g a (x a x (x b + x b + (x c + x c + (x h + x h + Proof- 0 (x b +x b + (x c +x c + (x h +x h + r B x r x r x r r C r H a x 0

55 3 Geeratig fuctios ad combiatorial problems 55 Remar 3 If x < x b + x b + + x + x + + x b + x b x b + x b + + x Hece, x b + x b + is absolutely coverget I the same way, x c + x c + ad x h + x h + are absolutely coverget Thus, g a is well defied for x < 3 Applicatios ad examples Example 33 Let a umber of solutios of x + +x where x {0,,, },, x {0,,, } The geeratig fuctio of a (a 0 is g a (x (x 0 +x +x + (x 0 +x +x + (x 0 +x +x + (x 0 +x +x + Thus, ( ( x x 0 ( ( ( ( + a ( ( ( x ( + Example 34 Let a umber of ways of gatherig euros with cois or bills of euro, euros ad 5 euros Put x umber of cois of euro, x umber of cois of euros ad x 3 umber of bills of 5 euros The a umber of solutios of x + x + 5x 3 where x, x, x 3 N {0} umber of solutios of y + y + y 3 where y {0,,, }, y {0,, 4, }, y 3 {0, 5, 0, } The geeratig fuctio of (a 0 is g a (x (x 0 +x +x + (x 0 +x +x 4 + (x 0 +x 5 +x 0 + x x x 5 ( + x( x ( x 5 A + x + B x + C ( x + Dx4 + Ex 3 + F x + Gx + H x 5 Now it ca be wored out i order to obtai a Example 35 A die is rolled 0 times Determie the probability the outcome is 30 poits Let x i be the outcome i the i-th time, i 0 Possible outcomes: (x,, x 0 where x i {,, 6}, i 6 There are 6 0

56 56 Geeratig fuctios ad recurrece relatios Favorable outcomes: (x,, x 0 where x + + x 0 30 Set a 30 umber of favorable outcomesumber of solutios of x + + x 0 30 where x i {,, 6}, i 6 g a (x (x +x + +x 6 (0 (x +x + +x 6 (x +x + +x 6 0 x 0 (+x+ +x 5 0 a 30 is the coefficiet of x 30 i g a (x, that is, the coefficiet { of x 0 i ( + x + + x 5 0 Let x 6 S + x + + x 5 The ( xs x 6 x ad S x 6 x Thus, ( 0 a 30 0 ( ( x ( + x + + x ( x 6 0 ( x 0 x ( ( ( 0 ( 0 0 ( x ( 6 l x l l 0 l0 ( ( ( ( 0 + ( ( ( ( ( ( ( ( ( ( ( 0 ( 0 ( 3 ( 0 ( 0 ( 8 ( ( Example 36 I how may ways ca a studet get a total of 8 poits with 6 tass where studets are awarded 0, or 4 poits for each tas? Let T i be the tas i, let x i be the score obtaied i T i ad a the umber of solutios of x + + x 6 where x i {0,, 4}, i 6 We wat to fid a 8 The geeratig fuctio of (a 0 is Three ways of fidig a 8 : (+x +x 4 6 g a (x (x 0 + x + x 4 (6 (x 0 + x + x 4 ( + x + x 4 6 ( x 6 ( + x + x 4 6 r +r +r 3 6 a 8 ( ( 6,, ,3,3 6! 6 x ( x 6 6 ( x 6 ad goig o as i the previous example ( 6 r,r,r 3 r x r x 4r 3 ( 6 r +r +r 3 6 r,r,r 3 x r +4r 3 Thus ! + 6! 3!3! ( + x + x 4 6 ( + x ( + x 6 6 ( x 6 ( 6 0 l0 ( l 0 ( 6 x l 6 0 l0 ( 6 ( l 6! 3!3! + 6 5! 4! (x ( + x 6 ( 6 0 x ( + x x (+l Hece, a 8 ( 6 6 ( 6( ( 4

57 33 Recurrece relatios Recurrece relatios 33 Combiatorial problems ad recurrece relatios Examples Example 33 Let a umber of subsets of {,,, } a 0, a a, Example 33 Let a umber of sequeces of legth formed with 0s ad s where there are ot two cosecutive 0s a 0, a, a a + a, Example 333 Let a umber of ways of tilig a floor with ad tiles a 0, a, a a + a, Example 334 Let a cosecutive itegers umber of subsets of {,,, } i which there are ot two a 0, a, a a + a, Example 335 Let a umber of ways of climbig a stair of steps if i each move we climb or steps a 0, a, a a + a, Example 336 (Tower of Brahma or Tower of Haoi The Tower of Haoi (also called the Tower of Brahma or Lucas Tower is a mathematical game or puzzle It cosists of three rods, ad a umber of diss of differet sizes which ca slide oto ay rod The puzzle starts with the diss i a eat stac i ascedig order of size o oe rod, the smallest at the top, thus maig a coical shape The objective of the puzzle is to move the etire stac to aother rod, obeyig the followig rules: Oly oe dis may be moved at a time Each move cosists of taig the upper dis from oe of the rods ad slidig it oto aother rod, o top of the other diss that may already be preset o that rod

58 58 Geeratig fuctios ad recurrece relatios No dis may be placed o top of a smaller dis Let a the miimum umber of moves to solve the problem whe there are diss a, a a +, Example 337 Let a umber of regios i the plae that are determied by lies that are cocurret i pairs but there are ot three that itersect at a sigle poit a 0, a, a 4, a a +, 3 Example 338 Let T umber of poits that are ecessary to build a triagle of rows as the followig: T T 3 T 3 6 T 4 0 T 5 5 T 6 T 0 0, T T +, Example 339 Let a umber of maps f : {,, } {,, } such that f f idetity Notice that: f(, there are a f( f(, there are a f( f(, there are a Therefore, a, a, a a + ( a, Whe we have a recurrece relatio ad eough iitial values we ca virtually get ay term a of the sequece But, ca we give a explicit formula for a i terms of?

59 33 Recurrece relatios 59 Example 330 Related to Example 338, we saw that T 0 0, T T +, Therefore, T 0 0, T 0 +, T , T , T , Thus, T ( + Sice this ca be writte also as T + ( + ( , T ( + ad T (+ Example 33 Suppose we are give the followig recurrece relatio a 0 a, a αa + β, If α the a a +β, is a arithmetic progressio with commo differece β If β 0 the a αa is a geometric progressio with commo ratio α a 0 a, a αa + β, a α(αa + β + β α a + β( + α, a 3 α(α a + β( + α + β α 3 a + β( + α + α By iductio o, a α + β( + α + α + + α { α + β α α α a + β α Example 33 Let a 0 a, a b, a αa + βa,, α, β costats ad β 0 a αa + βa 0 αb + βa, a 3 αa + βa α(αb + βa + βb b(α + β + αβa, a 4 αa 3 + βa α(b(α + β + αβa + β(αb + βa b(α 3 + βα + a(α β + β It is ot as simple as the previous example We have to fid aother method 33 Geeratig fuctios ad recurrece relatios The method is, give the recurrece relatio fid the geeratig fuctio i order to obtai a We see it with some examples:

60 60 Geeratig fuctios ad recurrece relatios Example 333 Let a 0 a, a αa +β, Let g(x a 0 +a x+a x +a 3 x 3 + be the geeratig fuctio of (a 0 Suppose x < Thus, g(x a 0 + (αa 0 + βx + (αa + βx + (αa + βx 3 + a 0 + αx(a 0 + a x + a x + + βx( + x + x + a 0 + αxg(x + βx x g(x a 0 + β x x αx a αx + βx ( x( αx βx If α, βx( x βx ( x 0 βx a Moreover, a a + β, 0 If α, β A( α ad A had, βx ( x( αx a αx x βx ( x( αx A x + β 0 a 0 x Thus, g(x B αx ( ( x 0 ( + βx+ 0 (a + βx Therefore, Thus, βx A( αx + B( x For x, For x, β B( Thus, B β β O the other α α α α α A + B A α x αx 0 x +B 0 α x 0 (A+Bα x Moreover, 0 aα x Hece, g(x 0 (A + (B + aα x ad a A + (B + aα β α + ( β α + aα aα + β( α α α Example 334 Let a 0 a, a b, a αa + βa,, α, β costats ad β 0 Let g(x a 0 + a x + a x + a 3 x 3 + be the geeratig fuctio of (a 0, x Dg Thus, g(x a 0 + a x + (αa + βa 0 x + (αa + βa x 3 + a 0 +a x+αx(a x+a x + +βx (a 0 +a x+ a 0 +a x+αx(g(x a 0 +βx g(x Thus, g(x a 0 + (a αa 0 x αx βx If α, β, a 0, a the a a + a umber of ways to tile a floor with ad tiles The geeratig fuctio is g(x x + x ( + x( x A + x + B x A ( x + B 0 x 0 (A( + B x 0

61 33 Recurrece relatios 6 O the oe had, A( x + B( + x so 3B ad B 3, ad 3A, A 3 Thus, g(x 0 3 (( + + x Thus, a ( Example 335 a 0 a, a b, a c, a αa + βa + γa 3, 3, α, β, γ Z, γ 0 g(x a 0 +a x+a x + a 0 +a x+a x +(αa +βa +γa 0 x 3 +(αa 3 +βa +γa x 4 + a 0 + a x + a x + αa x 3 + αa 3 x βa x 3 + βa x γa 0 x 3 + γa x 4 + Thus, a 0 + a x + a x + αx(g(x a 0 a x + βx (g(x a 0 + γx 3 g(x g(x a 0 + a x + a x + αx( a 0 a x + βx ( a 0 αx βx γx 3 a + (b αax + (c bα aβx αx βx γx 3 Example 336 a 0 a, a b, a αa + βa + γ, g(x a 0 + a x + a x + a 0 + a x + (αa + βa 0 + γx + (αa + βa + γx 3 + Thus, a 0 + a x + αx(a x + a x + + βx (a 0 + a x + + γx ( + x + If γ (γ 0 the a 0 + a x + αx(g(x a 0 + βx g(x + γx x g(x a 0 + (a αa 0 x + γ x x αx βx g(x a 0 + (a αa 0 x + x g γ (x αx βx 333 Other methods (algebraic method Let a 0 a, a b, a αa + βa, S {(x 0 : x αx + βx } S is a vector space over C

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

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

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

CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo 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

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

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

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

(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

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

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 +

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 + 62. Power series Defiitio 16. (Power series) Give a sequece {c }, the series c x = c 0 + c 1 x + c 2 x 2 + c 3 x 3 + is called a power series i the variable x. The umbers c are called the coefficiets of

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

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

Course : Algebraic Combinatorics

Course : Algebraic Combinatorics Course 8.32: Algebraic Combiatorics Lecture Notes # Addedum by Gregg Musier February 4th - 6th, 2009 Recurrece Relatios ad Geeratig Fuctios Give a ifiite sequece of umbers, a geeratig fuctio is a compact

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

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

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

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

Generating Functions. 1 Operations on generating functions

Generating Functions. 1 Operations on generating functions Geeratig Fuctios The geeratig fuctio for a sequece a 0, a,..., a,... is defied to be the power series fx a x. 0 We say that a 0, a,... is the sequece geerated by fx ad a is the coefficiet of x. Example

More information

Review Problems 1. ICME and MS&E Refresher Course September 19, 2011 B = C = AB = A = A 2 = A 3... C 2 = C 3 = =

Review Problems 1. ICME and MS&E Refresher Course September 19, 2011 B = C = AB = A = A 2 = A 3... C 2 = C 3 = = Review Problems ICME ad MS&E Refresher Course September 9, 0 Warm-up problems. For the followig matrices A = 0 B = C = AB = 0 fid all powers A,A 3,(which is A times A),... ad B,B 3,... ad C,C 3,... Solutio:

More information

SOLVED EXAMPLES

SOLVED EXAMPLES Prelimiaries Chapter PELIMINAIES Cocept of Divisibility: A o-zero iteger t is said to be a divisor of a iteger s if there is a iteger u such that s tu I this case we write t s (i) 6 as ca be writte as

More information

The multiplicative structure of finite field and a construction of LRC

The multiplicative structure of finite field and a construction of LRC IERG6120 Codig for Distributed Storage Systems Lecture 8-06/10/2016 The multiplicative structure of fiite field ad a costructio of LRC Lecturer: Keeth Shum Scribe: Zhouyi Hu Notatios: We use the otatio

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

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

1 Counting and Stirling Numbers

1 Counting and Stirling Numbers 1 Coutig ad Stirlig Numbers Natural Numbers: We let N {0, 1, 2,...} deote the set of atural umbers. []: For N we let [] {1, 2,..., }. Sym: For a set X we let Sym(X) deote the set of bijectios from X to

More information

Introduction To Discrete Mathematics

Introduction To Discrete Mathematics Itroductio To Discrete Mathematics Review If you put + pigeos i pigeoholes the at least oe hole would have more tha oe pigeo. If (r + objects are put ito boxes, the at least oe of the boxes cotais r or

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

MT5821 Advanced Combinatorics

MT5821 Advanced Combinatorics MT5821 Advaced Combiatorics 9 Set partitios ad permutatios It could be said that the mai objects of iterest i combiatorics are subsets, partitios ad permutatios of a fiite set. We have spet some time coutig

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

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

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

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

Tutorial F n F n 1

Tutorial F n F n 1 (CS 207) Discrete Structures July 30, 203 Tutorial. Prove the followig properties of Fiboacci umbers usig iductio, where Fiboacci umbers are defied as follows: F 0 =0,F =adf = F + F 2. (a) Prove that P

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

Exercises 1 Sets and functions

Exercises 1 Sets and functions Exercises 1 Sets ad fuctios HU Wei September 6, 018 1 Basics Set theory ca be made much more rigorous ad built upo a set of Axioms. But we will cover oly some heuristic ideas. For those iterested studets,

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

We are mainly going to be concerned with power series in x, such as. (x)} converges - that is, lims N n

We are mainly going to be concerned with power series in x, such as. (x)} converges - that is, lims N n Review of Power Series, Power Series Solutios A power series i x - a is a ifiite series of the form c (x a) =c +c (x a)+(x a) +... We also call this a power series cetered at a. Ex. (x+) is cetered at

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

(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

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

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

Solutions to Math 347 Practice Problems for the final

Solutions to Math 347 Practice Problems for the final Solutios to Math 347 Practice Problems for the fial 1) True or False: a) There exist itegers x,y such that 50x + 76y = 6. True: the gcd of 50 ad 76 is, ad 6 is a multiple of. b) The ifiimum of a set is

More information

[ 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.

[ 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. [ 11 ] 1 1.1 Polyomial Fuctios 1 Algebra Ay fuctio f ( x) ax a1x... a1x a0 is a polyomial fuctio if ai ( i 0,1,,,..., ) is a costat which belogs to the set of real umbers ad the idices,, 1,...,1 are atural

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

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

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

Objective Mathematics

Objective Mathematics . If sum of '' terms of a sequece is give by S Tr ( )( ), the 4 5 67 r (d) 4 9 r is equal to : T. Let a, b, c be distict o-zero real umbers such that a, b, c are i harmoic progressio ad a, b, c are i arithmetic

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

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

Solutions. tan 2 θ(tan 2 θ + 1) = cot6 θ, Solutios 99. Let A ad B be two poits o a parabola with vertex V such that V A is perpedicular to V B ad θ is the agle betwee the chord V A ad the axis of the parabola. Prove that V A V B cot3 θ. Commet.

More information

(k) x n. n! tk = x a. (i) x p p! ti ) ( q 0. i 0. k A (i) n p

(k) x n. n! tk = x a. (i) x p p! ti ) ( q 0. i 0. k A (i) n p Math 880 Bigraded Classes & Stirlig Cycle Numbers Fall 206 Bigraded classes. Followig Flajolet-Sedgewic Ch. III, we defie a bigraded class A to be a set of combiatorial objects a A with two measures of

More information

Complex Numbers Solutions

Complex Numbers Solutions Complex Numbers Solutios Joseph Zoller February 7, 06 Solutios. (009 AIME I Problem ) There is a complex umber with imagiary part 64 ad a positive iteger such that Fid. [Solutio: 697] 4i + + 4i. 4i 4i

More information

Combinatorics. Stephan Wagner

Combinatorics. Stephan Wagner Combiatorics Stepha Wager Jue 207 Chapter Elemetary eumeratio priciples Sequeces Theorem. There are differet sequeces of legth that ca be formed from elemets of a set X cosistig of elemets (elemets are

More information

REGULARIZATION OF CERTAIN DIVERGENT SERIES OF POLYNOMIALS

REGULARIZATION OF CERTAIN DIVERGENT SERIES OF POLYNOMIALS REGULARIZATION OF CERTAIN DIVERGENT SERIES OF POLYNOMIALS LIVIU I. NICOLAESCU ABSTRACT. We ivestigate the geeralized covergece ad sums of series of the form P at P (x, where P R[x], a R,, ad T : R[x] R[x]

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

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

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

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

6.3 Testing Series With Positive Terms

6.3 Testing Series With Positive Terms 6.3. TESTING SERIES WITH POSITIVE TERMS 307 6.3 Testig Series With Positive Terms 6.3. Review of what is kow up to ow I theory, testig a series a i for covergece amouts to fidig the i= sequece of partial

More information

Lecture Notes for CS 313H, Fall 2011

Lecture Notes for CS 313H, Fall 2011 Lecture Notes for CS 313H, Fall 011 August 5. We start by examiig triagular umbers: T () = 1 + + + ( = 0, 1,,...). Triagular umbers ca be also defied recursively: T (0) = 0, T ( + 1) = T () + + 1, or usig

More information

SEQUENCE AND SERIES NCERT

SEQUENCE AND SERIES NCERT 9. Overview By a sequece, we mea a arragemet of umbers i a defiite order accordig to some rule. We deote the terms of a sequece by a, a,..., etc., the subscript deotes the positio of the term. I view of

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

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

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

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

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

Chapter 6 Infinite Series

Chapter 6 Infinite Series Chapter 6 Ifiite Series I the previous chapter we cosidered itegrals which were improper i the sese that the iterval of itegratio was ubouded. I this chapter we are goig to discuss a topic which is somewhat

More information

MAS111 Convergence and Continuity

MAS111 Convergence and Continuity MAS Covergece ad Cotiuity Key Objectives At the ed of the course, studets should kow the followig topics ad be able to apply the basic priciples ad theorems therei to solvig various problems cocerig covergece

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

Complex Analysis Spring 2001 Homework I Solution

Complex Analysis Spring 2001 Homework I Solution Complex Aalysis Sprig 2001 Homework I Solutio 1. Coway, Chapter 1, sectio 3, problem 3. Describe the set of poits satisfyig the equatio z a z + a = 2c, where c > 0 ad a R. To begi, we see from the triagle

More information

The Boolean Ring of Intervals

The Boolean Ring of Intervals MATH 532 Lebesgue Measure Dr. Neal, WKU We ow shall apply the results obtaied about outer measure to the legth measure o the real lie. Throughout, our space X will be the set of real umbers R. Whe ecessary,

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

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

Lesson 10: Limits and Continuity

Lesson 10: Limits and Continuity www.scimsacademy.com Lesso 10: Limits ad Cotiuity SCIMS Academy 1 Limit of a fuctio The cocept of limit of a fuctio is cetral to all other cocepts i calculus (like cotiuity, derivative, defiite itegrals

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

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

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

Math 113 Exam 3 Practice

Math 113 Exam 3 Practice Math Exam Practice Exam 4 will cover.-., 0. ad 0.. Note that eve though. was tested i exam, questios from that sectios may also be o this exam. For practice problems o., refer to the last review. This

More information

Ma 530 Infinite Series I

Ma 530 Infinite Series I Ma 50 Ifiite Series I Please ote that i additio to the material below this lecture icorporated material from the Visual Calculus web site. The material o sequeces is at Visual Sequeces. (To use this li

More information

Discrete Mathematics for CS Spring 2005 Clancy/Wagner Notes 21. Some Important Distributions

Discrete Mathematics for CS Spring 2005 Clancy/Wagner Notes 21. Some Important Distributions CS 70 Discrete Mathematics for CS Sprig 2005 Clacy/Wager Notes 21 Some Importat Distributios Questio: A biased coi with Heads probability p is tossed repeatedly util the first Head appears. What is the

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

V. Adamchik 1. Recursions. Victor Adamchik Fall of x n1. x n 2. Here are a few first values of the above sequence (coded in Mathematica)

V. Adamchik 1. Recursions. Victor Adamchik Fall of x n1. x n 2. Here are a few first values of the above sequence (coded in Mathematica) V. Adamchik Recursios Victor Adamchik Fall of 2005 Pla. Covergece of sequeces 2. Fractals 3. Coutig biary trees Covergece of Sequeces I the previous lecture we cosidered a cotiued fractio for 2 : 2 This

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

Sequence A sequence is a function whose domain of definition is the set of natural numbers.

Sequence A sequence is a function whose domain of definition is the set of natural numbers. Chapter Sequeces Course Title: Real Aalysis Course Code: MTH3 Course istructor: Dr Atiq ur Rehma Class: MSc-I Course URL: wwwmathcityorg/atiq/fa8-mth3 Sequeces form a importat compoet of Mathematical Aalysis

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

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

subcaptionfont+=small,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0 subcaption ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, 2/16/2016 subcaptiofot+=small,labelformat=pares,labelsep=space,skip=6pt,list=0,hypcap=0 subcaptio ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, /6/06. Self-cojugate Partitios Recall that, give a partitio λ, we may

More information

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 22

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 22 CS 70 Discrete Mathematics for CS Sprig 2007 Luca Trevisa Lecture 22 Aother Importat Distributio The Geometric Distributio Questio: A biased coi with Heads probability p is tossed repeatedly util the first

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

Sequences and Series of Functions

Sequences and Series of Functions Chapter 6 Sequeces ad Series of Fuctios 6.1. Covergece of a Sequece of Fuctios Poitwise Covergece. Defiitio 6.1. Let, for each N, fuctio f : A R be defied. If, for each x A, the sequece (f (x)) coverges

More information

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

6 Integers Modulo n. integer k can be written as k = qn + r, with q,r, 0 r b. So any integer. 6 Itegers Modulo I Example 2.3(e), we have defied the cogruece of two itegers a,b with respect to a modulus. Let us recall that a b (mod ) meas a b. We have proved that cogruece is a equivalece relatio

More information

3sin A 1 2sin B. 3π x is a solution. 1. If A and B are acute positive angles satisfying the equation 3sin A 2sin B 1 and 3sin 2A 2sin 2B 0, then A 2B

3sin A 1 2sin B. 3π x is a solution. 1. If A and B are acute positive angles satisfying the equation 3sin A 2sin B 1 and 3sin 2A 2sin 2B 0, then A 2B 1. If A ad B are acute positive agles satisfyig the equatio 3si A si B 1 ad 3si A si B 0, the A B (a) (b) (c) (d) 6. 3 si A + si B = 1 3si A 1 si B 3 si A = cosb Also 3 si A si B = 0 si B = 3 si A Now,

More information

Course : Algebraic Combinatorics

Course : Algebraic Combinatorics Course 18.312: Algebraic Combiatorics Lecture Notes # 18-19 Addedum by Gregg Musier March 18th - 20th, 2009 The followig material ca be foud i a umber of sources, icludig Sectios 7.3 7.5, 7.7, 7.10 7.11,

More information

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

Lecture 6 April 10. We now give two identities which are useful for simplifying sums of binomial coefficients. Lecture 6 April 0 As aother applicatio of the biomial theorem we have the followig. For 0. 0 I other words startig with the secod row ad goig dow if we sum alog the rows alteratig sig as we go the result

More information

SEQUENCES AND SERIES

SEQUENCES AND SERIES Sequeces ad 6 Sequeces Ad SEQUENCES AND SERIES Successio of umbers of which oe umber is desigated as the first, other as the secod, aother as the third ad so o gives rise to what is called a sequece. Sequeces

More information

3. Z Transform. Recall that the Fourier transform (FT) of a DT signal xn [ ] is ( ) [ ] = In order for the FT to exist in the finite magnitude sense,

3. Z Transform. Recall that the Fourier transform (FT) of a DT signal xn [ ] is ( ) [ ] = In order for the FT to exist in the finite magnitude sense, 3. Z Trasform Referece: Etire Chapter 3 of text. Recall that the Fourier trasform (FT) of a DT sigal x [ ] is ω ( ) [ ] X e = j jω k = xe I order for the FT to exist i the fiite magitude sese, S = x [

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

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

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

Enumerative & Asymptotic Combinatorics

Enumerative & Asymptotic Combinatorics C50 Eumerative & Asymptotic Combiatorics Notes 4 Sprig 2003 Much of the eumerative combiatorics of sets ad fuctios ca be geeralised i a maer which, at first sight, seems a bit umotivated I this chapter,

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

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

11. FINITE FIELDS. Example 1: The following tables define addition and multiplication for a field of order 4.

11. FINITE FIELDS. Example 1: The following tables define addition and multiplication for a field of order 4. 11. FINITE FIELDS 11.1. A Field With 4 Elemets Probably the oly fiite fields which you ll kow about at this stage are the fields of itegers modulo a prime p, deoted by Z p. But there are others. Now although

More information

Lecture notes for Enumerative Combinatorics

Lecture notes for Enumerative Combinatorics Lecture otes for Eumerative Combiatorics Aa de Mier Uiversity of Oxford Michaelmas Term 2004 Cotets Subsets, multisets, ad balls-i-bis 3. Words ad permutatios............................. 3.2 Subsets ad

More information