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

Problem 27

Problem 27 · 2013 Math Kangaroo Stretch
Number Theory arithmetic-series

If you add the first n positive integers, you get a three-digit number with all three digits the same. What is the digit sum of n?

Show answer
Answer: B — 9
Show hints
Hint 1 of 2
The sum of the first n integers is n(n+1)/2; the target is a repdigit like 111, 222, …
Still stuck? Show hint 2 →
Hint 2 of 2
Test which of 111–999 is triangular.
Show solution
Approach: triangular number that is a repdigit
  1. n(n+1)/2 must be one of 111,222,…,999.
  2. 666 works: n(n+1)=1332 gives n=36.
  3. Digit sum of 36 is 3+6 = 9, so B.
Mark: · log in to save