OFFSET
0,2
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
EXAMPLE
a(5) = 21 because 5 = "10" (in base 5) becomes "21".
a(24) = 0 because 24 = "44" (in base 5) becomes "00".
MATHEMATICA
Table[FromDigits[(IntegerDigits[n, 5]+1/.(5->0))], {n, 0, 60}] (* Harvey P. Dale, Nov 15 2020 *)
PROG
(PARI) A256305(n, b=5)=!n+eval(Strchr(apply(d->(d+1)%b+48, digits(n, b))))
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
M. F. Hasler, Mar 22 2015
STATUS
approved