Mathematics (Grade 11, Lebanon) · Chapter 16 · Tutorial exercise
Four-digit numbers with parity and order constraints
Arrangements and permutations · B. Arrangements without repetition and -lists · level 2
Statement
Using the seven digits of the set , we form four-digit natural numbers, written in base ten in the form (such a number cannot begin with the digit , otherwise it would not have four digits).
1) Case with repetition: the digits may be repeated.
- a) How many four-digit numbers can be formed?
- b) How many of them are even? How many are strictly greater than ?
2) Case without repetition: the four digits must be pairwise distinct.
- a) How many four-digit numbers with distinct digits can be formed?
- b) How many of them are multiples of ?
- c) How many of them are even? (Distinguish two cases according to whether the units digit is equal to or not.)
Solution
Strategy. When a position is subject to a particular constraint (here for the thousands digit, and a constraint on for divisibility by or by ), we fill the most constrained position first. If the two constraints conflict (because the digit is both even and forbidden in the lead position), we split the set into two disjoint subsets: the case and the case .
1) Digits that may repeat.
- a) The thousands digit is chosen from (~choices), and the three following digits form a -list of (~choices):
- b) A number is even if and only if its units digit belongs to (~choices). Since has ~choices, has ~choices and has ~choices: For a four-digit number formed with to be strictly greater than , it is necessary and sufficient that (~choices) and that the number is not exactly . There are therefore ~numbers greater than or equal to , and removing itself:
2) Pairwise distinct digits.
- a) We first choose (~choices). There then remain ~digits available in (since the digit is now available) to form the triple without repetition, that is ~choices:
- b) A number formed with is a multiple of if and only if . Let us distinguish two disjoint cases:
- 1ˢᵗ case: (~choice). With the digit placed at the end, can no longer be zero: is any arrangement of ~digits from , that is ~numbers.
- 2ⁿᵈ case: (~choice). Then must be chosen from (~choices, neither nor ), then is an arrangement of ~digits from the ~remaining digits, that is ~numbers. By the addition principle:
- c) Likewise, to get an even number (), let us separate the case and the case :
- 1ˢᵗ case: (~choice for , then ~choices for ), that is ~numbers.
- 2ⁿᵈ case: (~choices for ). Once is chosen, can be neither nor (~choices for ), then is chosen without replacement from the ~remaining digits (~choices), that is ~numbers. In total, the number of even integers with distinct digits is:
What the exercise establishes. In any counting without repetition where two positions compete for the same set of elements (like the digit for the first and the last position), a direct application of the multiplication principle fails if the number of choices for the second position depends on the choice made in the first: we must partition into disjoint subcases.
Similar exercises
- Factorial simplifications, telescoping sums and equations in solved
- Addition principle, multiplication principle and routes in stages 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