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

Problem 19

Problem 19 · 2015 Math Kangaroo Hard
Number Theory digit-sum

There are 2015 marbles in a pipe. They are numbered 1 to 2015. Marbles whose digits add up to the same number have the same colour, and marbles whose digits have a different sum have a different colour. How many different colours do the marbles in the pipe have?

Show answer
Answer: C — 28
Show hints
Hint 1 of 2
The colour of a marble depends only on its digit sum.
Still stuck? Show hint 2 →
Hint 2 of 2
Find the smallest and largest digit sum occurring among 1 to 2015 — then count the values in between.
Show solution
Approach: count the distinct digit sums from 1 to 2015
  1. Colours correspond exactly to the different digit sums that appear.
  2. The smallest digit sum is 1 (e.g. 1, 1000) and the largest is 28 (from 1999).
  3. Every value from 1 to 28 is achievable, so there are 28 colours (C).
Mark: · log in to save