2007 AIME II Problem 6
Problem 6 of 15IntermediateNumber TheoryCombinatorics
An integer is called parity-monotonic if its decimal representation satisfies if is odd, and if is even. How many four-digit parity-monotonic integers are there?
Your answer
Integer from 0 to 999
Show solution
Solution
A digit may immediately precede exactly when is odd and less than or even and greater than Checking each from to this always allows exactly digits: for example, allows allows allows (Raising by trades odd choices for even ones, keeping the total at ) Note that is never an allowed predecessor, since is even but exceeds no digit.
So choose the last digit in ways, then each of in ways; the leading digit is automatically nonzero. The count is
Tagged: digits · parity · multiplication principle