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