OFFSET
1,2
LINKS
Hiroaki Yamanouchi, Table of n, a(n) for n = 1..100
EXAMPLE
For example, when num(0) = 10^1 = 10, A055641(10) = 1. 10 + 1 = 11 and A055641(11) = 0. Therefore a(1) = 1, because the procedure has taken one step before A055641(num(i)) = 0.
a(2) begins with num(0) = 10^2 = 100.
1: 100 + A055641(100) = 100 + 2 = 102.
2: 102 + A055641(102) = 102 + 1 = 103.
.
.
9: 109 + A055641(109) = 109 + 1 = 110.
10: 110 + A055641(110) = 110 + 1 = 111.
PROG
(PARI) { b=10; digmx=10; for(ni=2, digmx, n=b^(ni-1); s=0; until(z==0, d=digits(n, b); z=sum(i=2, ni, if(d[i]==0, 1, 0)); n+=z; s++; ); print1(s-1, ", "); ); }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Anthony Sand, Jun 29 2015
EXTENSIONS
a(12)-a(21) from Hiroaki Yamanouchi, Aug 02 2015
STATUS
approved