0% found this document useful (0 votes)
115 views10 pages

Counting HW

1. The document provides a study guide for a discrete mathematics course covering topics like counting problems, permutations, combinations, and binomial coefficients. 2. It contains 25 problems involving counting the number of possible outcomes for situations like license plate combinations, string arrangements with repeating or unique letters, functions between sets, arrangements of students and adults in lines, and distributing items among groups. 3. It also covers combinations and permutations with repetition like choosing donuts or croissants from multiple varieties, solving equations with restricted integer variables, and arranging letters into strings. There are an additional 12 problems on these topics.

Uploaded by

simo sima
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views10 pages

Counting HW

1. The document provides a study guide for a discrete mathematics course covering topics like counting problems, permutations, combinations, and binomial coefficients. 2. It contains 25 problems involving counting the number of possible outcomes for situations like license plate combinations, string arrangements with repeating or unique letters, functions between sets, arrangements of students and adults in lines, and distributing items among groups. 3. It also covers combinations and permutations with repetition like choosing donuts or croissants from multiple varieties, solving equations with restricted integer variables, and arranging letters into strings. There are an additional 12 problems on these topics.

Uploaded by

simo sima
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

MTH1304 Fall 2017

Counting Study Guide


Basic Counting Problems (using Multiplication principle, Ad-
dition principle, combinations, and permutations)
A note on notation: Please don’t use the P (n, k) and the C(n, k) nota-
tions. Write n(n − 1)(n − 2)(n − 3)...(n − k + 1) instead of P (n, k), and write
n
k instead of C(n, k).

1. How many license plates can be made using either 3 digits followed by
3 letters or three letters followed by 3 digits?

2. How many license plates can be made using either 3 letters followed
by 3 digits or 4 letters followed by 2 digits?

3. How many strings of eight English letters are there

(a) if letters can be repeated?


(b) if no letter can be repeated?
(c) that start with X, if letters can be repeated?
(d) that start with X, if no letter can be repeated?
(e) that start and end with X, if letters can be repeated?
(f) that start with the letters BO (in that order), if letters can be
repeated?
(g) that start and end with the letters BO (in that order), if letters
can be repeated?
(h) that start or end with the letters BO (in that order), if letters
can be repeated?
(i) that don’t start with BO, if letters can be repeated?
(j) that neither start with BO and nor end with BO?
(k) that don’t contain the letter C, if letters can be repeated?
(l) that don’t contain C and D at the same time (so the string may
not contain either, may contain C without having a D, or may
contain D without having a C), if letters can be repeated?
(m) that contain exactly one Z, if letters can be repeated?

1
4. How many functions are there from the set {a, b, c, d, e} to the set
{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}?

5. How many of the functions in above question are one-to-one?

6. How many functions are there from a set with 10 elements to a set
with 3 elements?

7. How many of the functions in above question are one-to-one?

8. Each student in the discrete maths class will be given a final grade of
A, B, C or D. If the class has 23 students, how many possible final
grade outcomes are there for the whole class?

9. How many 3-permutations are there from the set {a, b, c, d, e}? List
all of them.

10. How many 4-combinations are there from the set {a, b, c, d, e, f }? List
all of them.

11. Five runners take part in a race. Assuming there are no ties, how
many different outcomes of the race are possible (when looking at the
order that the contestants finish the race in)?

12. How many bit strings of length 12 contain

(a) exactly 3 1’s?


(b) at most 3 1’s?
(c) at least 3 1’s?
(d) an equal number of 0’s and 1’s?

13. We will be constructing strings from the alphabet W, X, Y, Z in this


problem. Call such strings WXYZ strings. How many WXYZ strings
of length 8 contain

(a) exactly 3 W’s?


(b) at most 3 W’s?
(c) exactly 3 W’s and exactly 2 Z’s?
(d) are palindromic (i.e. read the same forward and backward, for
example XXWZZWXX)?

14. How many permutations of the letters ABCDEFGH contain

