Problem 564: (2006 AIME II, 7)
Find the number of ordered pairs of positive integers $(a,b)$ such that $a+b=1000$ and neither $a$ nor $b$ has a zero digit.
- There are $999$ pairs $(a,1000-a)$. If $a$ ends in $0$, so does $b$, giving $99$ such pairs. In each of the remaining $900$ pairs the units digits add to $10$, and the tens digits add to $9$, as do the hundreds digits (a missing digit counting as $0$).
- So neither number has units digit $0$; a one- or two-digit number then has no zero at all, and a three-digit number has a zero only as its tens digit.
- Numbers $a=\overline{h0u}$ with $h,u\in\{1,\dots,9\}$ number $81$. By symmetry $81$ pairs have $b$ with tens digit $0$, and no pair has both, since the tens digits add to $9$.
- The count is $900-162=738$. The answer is $\boxed{738}$.
Find the number of ordered pairs of positive integers $(a,b)$ such that $a+b=800$ and neither $a$ nor $b$ has a zero digit.