2004 AIME II Problem 4
Problem 4 of 15EasierNumber TheoryCombinatoricsProblem-Solving Techniques
How many positive integers less than have at most two different digits?
Your answer
Integer from 0 to 999
Show solution
Solution
All positive integers below qualify. A qualifying -digit number is either a number whose digits are all equal ( of them) or uses a leading digit together with a second value in some of the last two positions: patterns, each realized in ways ( choices for then for ), for numbers.
Similarly a qualifying -digit number has all its digits equal ( possibilities) or has appearing in a nonempty subset of the last three positions: patterns, each in ways, for numbers.
The total is
Tagged: digits · casework · multiplication principle