Art of Problem Solving

2015 AIME I Problems/Problem 8

Problem

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

Solution