OFFSET
0,2
COMMENTS
EXAMPLE
a(9) = 19 because 9 = 10[9] becomes 21[9] = 19.
a(80) = 0 because 80 = 88[9] becomes 00[9] = 0.
PROG
(PARI) A256299(n, b=9)=!n+apply(t->(t+1)%b, n=digits(n, b))*vector(#n, i, b^(#n-i))~
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
M. F. Hasler, Mar 22 2015
STATUS
approved