OFFSET
0,2
LINKS
Felix Fröhlich, Table of n, a(n) for n = 0..10000
PROG
(PARI) eva(n) = subst(Pol(n), x, 10)
increasedigits(n) = my(d=digits(n)); for(k=1, #d, d[k]++; if(d[k]==10, d[k]=0)); eva(d)
a270172(n) = my(x=n, i=0); while(#Str(x) > 1, x=increasedigits(x); i++); i
a(n) = a270172(10*n)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Felix Fröhlich, Mar 13 2016
STATUS
approved