Mathematics (Grade 11, Lebanon) · Chapter 16 · Tutorial exercise
Coding and logistics at the port of Beirut
Arrangements and permutations · C. Permutations, placements and anagrams · level 3 (hard)
Statement
The logistics terminal of the port of Beirut assigns to each registered container an alphanumeric identifier of ~characters, made up successively of:
- a zone prefix formed of ~capital letters chosen from the set (~letters);
- followed by a serial number formed of ~digits chosen from the set (~digits).
Part A — Addressing capacity according to the coding rules. 1) Calculate the total number of possible identifiers if repetitions of letters and digits are allowed. 2) To avoid optical input errors, a new standard requires the ~letters of the prefix to be distinct and the ~digits of the serial number to be pairwise distinct. Calculate the number of identifiers complying with this standard. 3) Among the identifiers of the standard without repetition:
- a) How many begin with the letter and end with the digit ?
- b) How many contain the digit at least once?
- c) How many have their four digits arranged in strictly increasing order from left to right (for example )? (Hint: you may begin by counting how many permutations of ~fixed distinct digits arrange them in increasing order.)
Part B — Organizing a storage bay. On a quay, a bay has ~aligned slots numbered from to , intended to receive ~containers, all different (bearing distinct identifiers ). Each slot can receive at most one container (the ~remaining slots stay empty). 4) In how many different ways can these ~containers be placed in the ~slots of the bay? 5) Three of these containers () are refrigerated containers that must be plugged into the first ~slots ( or ), the only ones equipped with electrical outlets, while the other three containers () can occupy any of the remaining slots. How many placements satisfy this technical constraint?
Solution
Strategy. In Part A, the letter prefix and the numerical serial number are chosen independently: the total number of identifiers is the product of the number of prefixes by the number of serial numbers. In question 3c, the key observation is that, for a fixed set of ~distinct digits, only one of the ~permutations of these ~digits is in strictly increasing order. In Part B, placing ~distinct containers in ~slots amounts to choosing for each container its slot number without repetition: this is an arrangement .
Part A — Addressing capacity. 1) With repetition. The prefix is a -list of (~choices) and the serial number is a -list of (~choices). By the multiplication principle:
2) Standard without repetition. The prefix is an arrangement of ~letters from (~choices) and the serial number is an arrangement of ~digits from (~choices):
3) Counting under the standard without repetition.
- a) If the first letter is fixed as (~choice), ~choices remain in for the second letter. If the last digit is fixed as (~choice), the first ~digits form an arrangement of ~digits from , that is ~choices. Hence:
- b) The number of identifiers without repetition that contain no digit is obtained by choosing the ~distinct digits from the ~digits , that is . By the complement method within the identifiers:
- c) The ~sequences of ~pairwise distinct digits group into packets of ~sequences using exactly the same four digits permuted in all possible orders. In each packet of ~permutations, one and only one sequence arranges these four digits in strictly increasing order. There are therefore ~strictly increasing sequences of ~digits. Multiplying by the ~letter prefixes:
Part B — Organizing the bay. 4) Placement without constraint. Assigning to each of the ~containers a distinct slot among the ~slots of the bay amounts to forming an arrangement of ~slots chosen from :
5) Placement with a constraint on the refrigerated containers.
- 1ˢᵗ step: we place the ~refrigerated containers in ~distinct slots chosen from the ~equipped slots . The number of choices is .
- 2ⁿᵈ step: once these ~containers are placed, exactly ~free slots remain in the bay (the fourth, unused equipped slot and the ~ordinary slots to ) to receive the ~remaining containers . The number of ways to place them is . By the multiplication principle, the number of compliant placements is:
What the exercise establishes. Two essential ideas emerge from this problem: on the one hand, dividing a number of arrangements by makes it possible to count strictly increasing sequences (or choices where the order is imposed in advance); on the other hand, when a subgroup of objects is subject to a placement restriction, we always place this subgroup first before placing the unrestricted objects in all the remaining places.
Similar exercises
- Addition principle, multiplication principle and routes in stages solved
- Four-digit numbers with parity and order constraints solved
- Successive draws of tokens and the complement method solved
- Permutations with grouped blocks and alternating categories solved
- Anagrams with repetitions and constraints on the ends solved
The course of the chapter · All the exercises of the chapter