How many integers between and , inclusive, have the property that some permutation of its digits is a multiple of between and For example, both and have this property.
- A)
- B)
- C)
- D)
- E)
Answer
A
Key insight
By the 11-test a digit triple works iff one digit equals the sum of the other two, or that sum minus 11; count triples by type, then arrangements.
Solution
A three-digit number with digits is a multiple of exactly when : the middle digit is the sum of the outer two, or that sum minus . Swapping the outer digits preserves this, so a digit-set is good when one digit equals the sum of the other two, or that sum minus ; a good set can always be arranged with a nonzero leading digit. Count good sets by type, then their three-digit arrangements.
Three distinct nonzero digits. One digit is with , : sums through give pairs, total . Or one digit is with : sums to give pairs, total . No set is counted twice (that would force ). sets, arrangements each: .
A repeated nonzero digit . Need () or (): sets, arrangements each: .
A zero with two distinct nonzero digits . Need : . sets, arrangements each (zero not in front): .
A zero with a repeated digit . Always good since (e.g. ): sets, arrangements each: .
Total: .
The answer is .
Why this works
The property depends only on the multiset of digits, so count multisets first and arrangements second; this sidesteps the double counting that plagues "list all 81 multiples of and permute" approaches. The divisibility rule for converts the arithmetic condition into a purely combinatorial one about which digit is a sum of the others, and splitting by repeated digits and zeros keeps the arrangement counts uniform within each case.
The trap
Multiplying the 81 multiples of 11 by the number of permutations, which double counts triples like {2, 0, 9} that give two different multiples (209 and 902).
Common mistakes
- Multiplying the 81 multiples of 11 by the number of permutations, which double counts triples like {2, 0, 9} that give two different multiples (209 and 902).
- Forgetting that permutations with a leading zero are not three-digit numbers, or missing the case that comes from multiples like .
Techniques
Map the objects to something easier to count · Split into exhaustive cases and handle each