2
(a) the string ED?
(b) the string BA and FGH?
(c) the string DC and CGH?
(d) the string DC and CAD?

15. How many ways can we select 6 letters from the set {A, B, C, D, E, F, G, H, I, J}
if it is specified that E can only be selected if F is also chosen? Note
that it is not saying that you have to have E, but if you have E you
must have F as well.

16. Mathematics department at a university has 10 men and 15 women.


A committee of six members needs to be made. How many different
committees can be made if the committee has to have more women
than men?

17. How many ways are there for 10 adults and 6 children to stand in a
line so that no two children stand next to each other? [Hint: First
position the adults and then consider the placement of children.]

18. How many positive integers with exactly four decimal digits, that is,
positive integers between 1000 and 9999 inclusive,

(a) are divisible by 9?


(b) are even?
(c) have distinct digits?
(d) are not divisible by 3?
(e) are divisible by 5 or 7?
(f) are not divisible by either 5 or 7?
(g) are neither divisible by 5 nor by 7?
(h) are divisible by 5 but not by 7?
(i) are divisible by 5 and 7?

19. You should think how you would do the above questions if instead of
5 and 7, the numbers are 8 and 12.

20. For each of the expressions below, come up with a simple counting
problem to which it is the answer:

(a) 2n

3
(b) 3n
(c) 4n
(d) 15n
(e) k n
(f) 5!
(g) n!
n
(h) 3
n n
(i) 3 + 4
n
(j) k
n nk

(k)
(l) 12 ∗ 11 ∗ 10 ∗ 9 ∗ 8 ∗ 7
(m) n(n − 1)(n − 2)(n − 3)(n − 4)...(n − 12)

21. Count the number of ways to get from the lower left corner of the grid
(given below) to the upper right corner. Along the route, you are only
allowed to take steps right or up.

22. Solve the above problem for a general m × n grid. The grid given
above is a 3 × 5 grid.

23. (Slightly more challenging problem) Count the number of all rectangles
you see in the above grid.

24. Solve the above problem for a general m × n grid.

25. A discrete maths class has 30 students. The professor has asked each
student to pick a length 10 string of English letters as the student’s
class name. How many outcomes are possible?

26. Under the above scenario, how many outcomes are possible if the pro-
fessor doesn’t allow any two students to pick the same class name?

4
27. Under the above scenario, if we don’t care which student has which
string, how many outcomes are possible? The restriction of uniqueness
of class name string is still applicable here. In other words, if the
professor just writes down the 30 strings on a piece of paper (the
sequence in which these 30 strings are written doesn’t matter), how
many outcomes are possible? Being precise mathematically, one would
say, how many possible sets of 30 such strings are possible?

Combinations and Permutations with Repetition


1. How many ways are there to choose a dozen donuts from the 21 vari-
eties at a donut shop?
2. A croissant shop carries following types of croissants: plain, almond,
chocolate, apple, apricot, and cherry. How many ways are there to
choose
(a) a dozen croissants?
(b) 25 croissants?
(c) 24 croissants with at least two of each kind?
(d) 24 croissants with no more than 3 plain croissants?
(e) 24 croissants with at least five plain croissants and at least three
almond croissants?
(f) 24 croissants with at least five plain croissants or at least three
almond croissants?
3. How many combinations of pennies, nickels, dimes and quarters can a
coin jar contain if it has 20 coins in it?
4. How many solutions are there to the equation w + x + y + z = 17 if
each of these variables can be an integer with a value of 0 or more?
5. How many solutions are there to the equation w +x+y +z = 17 if each
of these variables can be an integer with the restrictions 3 ≤ x, 6 ≤ y?
6. How many solutions are there to the equation w + x + y + z = 17 if
each of these variables can be an integer with the restrictions 3 ≤ x
or 6 ≤ y? [Hint: Be careful here ... how does this differ from the one
above?]
7. How many solutions are there to the equation w + x + y + z = 17 if
each of these variables can be an integer with the restrictions w ≤ 8?

