OFFSET
0,2
COMMENTS
EXAMPLE
a(6) = 13 because 6 = 10[6] becomes 21[6] = 13.
a(35) = 0 because 35 = 55[6] becomes 00[6] = 0.
PROG
(PARI) A256296(n, b=6)=!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