Mathematics (Grade 11, Lebanon) · Chapter 16 · Direct application of the course
Counting passwords and the complement principle
Arrangements and permutations · level 2
Statement
A computer system requires creating an access code made up of capital letters chosen from the letters of the Latin alphabet, followed by digits chosen from (for example AB404).
- How many different codes can be formed if repetitions of letters and digits are allowed?
- How many codes have their letters distinct and their digits pairwise distinct?
- Among the codes where repetitions are allowed, how many contain the digit at least once?
Solution
- The choice of the letter part is a -list of the -letter alphabet, that is possibilities. The choice of the numerical part is a -list of the set of digits, that is possibilities. By the multiplication principle, the total number of codes is:
- When repetitions are forbidden, the letter part is an arrangement of letters from ( choices) and the numerical part is an arrangement of digits from ( choices). By the multiplication principle, there are:
- The opposite of “containing the digit at least once” is “containing no digit ”.
- A code with no digit has arbitrary letters ( choices) followed by a -list of digits chosen only from the nonzero digits ( choices), that is:
- Subtracting this number from the total number of codes (addition principle applied to two complementary sets), we get the number of codes containing at least one :
Similar exercises
- Anagrams with repetitions and constraints on the ends solved
- Coding and logistics at the port of Beirut solved
- Simplifying factorial expressions and solving equations solved
- Successive draws from an urn with or without replacement solved
- Permutations with placement constraints solved
The course of the chapter · All the exercises of the chapter