Li-Fan Chen
says to
YSITD
x' mod b where x'= (x - (x mod b^n))/b^n