• Practice
  • About 15 min
  • 5 practice questions

Forming numbers from digits

Count numbers formed from given digits with and without repetition, handling the zero in the first place, even and odd numbers, multiples of 5 and numbers above a given value.

If something looks wrong, please tell us.

Number formation questions look simple but hide two traps: a number cannot begin with 0, and conditions such as "even" or "divisible by 5" restrict the last digit. Get the order of filling wrong and the count goes wrong. This lesson gives a fixed routine that handles every common variant, with and without repetition.

The routine: fill the most restricted place first

  1. Read whether digits may repeat. With repetition, each place uses the full list (except where a rule forbids a digit). Without repetition, each place uses one digit fewer than the place filled before it.
  2. Fill the place with a condition first: the units place for even, odd or multiple of 5; the first place for "greater than" questions.
  3. Then fill the first place, remembering that 0 is not allowed there.
  4. If 0 is one of the digits and the units condition might or might not use 0, split into cases: units digit 0, and units digit not 0.
  5. Fill the remaining places and multiply. Add the cases.

Worked example 1: four-digit numbers with a zero

How many four-digit numbers can be formed from 0, 1, 2, 3, 4, 5 if no digit is repeated? First place: any digit except 0, so 5 choices. Second place: any of the remaining 5 digits (0 is now allowed). Third: 4. Fourth: 3. Total 5 × 5 × 4 × 3 = 300.

Worked example 2: how many of these are even?

The units digit must be 0, 2 or 4. Because 0 affects the first place, split into cases. Case 1, units digit 0: the first place has 5 choices (1 to 5), then 4, then 3, giving 5 × 4 × 3 = 60. Case 2, units digit 2 or 4 (2 choices): the first place cannot be 0 or the units digit, so 4 choices; then 4 and 3 for the middle places, giving 2 × 4 × 4 × 3 = 96. Total 60 + 96 = 156.

A common wrong method fills the units place with 3 choices and then the first place with 4, giving 3 × 4 × 4 × 3 = 144. It fails because when the units digit is 0, the first place actually has 5 choices, not 4. Whenever 0 sits in the units list, split the cases.

Worked example 3: multiples of 5

How many three-digit numbers formed from 0, 1, 2, 3, 4, 5 without repetition are divisible by 5? The units digit must be 0 or 5. Units 0: first place 5 choices, middle 4, giving 20. Units 5: first place cannot be 0 or 5, so 4 choices; middle 4 (0 is allowed), giving 16. Total 36.

Worked example 4: greater than a value

How many four-digit numbers greater than 4000 can be made from 1, 2, 3, 4, 5 without repetition? The first digit must be 4 or 5: 2 choices. Then 4, 3 and 2 choices: 2 × 4 × 3 × 2 = 48. Every such number is at least 4123, so all are greater than 4000.

With repetition, and the "at least one" shortcut

With repetition the choices do not shrink. Three-digit numbers from 1 to 5 that are even: units 2 or 4 (2 choices), the other places 5 each: 5 × 5 × 2 = 50. For "at least one digit repeated" use the complement: there are 900 three-digit numbers and 9 × 9 × 8 = 648 have all digits different, so 900 − 648 = 252 have a repeated digit.

Fill the restricted place first, never put 0 in the first place, and split into cases whenever 0 could be the units digit. For "at least one" questions, count the opposite and subtract.

Key takeaways: the zero is the trap in nearly every number question. Ask "can this place be 0?" at the first place and "does the units condition include 0?" at the last place. With repetition, every place keeps its full set of digits.

Check your understanding

  1. 1. How many three-digit numbers can be formed from the digits 1, 2, 3, 4, 5 if no digit is repeated?

    1. 125
    2. 10
    3. 120
    4. 60
    Show answer

    Answer: D. 5 × 4 × 3 = 60. (125 allows repetition; 10 counts selections, not numbers.)

  2. 2. How many three-digit even numbers can be formed from 1, 2, 3, 4, 5 if digits may be repeated?

    1. 50
    2. 24
    3. 60
    4. 125
    Show answer

    Answer: A. Units digit 2 or 4: 2 choices. Hundreds and tens: 5 each. 5 × 5 × 2 = 50.

  3. 3. How many four-digit numbers can be formed using each of the digits 0, 1, 2, 3 exactly once?

    1. 24
    2. 6
    3. 18
    4. 27
    Show answer

    Answer: C. All 4! = 24 orders, minus those beginning with 0 (3! = 6): 24 − 6 = 18. Or 3 × 3 × 2 × 1 = 18.

  4. 4. How many three-digit numbers formed from 0, 1, 2, 3, 4, 5 without repetition are divisible by 5?

    1. 40
    2. 20
    3. 25
    4. 36
    Show answer

    Answer: D. Units 0: 5 × 4 = 20. Units 5: first place 4 choices (not 0 or 5), middle 4: 16. Total 36.

  5. 5. How many four-digit numbers greater than 5000 have all four digits different?

    1. 3024
    2. 2016
    3. 2520
    4. 4536
    Show answer

    Answer: C. First digit 5 to 9: 5 choices. Then 9, 8, 7 for the other places (0 now allowed): 5 × 9 × 8 × 7 = 2520. Every such number is above 5000 because 5000 itself repeats a digit.

Privacy · Terms · Refunds · Delivery