OFFSET
1,2
COMMENTS
If n=d(v)*10^v + d(v-1)*10^(v-1) .. + d(1)*10+d(0) then n(s) = d(v)*10^(v*(1+s))+d(v-1)*10^(v-1)*(1+s)+ .. + d(1)*10^(1+s)+d(0); e.g. 123(2) is 1*10^(2*3)+ 2*10^(1*3)+3*10^(0*3) = 1002003.
EXAMPLE
a(12) = 13 because 13(6) = 10,000,003 which is divisible by 13
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Jonathan Ayres (jonathan.ayres(AT)btinternet.com), Oct 10 2001
STATUS
approved