A digital display shows the current date as an -digit integer consisting of a -digit year, followed by a -digit month, followed by a -digit date within the month. For example, Arbor Day this year is displayed as For how many dates in does each digit appear an even number of times in the -digital display for that date?
- A)
- B)
- C)
- D)
- E)
Answer
E
Key insight
2023 already has one 0 and one 3, so MMDD must contain exactly one 0, one 3 and a matching pair of some other digit.
Solution
The year contributes two s (already even), one and one . So the four digits must contain an odd number of s, an odd number of s, and an even number of every other digit.
Three s with a , or three s with a , cannot form a valid month-day. So consists of exactly one , one , and a pair with . The month uses two of these four digits.
- : digits . Month : days . Month : days . Month : days . Month : day . That is dates.
- : digits . Month : day (day invalid). Month : day . Month is not available since it would use a . That is dates.
- : the month would have to be or , needing a day made of and ; days and with are all above . No dates.
Total .
The answer is .
Why this works
Parity of digit counts is a multiset condition, so first translate the year's contribution into a requirement on the remaining four digits. Then split by the one free choice (the paired digit) and let the calendar constraints prune the list. Fixed-format enumeration problems reward writing the constraint before listing anything.
The trap
Counting 1203 and 1230 in the pair-of-2s case even though month 12 contributes a 1, breaking the digit pattern; or missing 0311.
Common mistakes
- Counting 1203 and 1230 in the pair-of-2s case even though month 12 contributes a 1, breaking the digit pattern; or missing 0311.
- Forgetting that the and can both land in the day (, ) rather than one in each part.
Techniques
Organized listing / direct enumeration · Split into exhaustive cases and handle each