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

Problem 25

Problem 25 · 2024 Math Kangaroo Stretch
Number Theory digit-sumplace-value

The sum of the digits of N is three times the sum of the digits of \(N+1\). What is the smallest possible sum of the digits of N?

Show answer
Answer: C — 12
Show hints
Hint 1 of 2
Adding 1 only changes the digit sum a lot when N ends in some nines (each trailing 9 turns into a 0).
Still stuck? Show hint 2 →
Hint 2 of 2
If N ends in exactly k nines, write the digit sum of N+1 in terms of the digit sum of N and solve.
Show solution
Approach: use trailing nines to relate the two digit sums, then minimise
  1. If N ends in exactly \(k\) nines, then \(N+1\) turns those \(k\) nines into zeros and raises the next digit by 1, so \(S(N+1)=S(N)-9k+1\).
  2. The condition \(S(N)=3\,S(N+1)\) becomes \(S(N)=3(S(N)-9k+1)\), which simplifies to \(2S(N)=27k-3\); the smallest valid case is \(k=1\), giving \(S(N)=12\).
  3. This is achievable, e.g. \(N=39\) has digit sum 12 and \(N+1=40\) has digit sum 4, with \(12=3\times4\); so the smallest digit sum of N is 12, answer C.
Mark: · log in to save