5
8. How many strings can be made from the letters in ALAKHAWAY-
NUNIVERSITY if all the letters have to be used?

9. How many 2-word strings can be made from the letters in ALAKHAWAY-
NUNIVERSITY if all the letters have to be used? [Hint: first make a
1-word string and then figure out how many ways can you split it into
a 2-word string.]

10. How many 3-word strings can be made from the letters in ALAKHAWAY-
NUNIVERSITY if all the letters have to be used?

11. A student bought a box of granola bars that contains a total of 12


bars with following number of each kind: 3 cherry bars, 5 vanilla bars,
2 peanut bars and 2 raisin bars. If he eats one bar every day, in how
many different orders can these 12 bars be consumed by him?

12. A father brought home 10 chocolates and 8 mint candies for his 3
children. The chocolates are all the same, and all the mint candies are
the same as well. In how many ways can he distribute these among
his children under

(a) no restriction on the distributions?


(b) the restriction that each child must get at least one chocolate and
at least one candy?
(c) under the restriction that each child must get at least one choco-
late?
(d) (don’t do this one now but something to think about) under the
restriction that each child must get at least one item (whether
it is a chocolate or a candy)? Is there an easy way to calculate
this?

Binomial Coefficients, Pascal’s Triangle, and Binomial Theo-


rem
1. For each of the following, find the coefficient of the indicated term or
terms in the expansion of the given binomial:

(a) x2 y 2 in (x + y)4 ?
(b) x5 y in (x + y)6 ?
(c) x3 y 9 in (x − y)12 ?

6
(d) x5 y 4 in (x − y)9 ?
(e) x6 y 4 in (x + 2y)10 ?
(f) x6 y 2 in (3x + y)13 ?
(g) x7 y 2 in (2x − y)9 ?

2. Write the 7th row of Pascal’s triangle (without generating the whole
triangle from the top)?

3. Expand (x + y)7 .

4. Expand (x − 2y)4 .

5. Prove the following by using the Binomial Theorem:


n n n n
(a) 0 + 1 + 2 +...+ n = 2n (i.e. the sum of the coefficients of
the nth row of the Pascal’s Triangle is 2n ).
n n n n n

(b) 0 − 1 + 2 −. . .+(−1) n = 0 (i.e. the alternating plus-minus
sum of the coefficients of the nth row of the Pascal’s Triangle is
0).
n n n n
(c) 20 0 + 21 1 + 22 2 + . . . + 2n n = 3n .

6. Prove the following combinatorially, i.e. using a counting argument.


n n−1 n−1
(a) k = k−1 + k .
n k  n n−r
(b) k r = r k−r .
n n−1 n−2 k−1
(c) k = k−1 + k−1 + . . . + k−1 .
20 n0 + 21 n1 + 22 n2 + . . . + 2n nn= 3n . (Hint: Consider making
   
(d)
ternary strings of length n, i.e. strings using the characters 0, 1,
2. Then, count them by number of zeroes in them.)
n 2 2n
(e) 2 2 +n = 2 .
n 2 2 2 2
(f) 2n
n = 0 + n1+ n2 + . . . + nn . (Hint: Consider n women
and n men and choosing n people from these 2n people.)
n m m+n
(g) 2 + 2 ≤ 2 .

7
Principle of Inclusion-Exclusion
1. The following information was found about a group of students at AUI:
38 played basketball
21 played tennis
56 played football
8 played basketball and tennis
17 played basketball and football
13 played tennis and football
5 played all three
72 did not play any of these 3 sports
How many students are in this group? Hint: Draw a Venn diagram to
help you.

2. Count the number of strings of length 8 using the English alphabet


that contain a vowel (i.e. A, E, I, O or U) in the 1st, 5th, or 7th place.

3. Count the number of binary strings of length 12 that start with a 001,
or end with a 001, or have a 001 starting at the 6th place.

