🦘 Math Kangaroo Grade All Felix 1-2 Ecolier 3-4 Benjamin 5-6 Kadett 7-8 Junior 9-10 Student 11-12 ⇄ switch contest
2016 Math Kangaroo

Problem 29

Problem 29 · 2016 Math Kangaroo Stretch
Number Theory careful-counting

A date can be written in the form DD.MM.YYYY; e.g. today’s date is 17.03.2016. We call a date “surprising” if all 8 digits used in this notation are different. In which month does the next surprising date occur?

Show answer
Answer: B — June
Show hints
Hint 1 of 3
All eight digits must differ, so the year YYYY itself must already use four distinct digits.
Still stuck? Show hint 2 →
Hint 2 of 3
A day's first digit is 0-3 and a month's first digit is 0 or 1, which sharply limits which years can work.
Still stuck? Show hint 3 →
Hint 3 of 3
Step forward from 2016 to the first year whose digits leave a legal day and month with no repeats.
Show solution
Approach: find the first year that leaves room for a valid day and month
  1. Any year from 2017 onward that starts 20.. reuses the 0 (months and small days also need a 0 or repeat), so no surprising date appears in the 2000s.
  2. Checking the 2100s, 2200s and early 2300s, the leading digits keep colliding with the only small digits a valid month (01-12) and day (01-31) can use, so none works.
  3. The first year that frees up enough distinct small digits is 2345, and its earliest surprising date is 17.06.2345 (digits 1,7,0,6,2,3,4,5 all different).
  4. That date is in June.
Mark: · log in to save