OFFSET
1,1
COMMENTS
a(n) < 10^n and a(n) > [10^n-9*n]. Thus a(n) = 0 is definite.
EXAMPLE
5+5 = 10^1 so a(1) = 5.
86+(8+6) = 10^2 so a(2) = 86.
PROG
(PARI) DS(n) = {t=0; for(i=1, #digits(n), t+=digits(n)[i]); return(t)}
a(n)=for(k=(10^n-9*n), 10^n, if(k+DS(k)==10^n, return(k)))
n=1; while(n<100, print1(a(n), ", "); n+=1)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Derek Orr, May 30 2014
STATUS
approved