4. Count the number of binary strings of length 12 that start with a 001,
or end with a 001, or have a 001 starting at the 8th place.

5. Count the number of integers from 1 to 1000, including 1 and 1000,


that are not divisible by any of 5,6 and 8.

6. Count the number of permutations of 123456 that are derangements.

7. Count the number of permutations of 123456 that don’t have a 1 in


the first place, don’t have a 2 in the second place, don’t have a 5 in
the 5th place, and don’t have a 6 in the sixth place.

8. Count the number of partitions of {1, 2, 3, 4, 5} where 1 is with 2 or 3


is with 4.

9. Count the number of solutions to w + x + y + z = 19 where none of


the variables is more than 5 in value.

10. Count the number of solutions to w + x + y + z = 19 where none of


the variables is more than 3 in value.

11. Count the number of functions from {a, b, c, d, e, f } to {1, 2, 3, 4, 5}


that are onto.

8
12. Count the number of functions from {a, b, c, d, e, f } to {1, 2, 3, 4, 5}
that don’t contain 1 in the range, or don’t contain 2 in the range, or
don’t contain 3 in the range.

13. Count the number of selections of size 6 from {1, 2, 3, · · · , 10} that
don’t contain 1 or 2 or 3 or 4.

14. Count the number of permutations of M,A,T,H,I,S,F,U,N in which


none of MATH, IS and FUN show up. So, for example MATHISFUN
is not allowed, and neither are SIFMATHNU or IFUNTAHMS.

15. Count the number of permutations of AABBCCDDEEFFGGHHIIJJ


that don’t have any symbol next to a copy of itself.

16. For each of the grids shown here, count the number of grid paths
from Start to Finish that don’t go through any of the labelled interior
points.

Pigeonhole Principle
1. What’s the minimum number of people needed in a group to guarantee
that at least two people in the group have their last names begin with
the same letter of English alphabet?

2. What’s the minimum number of people needed in a group to guarantee


that at least 8 people in the group have their last names begin with
the same letter of English alphabet?

3. What’s the minimum number of people needed in a group to guarantee


that at least 8 people in the group have the same first name initial and
have the same last name initial?

4. How many students should a course section contain to ensure that


there are at least 6 of at least one class (first-years, sophomores, ju-
niors, seniors)?

9
Generating Combinations and Permutations in Lexicographi-
cal Order
1. Put these permutations of {1, 2, 3, 4, 5, 6} in lexicographic order: 234561,
231456, 165432, 156423, 543216, 541236, 231465, 314562, 432561,
654321, 654312, 435612.

2. For each of these permutations, find the next one and the previous one
in lexicographic order:

(a) 4532761
(b) 78436521
(c) BJHFACDIGE

3. Consider the symbols !, @, #, $, %, &, *, + (written in the alphabetic


order of this strange alphabet). What is the next permutation in
lexicographic order after %#+!*&$@ ?

4. Consider the 6! = 720 permutations of {1, 2, 3, 4, 5, 6}. The first one


in lexicographic order is 123456 and the 720th one is 654321. What
are the 24th, 121st, 240th, 385th permutations in lexicographic order?
[Hint: 24 = 4!, 120 = 5!, 240 = 2 ∗ 5!, 384 = 3 ∗ 5! + 4!.]

5. Write all the 3-combinations of {1, 2, 3, 4} in lexicographic order.

6. Consider the 6-combinations of {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}. For


each of the following 3 combinations from this set, write the next one
in lexicographic order:

(a) {1, 2, 3, 4, 5, 6}
(b) {1, 5, 6, 7, 8, 12}
(c) {2, 4, 5, 10, 11, 12}

7. Consider all the 10-combinations of the 26 English letters. For each of


these 10-combinations, write the next one in lexicographic order:

(a) {a, g, k, l, o, p, u, w, y, z}
(b) {b, e, g, i, l, m, n, o, y, z}

10

You might also like