User blog comment:Deedlit11/Bignum Bakeoff appetizer/@comment-80.98.179.160-20171124205940

Py.

def z(n,d): s=0 i=0 while n>0: r=n%d n=n//d s+=r*(d+9)**z(i,d) i+=9 return s def gs(n,d): return z(n,d) t=int("value?") print(t) for i in range(2,99): t=gs(t,i) print(t)