OFFSET
0,2
COMMENTS
EXAMPLE
a(5) = 11 because 5 = 10[5] becomes 21[5] = 11.
a(24) = 0 because 24 = 44[5] becomes 00[5] = 0.
PROG
(PARI) A256295(n, b=5)=!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