Sub topic 9
Forming Numbers from Digits
This chapter assumes that you can use factorials, permutations, and combinations, and that you can translate conditions in a word problem into counting steps. The main difficulty in number-formation questions is usually the first digit: zero cannot be placed at the beginning of a multi-digit number.
A reliable counting model
When forming a number, fill its positions from left to right. At each position, count the available digits. Multiply the choices for independent positions.
Use this checklist:
- Are digits repeated or used at most once?
- Is zero available?
- Is the first digit restricted?
- Must the number be even, odd, or divisible by another number?
- Are some positions fixed or restricted?
If a condition applies to a particular position, handle that position first.
No repetition
Suppose you form a 4-digit number from the digits 1, 2, 3, 4, 5 without repetition. The first position has 5 choices, the second has 4, then 3, then 2:
\[ {}^5P_4=5\cdot4\cdot3\cdot2=120 \]
If the number must be even, its last digit must be 2 or 4.
- Choose the last digit: 2 choices.
- Choose the first three positions from the remaining 4 digits: \(4\cdot3\cdot2\) choices.
Therefore,
\[ 2\cdot4\cdot3\cdot2=48 \]
The last digit was handled first because the parity condition applies to it.
The zero problem
Consider 5-digit numbers formed without repetition from 0, 1, 2, 3, 4, 5.
The first digit has only 5 choices, because it cannot be zero. After choosing it, the remaining four positions have \(5,4,3,2\) choices:
\[ 5\cdot5\cdot4\cdot3\cdot2=600 \]
An alternative method is to subtract invalid arrangements:
\[ {}^6P5-{}^5P4=720-120=600 \]
The first term counts all arrangements, including those beginning with zero. The second counts arrangements in which zero is fixed first.
Repetition allowed
If repetition is allowed, each position can reuse a digit unless the question adds another restriction.
For example, the number of 4-digit numbers formed from 0, 1, 2, 3, 4, with repetition allowed, is:
\[ 4\cdot5\cdot5\cdot5=500 \]
The first position has 4 choices, excluding zero. Each later position has 5 choices.
For 4-digit even numbers using these digits with repetition allowed:
- The first digit has 4 nonzero choices.
- The middle two digits have 5 choices each.
- The final digit has 3 even choices: 0, 2, or 4.
Thus,
\[ 4\cdot5\cdot5\cdot3=300 \]
Conditions on selected digits
If a number must contain a particular digit, count the complement when that is easier. For example, among 3-digit numbers formed from 1 through 6 without repetition, the count containing 6 is:
\[ {}^6P3-{}^5P3=120-60=60 \]
The first count includes every number. The second excludes all numbers that do not use 6.
Exercise
How many 4-digit numbers can be formed from 0, 1, 2, 3, 4 without repetition and are divisible by 5?
Show answer
A divisible-by-5 number must end in 0 or 5. Only 0 is available, so the last digit is fixed as 0. The first three positions can be filled in \(4\cdot3\cdot2=24\) ways. Therefore, the answer is 24.