Numerical answer
Find the number of six-digit numbers, all of whose digits belong to , in which each of the digits appears at least once and which are divisible by .
Show answer and solution
Answer: 390
A number is divisible by exactly when its last two digits form a multiple of . With digits from the admissible endings are . For each ending, the first four digits must contain every digit missing from the ending. Ending (missing ): strings of length 4 over 4 digits containing both and number . The endings (missing ) and (missing ) give each by the same count. Ending (missing ): . The total is . A brute-force enumeration of all strings gives .
Saved on this device. Sign in or create a free account to keep it on every device.