MA1302 Unit-II Practice Questions
MA1302 Unit-II Practice Questions
Solutions: (a) Imagine the list as containing four boxes that we fill with
selections from the letters A,B,C,D,E,F and G, as illustrated below.
There are seven possibilities for the contents of each box, so the total
number of lists that can be made this way is 7·7·7·7 = 2401.
(b) This problem is the same as the previous one except that repetition is
not allowed. We have seven choices for the first box, but once it is filled
we can no longer use the symbol that was placed in it. Hence there are
only six possibilities for the second box. Once the second box has been
filled we have used up two of our letters, and there are only five left to
choose from in filling the third box. Finally, when the third box is filled
we have only four possible letters for the last box.
Thus the answer to our question is that there are 7·6·5·4 = 840 lists in
which repetition does not occur.
(c) We are asked to count the length-4 lists in which repetition is not
allowed and the symbol E must appear somewhere in the list. Thus E
occurs once and only once in each such list. Let us divide these lists
into four categories depending on whether the E occurs as the first,
second, third or fourth entry. These four types of lists are illustrated
below.
Consider lists of the first type, in which the E appears in the first entry.
We have six remaining choices (A,B,C,D,F or G) for the second entry,
five choices for the third entry and four choices for the fourth entry.
Hence there are 6·5·4 = 120 lists having an E in the first entry. As
indicated in the above diagram, there are also 6·5·4 = 120 lists having an
E in the second, third or fourth entry. Thus there are 120+120+120+120 =
480 such lists all together.
(d) Now we must find the number of length-four lists where repetition is
allowed and the list must contain an E. Our strategy is as follows. By
Part (a) of this exercise there are 7 · 7 · 7 · 7 = 7 4 = 2401 lists where
repetition is allowed. Obviously this is not the answer to our current
question, for many of these lists contain no E. We will subtract from
2401 the number of lists that do not contain an E. In making a list that
does not contain an E, we have six choices for each list entry (because
we can choose any one of the six letters A,B,C,D,F or G). Thus there are
6·6·6·6 = 6 4 = 1296 lists that do not have an E. Therefore the final
answer to our question is that there are 2401 − 1296 = 1105 lists with
repetition allowed that contain at least one E.
7. How many strings of length six can be formed from a 15 letter alphabet?
a. with repetition allowed? 156
b. with all letters distinct? P(15, 6)
8. A sailing club has 10 white flags, 7 red flags, and 3 green flags. If all
flags are displayed on a flag pole, how many different arrangements are
possible? 20!/(10!•7!•3!)
9. How many five card poker hands have exactly 2 pairs? C(13, 2)C(4,
2)C(4, 2)44
11. A five-card hand is selected from a deck of 52 cards. How many hands
contain no aces or kings? C(44, 5); exactly 2 queens? C(4, 2)•C(48, 3);
exactly 2 queens and exactly 3 spades?
C(3, 2)•C(12, 3) + C(3, 1)•C(12, 2)•36 (without and with the Q of spades)
12. A string of length 8 is formed from the alphabet A = {a, b, c, d, e, f}. How
many strings contain exactly one a or exactly two b’s?
(exactly 1 a + exactly 2 b’s – 1a and 2b’s)
8•57 + C(8,2)•56 - 8•C(7, 2)•45