Number of 4-digit numbers (the repetition of digits is allowed) which are made using the digits 1, 2, 3 and 5 , and are divisible by 15 , is equal to
Solution
Core idea. Divisibility by 15 joins a last-digit condition with a digit-sum condition.
Concept refresher. A number is divisible by 3 exactly when its digit sum is. If the digits leave remainders on division by 3, this means
for a whole number .
Picture the situation. The number has four digits from 1, 2, 3 and 5, with repetition. Divisibility by 5 forces the last digit to be 5, since 0 is not available. Divisibility by 3 is a condition on the digit sum, which is handled through the remainders of the digits on division by 3.
Approach. Fix the last digit, then count the first three digits by their remainders.
Step 1: The last digit
To be divisible by 5 with these digits the number must end in 5, which leaves remainder 2 on division by 3.
Step 2: Remainders
The digit 3 leaves remainder 0, the digit 1 leaves 1, and the digits 2 and 5 leave 2. The first three digits must have remainders adding to 1 or 4, so the patterns are , and , each in 3 orders.
Step 3: Count
The pattern gives 3 numbers; gives ; and gives . The total is .
Answer. 21
Sanity check. Of the numbers ending in 5 about one third should be divisible by 3, and the count found is close to a third of 64.
Common wrong answers
- 22: Requiring the first three digits alone to add to a multiple of 3, forgetting the 5 at the end, gives 22.
Key takeaway
The trap. The forced last digit also contributes to the digit sum.
How toppers think. They work with remainders and count patterns, not individual numbers.
Remember. Last digit 5, digit sum divisible by 3.