- Foundation
- About 15 min
- 5 practice questions
Forming numbers from digits: first steps
Count the numbers that can be made from given digits, with and without repetition, handling the digit 0 in the first place, even numbers and numbers above a given value, one place at a time.
If something looks wrong, please tell us.
Number-forming problems are a favourite in competitive exams. They all rest on filling the places of the number one at a time and multiplying the choices. The new ingredient compared with other arrangements is that some positions have restrictions: the first digit cannot be 0, and an even number must end in an even digit.
The routine
- Draw one box for each place of the number.
- Fill the most restricted place first (the first digit if 0 is present, or the last digit for even or odd numbers).
- Fill the other places in turn, reducing the count if no digit may repeat.
- Multiply.
Fill the place with the restriction first. Otherwise the choices for later places depend on what you did earlier, and counting becomes messy.
Worked example 1: no zero among the digits
How many 3-digit numbers can be formed from the digits 1, 2, 3, 4, 5 without repetition? The first place has 5 choices, the second 4 and the third 3. The count is 5 × 4 × 3 = 60. How many of these are even? The last digit must be 2 or 4, which gives 2 choices. Then the first place has 4 choices (any of the remaining four digits) and the second has 3. The count is 2 × 4 × 3 = 24. How many are greater than 300? The first digit must be 3, 4 or 5 (3 choices), then 4 and 3 choices follow: 3 × 4 × 3 = 36.
Worked example 2: the digit 0 is present
How many 3-digit numbers can be formed from the digits 0, 1, 2, 3, 4 without repetition? A number cannot start with 0, so the first place has 4 choices. The second place can take any of the other 4 digits (including 0) and the third any of the remaining 3. So the count is 4 × 4 × 3 = 48. The wrong answer 5 × 4 × 3 = 60 counts numbers such as 012 that are not 3-digit numbers. As a check, 60 − 12 = 48, where 12 is the number of arrangements with 0 first, 4 × 3 = 12.
Worked example 3: even numbers when 0 is present
How many of those 48 numbers are even? The last digit is 0, 2 or 4. Treat the cases separately because 0 also matters for the first place. Case 1, last digit 0: the first two places are filled from 1, 2, 3, 4, which gives 4 × 3 = 12 numbers. Case 2, last digit 2 or 4 (2 ways): the first place has 3 choices (not 0 and not the digit used last), and the middle place has 3 choices (0 and the other two digits), so 2 × 3 × 3 = 18. The total is 12 + 18 = 30. As a check, the odd numbers end in 1 or 3: 2 × 3 × 3 = 18, and 30 + 18 = 48.
When digits may be repeated
With repetition allowed, a 3-digit number has 9 choices for the first place and 10 each for the others: 9 × 10 × 10 = 900 (the numbers 100 to 999). How many of them are even? The last place has 5 choices (0, 2, 4, 6, 8), the first 9 and the middle 10, so 9 × 10 × 5 = 450, which is half of 900.
Key takeaways: one box per place; fill the restricted place first; the first digit can never be 0; for even numbers split into cases when 0 is among the digits; with repetition each later place keeps all its choices.
Check your understanding
-
1. How many 2-digit numbers can be formed from the digits 1, 2, 3, 4 without repetition?
- 12
- 16
- 8
- 24
Show answer
Answer: A. The first place has 4 choices and the second 3: 4 × 3 = 12.
-
2. How many 3-digit numbers can be formed from 0, 1, 2, 3 without repetition?
- 24
- 12
- 18
- 27
Show answer
Answer: C. The first digit has 3 choices (not 0), the second 3 and the third 2: 3 × 3 × 2 = 18.
-
3. How many 3-digit even numbers can be formed from 1, 2, 3, 4, 5 without repetition?
- 30
- 24
- 60
- 12
Show answer
Answer: B. The last digit is 2 or 4 (2 ways), then 4 × 3 for the other places: 2 × 4 × 3 = 24.
-
4. How many 3-digit numbers (100 to 999) are there in all?
- 1 000
- 999
- 810
- 900
Show answer
Answer: D. The first place has 9 choices and the other two 10 each: 9 × 10 × 10 = 900.
-
5. How many 3-digit numbers can be formed from 1, 2, 3, 4, 5 without repetition that are greater than 300?
- 60
- 36
- 24
- 48
Show answer
Answer: B. The first digit is 3, 4 or 5 (3 ways), then 4 × 3 for the rest: 3 × 4 × 3 = 36.
Sign in to keep track of the lessons you finish.