OFFSET
0,2
COMMENTS
EXAMPLE
a(7) = 15 because 7 = 10[7] becomes 21[7] = 15.
a(48) = 0 because 48 = 66[7] becomes 00[7] = 0.
PROG
(PARI) A256297(n, b=7)=!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