Let denote the set of -digit numbers such that and denote the set of -digit numbers having product of its digits equal to . Then is equal to ______
Solution
Core idea. A strictly ordered digit string is just a selection of digits.
Concept refresher. The number of ways to choose objects from distinct ones is
for . The number of arrangements of objects in which groups of , , objects are alike is
where every object is counted in exactly one group.
Approach. Count as selections of four distinct digits, and by listing the digit multisets with product and arranging each.
Step 1: Count S
Any different digits from , written in decreasing order, give exactly one number with ; is the largest, so it is never :
Step 2: List the digit patterns for P
. The digit must appear once; the factor is a single digit or two digits ; the remaining places are filled with the digit :
Step 3: Arrange each pattern
None of these digits is , so every arrangement is a valid -digit number:
So and .
Answer. 260
Sanity check. A brute-force count over all -digit and -digit numbers gives and as well. Small check: the decreasing numbers using only the digits to are , namely , , , , .
Common wrong answers
- 176: Leaving out the digit gives and ; but can be , the smallest digit, as in , and is never .
- 240: Using only the pattern gives and ; the pattern adds more.
- 230: Using only the pattern gives and ; the pattern adds more.
Key takeaway
The trap. Excluding from ; it can be the last digit, as in .
How toppers think. They factorise the product into primes and list the digit patterns before arranging.
Remember. Arrangements of objects with repeats of sizes number .
More on Combinations
- A box contains 5 blue, 6 yellow and 4 red balls. The number of ways, of drawing 8 balls containing at least…
- Two players A and B play a series of games of badminton. The player, who wins 5 games first, wins the…
- Let pn denote the total number of triangles formed by joining the vertices of an n -side regular polygon. If…
- All 59 on Combinations ›