Problem 565: (2015 AIME I, 8)
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$.
- Adding $864$ changes the digit sum by $8+6+4-9c=18-9c$, where $c$ is the number of carries. Equal digit sums need exactly $c=2$ carries.
- A three-digit $n=\overline{abc}$ with $a+b+c=20$ has $a\ge2$, so the hundreds column $a+8$ always carries. So exactly one of the units and tens columns carries.
- If only the tens column carries: $c\le5$ and $b\ge4$, and $a=20-b-c\ge6$; the smallest is $a=6$, $b=9$, $c=5$, i.e.\ $695$. If only the units column carries: $c\ge6$ and $b+7\le9$, so $b\le2$ and $a\ge9$, giving numbers above $900$.
- So $n=695$ (indeed $695+864=1559$, digit sum $20$). The answer is $\boxed{695}$.
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+927) = 23$.