Question
How many four-digit numbers can be formed using the digits without repetition such that the number is divisible by ?
Solution — Step by Step
A number is divisible by if its last digit is or . We split into two cases.
Digits available for first three positions: (5 choices, since is used at the end).
First digit can be any of the remaining. Second: remaining. Third: remaining.
Count: .
The first digit cannot be (else it’s a 3-digit number).
Available digits for first position (excluding and ): — choices.
Second position: remaining digits (any of the remaining 4 from the original 6, minus the one used).
After choosing first digit and last digit (), digits remain (one of which is , allowed in middle positions).
Second: choices. Third: choices.
Count: .
Final answer: four-digit numbers.
Why This Works
The trick is to handle the two cases for divisibility by 5 separately, because the constraint “first digit ≠ 0” interacts differently with each case.
When the last digit is , the is “used up” so the first digit can be any of the remaining non-zero digits. When the last digit is , the is still available, but it can’t go in the first position — so we deduct.
Always: identify constraints, split into cases that simplify each constraint, count separately, then add (mutually exclusive cases) or use inclusion-exclusion (overlapping cases).
Permutations of distinct objects taken at a time:
Combinations:
Permutations with repetition (each position from same set of ):
Circular permutations of :
Alternative Method
Total 4-digit numbers from without repetition: first digit has choices (not ), then for the remaining. Total .
Of these, divisible by : those ending in or . Compute as in cases. Same result.
For “divisible by…” problems with a leading-zero restriction, always split by last digit. Trying to count directly leads to overcounting.
Common Mistake
The most common trap: forgetting that “first digit ≠ 0” when the last digit is . Students compute for both cases (treating them symmetrically) and get . That overcounts numbers like , which is really a 3-digit number.
Another trap: counting the last-digit- case as — they forget that when is fixed at the end, only digits ( to ) are available for the first three positions, and the order matters with no repetition.
When in doubt, write a small example: how many 2-digit numbers from are divisible by ? Last digit or . Last : first from — 3 numbers. Last : first from — 2 numbers. Total . List them: . ✓