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

Problem 12

Problem 12 · 2017 Math Kangaroo Hard
Number Theory Counting & Probability place-valuecareful-counting

How many positive whole numbers n have the property that exactly one of the two numbers n and n + 20 has four digits?

Show answer
Answer: E — 40
Show hints
Hint 1 of 2
Four-digit numbers run from 1000 to 9999; when does exactly one of n and n+20 land in that band?
Still stuck? Show hint 2 →
Hint 2 of 2
Check the two edges of the band separately.
Show solution
Approach: find the two boundary windows where exactly one value is four-digit
  1. At the lower edge: n is three-digit but n+20 is four-digit when n = 980..999 — that is 20 values.
  2. At the upper edge: n is four-digit but n+20 is five-digit when n = 9980..9999 — another 20 values.
  3. In between, both are four-digit (not allowed). Total = 20 + 20 = 40, choice E.
Mark: · log in to save