OFFSET
0,2
COMMENTS
EXAMPLE
a(4) = 21 because 4 = "10" (in base 4) becomes "21".
a(15) = 0 because 15 = "33" (in base 4) becomes "00".
PROG
(PARI) A256304(n, b=4)=!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