Skip to main content

2015 AIME I Problem 8

Problem 8 of 15IntermediateNumber TheoryArithmeticProblem-Solving Techniques

For positive integer n,n, let s(n)s(n) denote the sum of the digits of n.n. Find the smallest positive integer nn satisfying s(n)=s(n+864)=20.s(n) = s(n + 864) = 20.

Your answer

Integer from 0 to 999
Show solution

Solution

Each carry in an addition replaces 1010 in one place by 11 in the next, lowering the digit sum by 9.9. Hence s(n+864)=s(n)+s(864)−9cs(n + 864) = s(n) + s(864) - 9c =20+18−9c,= 20 + 18 - 9c, where cc is the number of carries, and s(n+864)=20s(n + 864) = 20 forces c=2.c = 2. For a three-digit candidate nn with digits t,t, u,u, vv summing to 20:20: since u+v≤18,u + v \le 18, we have t≥2,t \ge 2, so the hundreds place always carries (t+8≥10t + 8 \ge 10), and exactly one of the units and tens places carries. If the units carry and the tens do not, the tens computation u+6+1u + 6 + 1 must stay below 10,10, so u≤2;u \le 2; then t=20−u−vt = 20 - u - v ≥20−2−9=9,\ge 20 - 2 - 9 = 9, forcing n=929.n = 929. If the tens carry and the units do not, then v+4≤9v + 4 \le 9 gives v≤5,v \le 5, so t=20−u−vt = 20 - u - v ≥20−9−5=6,\ge 20 - 9 - 5 = 6, and t=6,t = 6, u=9,u = 9, v=5v = 5 works: n=695.n = 695. Indeed s(695)=20s(695) = 20 and 695+864=1559695 + 864 = 1559 with s(1559)=20,s(1559) = 20, so the smallest such nn is 695.695.
AoPS wiki

Tagged: digits · place value · casework

More practice