

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


There are four bus lines between A and B; and three bus lines between B and C. Find the number of ways a person can travel: (a) by bus from A to C by way of B; (b) roundtrip by bus from A to C by way of B.
Solution:
(a) There are 4 ways to go from A to B and 3 ways from B to C; hence there are 4 × 3 = 12 ways to go from A to C by way of B.
(b) There are 12 ways to go from A to C by way of B, and 12 ways to return. Hence, there are 12 × 12 = 144 ways to travel round trip.
The English alphabet has 26 letters of which 5 are vowels. Consider only 5-letter “words” consisting of 3 different consonants and 2 different vowels. Find the number of such words which: (a) have no restrictions; (b) contain the letter B; (c) contain the letters B and C; (d) begin with B and contain the letter C.
Solution:
(a) We can choose 3 consonants from 26-5 = 21 consonants and 2 vowels from 5 vowels. Since there are 5! permutations of 5 different letters, in total there are are
3
2
· 5! words.
(b) We can choose 2 consonants from 26-1-5 = 20 consonants and 2 vowels from 5 vowels. Since there are 5! permutations of 5 different letters, in total there are are
2
2
· 5! words.
(c) We can choose 1 consonants from 26-2-5 = 19 consonants and 2 vowels from 5 vowels. Since there are 5! permutations of 5 different letters, in total there are are
1
2
· 5! words.
(d) We can choose 1 consonants from 26-2-5 = 19 consonants and 2 vowels from 5 vowels. Since there are 4! permutations of 4 different letters, in total there are are
1
2
· 4! words.
Find the number of ways a coin can be tossed: (a) 6 times so that there is exactly 3 heads and no two heads occur in a row; (a) 2n times so that there is exactly n heads and no two heads occur in a row.
Solution:
(a) 4. H − T − H − T − H − T , H − T − T − H − T − H, H − T − H − T − T − H, T − H − T − H − T − H.
(b) n + 1. One approach is to start with a sequence of n H’s, and see all the possible ways to insert n T ′s and obtain a list satisfying the constraint. Concretely, let p 0 , p 1 ,... , pn denote the possible insertion points for T ′s in the following list of n H’s:
(p 0 ) − H − (p 1 ) − H − (p 2 ) − H − · · · − H − (pn− 1 ) − H − (pn)
Since two H’s may not occur in a row, every pi with 1 ≤ i ≤ n must contain at least one T. There are n − 1 such pi’s, therefore there is no choice in the placement of n − 1 T ′s, and the final T can go in any of n + 1 locations.
A program committee is formed by people from three departments: CSE department, ECE department and Math department. There are 40 people in CSE department, 50 people in ECE department and 60 people in Math department. Find the number of ways to form a program committee which: (a) has 3 people so that no 2 people are from one department; (b) has 5 people so that no 3 people are from one department.
Solution:
(a) We can only choose one person from each department. Thus,
1
1
1
(b) We can only choose at most two people from one department. Thus,
( 40 1
A password is made up by 5 symbols. A symbol can be a letter from {a, b,... , z} or a numeric digit from { 0 , 1 ,... , 9 }. Find the number of such passwords which: (a) have at least 1 letter and at least 1 digit; (b) have at least 1 repeated digit; (c) have at most 1 repeated digit.
Solution:
(a) The total number of passwords with 5 symbols is (26 + 10)^5 = 36^5. The number of such passwords which are made up only by letters is 26^5. The number of such passwords which are made up only by digits is 10^5. Thus, the number of such passwords with at least 1 letter at least 1 digit is 36^5 − 265 − 105.
(b) Let’s compute the complement—the number of passwords with no repeated digits. If the password has k (non-repeated) digits, there are 26^5 −k^ choices for the other letters,
k
places to stick the digits, and 10k choices for the digits themselves; in total,
265 −k
k
10 k.
Therefore, the number of passwords with any number of non-repeated digits is
∑^5
k=
265 −k
k
10 k.