Solution:
Concept:
- Permutation (arrangement, order matters): the number of ways of arranging r objects chosen from n different objects in a row is nPr=(n−r)!n!.
- Multiplication principle: if one job can be done in m ways and after it a second job in n ways, both jobs together can be done in m×n ways.
- Complement method: when it is easier to count the choices that break a condition, count all choices and subtract those that break it (for “at least one”, subtract the ones with none).
All code-words
Step 1 — Count.
The 7 letters D, O, U, B, L, E, S are all different, and each card can be used once. A code-word is an arrangement of 3 of them.
7P3=7×6×5=210
So 210 code-words can be formed.
(i)
Step 1 — Count words without S.
Words without S use 3 of the other 6 letters.
6P3=6×5×4=120
Step 2 — Subtract.
Words that contain S are all words minus words without S.
210−120=90
So (i) gives 90 words.
(ii)
Step 1 — Count.
Leave out O; arrange 3 of the other 6 letters.
6P3=120
So (ii) gives 120 words.
(iii)
Step 1 — Sort the letters.
Vowels: O, U, E (3). Consonants: D, B, L, S (4). The word has the pattern consonant–vowel–consonant.
Step 2 — Fill the places.
First place: 4 consonants. Middle place: 3 vowels. Last place: 3 consonants left (one consonant is already used).
4×3×3=36
So (iii) gives 36 words.
Therefore, 210 code-words; (i) 90; (ii) 120; (iii) 36.