2006 AIME II Problem 7
Problem 7 of 15IntermediateNumber TheoryCombinatoricsProblem-Solving Techniques
Find the number of ordered pairs of positive integers such that and neither nor has a zero digit.
Your answer
Integer from 0 to 999
Show solution
Solution
There are pairs in all (); count the forbidden ones. If has units digit so does and writing gives with that is forbidden pairs.
Now suppose both units digits are nonzero. Then a number in the pair has a zero digit exactly when it is a three-digit number of the form with (a one- or two-digit number with nonzero units digit has no zero digit). If then has tens digit so is not also of that form. Hence the forbidden pairs here are those where exactly one of equals pairs.
The total number of forbidden pairs is so the answer is
Tagged: digits · complementary counting · casework