Discrete-math 9

1

How many even numbers with 6 different digits exist?Solution:1.Number of numbers without digit 0: 4 options for the last digit and 5 places with 8 digits left: 48!3!2.0 is the last digit: Five places for 9 digits: 9!4!3.0 is the second, third, fourth or fifth digit, for each case:Last digit has 4 optionsFour digits left have 8 options and 4 places448!4!The final answer: 48!3!+9!4!+448!4!=68880

2

How many 7 letter words can you construct using "a, b, c, d" such thatletters "a" and "b" appear exactly onceSolution:Number of ways to place one "a" and one "b" in a 7 letter word is: 765 places left will be filled with "c" and "d", so it’s a "without order, with repetition"25So the final answer is: 7625=4232=1344

3

What is the sum of all 3 digit numbers that are constructed from digits "7, 5, 3, 1"Each digit can appear more than onceSolution:Number of all such numbers is (without order, with repetition): 43=64If we fix any given digit, then the number of options is 42=16Sum of hundreds is (7+5+3+1)16100=25600Sum of tens is (7+5+3+1)1610=2560Sum of ones is (7+5+3+1)161=256Sum of all such numbers is:25600+2560+256=28416

4

Let A={1,2,,10},B={a,b,c,d,e,f}

4a

What is the size of C={g|g:AB}Solution:C=BA|C|=|BA|=610

4b

What is the size of D={h|h:BA}Solution:D=AB|D|=|AB|=106

4c

What is the size of E={g|g:AB,g is injective}Solution:|A|>|B|Number of injective functions from A to B is zero

4d

What is the size of F={h|h:BA,h is injective}Solution:We have 6 sources and 10 imagesWe need to choose exactly 6 different images in order for the function to be injectiveThis is "with order, without repetition" formula which is n!(nk)!The final answer is 10!(106)!=10!4!

5

Let A be a set of n elements

5a

How many relations there are on A?Solution:|A×A|=n2Relation is a subset of A×ANumber of relations is a number of ways to choose a subset of A×ANumber of relations is equal to |P(A×A)|=2n2

5b

How many reflexive relations there are on A?Solution:Reflexive relations are supersets of IdANumber of pairs in IdA is nNumber of reflexive relations is a number of ways to choose a subset ofA×AIdAWhich is |P(A×AIdA)|=2|A×AIdA|=2n2n

5c

How many symmetric relations there are on A?Solution:Number of pairs with equal elements is nNumber of pairs with different elements is n(n1)For each pair with different elements we will automatically choose it’s symmetric oneNumber of symmetric pair choices is n(n1)2Number of pairs to choose from is n(n1)2+n=n(n+1)2Number of symmetric relations on A is 2n(n+1)/2

5d

How many total order relations there are on A?Solution:Let R be a total order relation on ALet us construct a "sorted" chain of elements of AFor each i[1,n]:aiA:1.If chain is empty, place ai anywhere2.If aiR "the leftmost element of the chain", then place ai to the left e.g. ai<aj<3.j[1,n]:If aiRajcontinue, otherwise place ai to the right of aje.g. <aj<ai<This will result in a unique "sorted" chain of length nai<aj<ak<alNumber of such ordered chains is a "with order, without repetition", which is n!Number of total order relations on A is n!

6

2 classes went to a school trip. With them went 6 mothers and 8 fathers.

6a

How many ways there are to choose 5 parents responsible for food,such that they are 3 mothers and 2 fathers?Solution:We need to choose 3 out of 6 mothers and 2 out of 8 fatherswhich is (63)(82)

6b

How many ways there are to choose 3 parents to be medics?Solution:Choosing 3 different parents from the total of 14 parents is: 14!(143)!=14!11!

6c

How many ways there are to choose two groups of 7 parents,such that there is at least one mother in each group?Solution:Number of ways to choose two groups is: (147)Number of ways to choose a group that has no mothers isthe number of ways to choose 7 out of 8 fathers: (87)Groups of parents are different, so we will count this number twiceNumber of ways to choose two groups such that there is at least one mother is:(147)2(87)=(147)28

7a

How many ways there are to sit 2 women and 4 men on a bench,such that 2 women sit next to each other?Solution:Let us count 2 women as one "option"Then we have to choose a sit for each of 5 options: 5!Number of ways to sit 2 women is: 2!So the final answer is: 5!2!=1202=240

7b

How many ways there are to sit 2 women and 4 men on a bench,such that 4 men sit next to each other?Solution:Let us count 4 men as one "option:Then we have to choose a sit for each of 3 options: 3!Number of ways to sit 4 men is: 4!So the final answer is: 3!4!=624=144