OFFSET
0,2
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
EXAMPLE
a(8) = 17 because 8 = 10[8] becomes 21[8] = 17.
a(63) = 0 because 63 = 77[8] becomes 00[8] = 0.
MATHEMATICA
Table[FromDigits[IntegerDigits[n, 8]+1/.(8->0), 8], {n, 0, 60}] (* Harvey P. Dale, Jan 28 2023 *)
PROG
(PARI) A256298(n, b=8)=!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