I have an equation of the form:
$$10^{n+1}=\sum_{i=1}^{n}{(a_{i}10^{i}-b_{i}9^{i})}$$
where $0 < a_{i} \leq 20$ and $0 < b_{i} \leq 18$.
By inspection, I can see that for $n=1$, $a=19$ and $b=10$ is a solution and I can verify in a spreadsheet that it is the only solution.
Is there an easy way to find the number of solutions (and what they are) for a given $n$, for example when $n=5$, or is this something that would have to be done by brute force with a computer (meaning checking all $(a,b)$ pairs to see if they are a solution)?