Problem:
Find the number of eight-digit positive integers that are multiples of and have all distinct digits.
Problem:
Find the number of eight-digit positive integers that are multiples of and have all distinct digits.
Solution:
Note that . Consider the two unused digits, which must then add up to . If it's and , there are ways to finish; otherwise, each of the other four pairs give ways to finish, since cannot be the first digit. This gives a total of .